W_DecreaseAmmo(pAmmo);
- W_SetupShot(self, TRUE, 2, pSound, CH_WEAPON_A, pDamage * pShots);
+ W_SetupShot(self, true, 2, pSound, CH_WEAPON_A, pDamage * pShots);
pointparticles(particleeffectnum("rifle_muzzleflash"), w_shotorg, w_shotdir * 2000, 1);
{
case WR_AIM:
{
- self.BUTTON_ATCK=FALSE;
- self.BUTTON_ATCK2=FALSE;
+ self.BUTTON_ATCK=false;
+ self.BUTTON_ATCK2=false;
if(vlen(self.origin-self.enemy.origin) > 1000)
self.bot_secondary_riflemooth = 0;
if(self.bot_secondary_riflemooth == 0)
{
- if(bot_aim(1000000, 0, 0.001, FALSE))
+ if(bot_aim(1000000, 0, 0.001, false))
{
- self.BUTTON_ATCK = TRUE;
+ self.BUTTON_ATCK = true;
if(random() < 0.01) self.bot_secondary_riflemooth = 1;
}
}
else
{
- if(bot_aim(1000000, 0, 0.001, FALSE))
+ if(bot_aim(1000000, 0, 0.001, false))
{
- self.BUTTON_ATCK2 = TRUE;
+ self.BUTTON_ATCK2 = true;
if(random() < 0.03) self.bot_secondary_riflemooth = 0;
}
}
- return TRUE;
+ return true;
}
case WR_THINK:
{
}
}
- return TRUE;
+ return true;
}
case WR_INIT:
{
precache_sound("weapons/campingrifle_fire.wav");
precache_sound("weapons/campingrifle_fire2.wav");
RIFLE_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP)
- return TRUE;
+ return true;
}
case WR_CHECKAMMO1:
{
case WR_CONFIG:
{
RIFLE_SETTINGS(WEP_CONFIG_WRITE_CVARS, WEP_CONFIG_WRITE_PROPS)
- return TRUE;
+ return true;
}
case WR_RESETPLAYER:
{
self.rifle_accumulator = time - WEP_CVAR(rifle, bursttime);
- return TRUE;
+ return true;
}
case WR_RELOAD:
{
W_Reload(min(WEP_CVAR_PRI(rifle, ammo), WEP_CVAR_SEC(rifle, ammo)), "weapons/reload.wav");
- return TRUE;
+ return true;
}
case WR_SUICIDEMESSAGE:
{
}
}
}
- return FALSE;
+ return false;
}
#endif
#ifdef CSQC
sound(self, CH_SHOTS, "weapons/ric3.wav", VOL_BASE, ATTN_NORM);
}
- return TRUE;
+ return true;
}
case WR_INIT:
{
{
precache_pic("gfx/reticle_nex");
}
- return TRUE;
+ return true;
}
case WR_ZOOMRETICLE:
{
if(button_zoom || zoomscript_caught)
{
reticle_image = "gfx/reticle_nex";
- return TRUE;
+ return true;
}
else
{
// no weapon specific image for this weapon
- return FALSE;
+ return false;
}
}
}
- return FALSE;
+ return false;
}
#endif
#endif