else if (req == WR_CHECKAMMO1)
{
// don't switch while placing a mine
- if ((ATTACK_FINISHED(self) <= time || self.weapon != WEP_MINE_LAYER)
- && self.ammo_rockets < autocvar_g_balance_minelayer_ammo)
- return FALSE;
+ if(autocvar_g_balance_electro_reload_ammo)
+ {
+ if ((ATTACK_FINISHED(self) <= time || self.weapon != WEP_MINE_LAYER)
+ && self.clip_load < autocvar_g_balance_minelayer_ammo)
+ return FALSE;
+ }
+ else
+ {
+ if ((ATTACK_FINISHED(self) <= time || self.weapon != WEP_MINE_LAYER)
+ && self.ammo_rockets < autocvar_g_balance_minelayer_ammo)
+ return FALSE;
+ }
}
else if (req == WR_CHECKAMMO2)
{
else if (req == WR_CHECKAMMO2)
{
if(autocvar_g_balance_sniperrifle_reload_ammo)
- return self.sniperrifle_load >= autocvar_g_balance_sniperrifle_primary_ammo;
+ return self.sniperrifle_load >= autocvar_g_balance_sniperrifle_secondary_ammo;
else
return self.ammo_nails >= autocvar_g_balance_sniperrifle_secondary_ammo;
}