set g_balance_electro_primary_speed 0
set g_balance_electro_primary_spread 0
set g_balance_electro_primary_lifetime 0
-set g_balance_electro_primary_refire 0.03333333
+set g_balance_electro_primary_refire 0.4
set g_balance_electro_primary_animtime 0.03333333
set g_balance_electro_primary_ammo 7
set g_balance_electro_primary_range 800
weapon_thinkf(WFRAME_FIRE1, cvar("g_balance_electro_primary_animtime"), w_ready);
}
} else {
- self.BUTTON_ATCK_prev = 0;
+ if(cvar("g_balance_electro_lightning"))
+ {
+ if (self.BUTTON_ATCK_prev != 0)
+ {
+ ATTACK_FINISHED(self) = time + cvar("g_balance_electro_primary_refire") * W_WeaponRateFactor();
+ }
+ self.BUTTON_ATCK_prev = 0;
+ }
}
if (self.BUTTON_ATCK2)
else if (req == WR_CHECKAMMO1)
{
if(cvar("g_balance_electro_lightning"))
- return self.ammo_cells >= cvar("g_balance_electro_primary_ammo") * cvar("g_balance_electro_primary_refire");
+ return !cvar("g_balance_electro_primary_ammo") || (self.ammo_cells > 0);
else
return self.ammo_cells >= cvar("g_balance_electro_primary_ammo");
}