set g_balance_laser_secondary_force_zscale 1.25
set g_balance_laser_secondary_force_velocitybias 0
set g_balance_laser_secondary_force_other_scale 0
-set g_balance_laser_reload_count 5
+set g_balance_laser_reload_ammo 5
set g_balance_laser_reload_time 2
// }}}
// {{{ shotgun
float autocvar_g_balance_laser_secondary_lifetime;
float autocvar_g_balance_laser_secondary_radius;
float autocvar_g_balance_laser_secondary_speed;
-float autocvar_g_balance_laser_reload_count;
+float autocvar_g_balance_laser_reload_ammo;
float autocvar_g_balance_laser_reload_time;
float autocvar_g_balance_minelayer_ammo;
float autocvar_g_balance_minelayer_animtime;
}
// all weapons must be fully loaded the first time we pick them up, so set their load to maximum at respawn
- self.laser_load = autocvar_g_balance_laser_reload_count;
+ self.laser_load = autocvar_g_balance_laser_reload_ammo;
self.shotgun_load = autocvar_g_balance_shotgun_reload_ammo;
self.sniperrifle_load = autocvar_g_balance_sniperrifle_reload_ammo;
self.uzi_load = autocvar_g_balance_uzi_reload_ammo;
void W_Laser_SetAmmoCounter()
{
// set clip_load to the weapon we have switched to, if the gun uses reloading
- if(!autocvar_g_balance_laser_reload_count)
+ if(!autocvar_g_balance_laser_reload_ammo)
self.clip_load = 0; // also keeps crosshair ammo from displaying
else
{
self.clip_load = self.laser_load;
- self.clip_size = autocvar_g_balance_laser_reload_count; // for the crosshair ammo display
+ self.clip_size = autocvar_g_balance_laser_reload_ammo; // for the crosshair ammo display
}
}
{
float t;
- self.clip_load = autocvar_g_balance_laser_reload_count; // maximum load since this weapon uses no ammo
+ self.clip_load = autocvar_g_balance_laser_reload_ammo; // maximum load since this weapon uses no ammo
self.laser_load = self.clip_load;
t = ATTACK_FINISHED(self) - autocvar_g_balance_laser_reload_time - 1;
void W_Laser_Reload()
{
// return if reloading is disabled for this weapon
- if(!autocvar_g_balance_laser_reload_count)
+ if(!autocvar_g_balance_laser_reload_ammo)
return;
if(!W_ReloadCheck(1, 0))
}
else if (req == WR_THINK)
{
- if(autocvar_g_balance_laser_reload_count && self.clip_load < 1) // forced reload
+ if(autocvar_g_balance_laser_reload_ammo && self.clip_load < 1) // forced reload
W_Laser_Reload();
else if (self.BUTTON_ATCK)
{
// if this weapon is reloadable, decrease its load
if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
{
- if(autocvar_g_balance_laser_reload_count)
+ if(autocvar_g_balance_laser_reload_ammo)
{
self.clip_load -= 1;
self.laser_load = self.clip_load;
// if this weapon is reloadable, decrease its load
if not(self.items & IT_UNLIMITED_WEAPON_AMMO)
{
- if(autocvar_g_balance_laser_reload_count)
+ if(autocvar_g_balance_laser_reload_ammo)
{
self.clip_load -= 1;
self.laser_load = self.clip_load;