void spawnfunc_weapon_minstanex (void); // defined in t_items.qc
-float minstanex_ammo;
float w_minstanex(float req)
{
float ammo_amount;
+ float minstanex_ammo;
+
+ // now multiple WR_s use this
+ if(g_minstagib)
+ minstanex_ammo = 1;
+ else
+ minstanex_ammo = autocvar_g_balance_minstanex_ammo;
+
if (req == WR_AIM)
{
if(self.ammo_cells > 0)
}
else if (req == WR_THINK)
{
- if(g_minstagib)
- minstanex_ammo = 1;
- else
- minstanex_ammo = autocvar_g_balance_minstanex_ammo;
-
// if the laser uses load, we also consider its ammo for reloading
if(autocvar_g_balance_minstanex_reload_ammo && autocvar_g_balance_minstanex_laser_ammo && self.clip_load < min(minstanex_ammo, autocvar_g_balance_minstanex_laser_ammo)) // forced reload
weapon_action(self.weapon, WR_RELOAD);