return;
}
- if(!_WEP_ACTION(self.weapon, WR_CHECKAMMO1))
+ Weapon w = get_weaponinfo(self.weapon);
+ if(!w.wr_checkammo1(w))
if(!(self.items & IT_UNLIMITED_WEAPON_AMMO))
{
W_SwitchWeapon_Force(self, w_getbestweapon(self));
}
METHOD(HeavyMachineGun, wr_think, bool(entity thiswep, bool fire1, bool fire2))
{
- if(WEP_CVAR(hmg, reload_ammo) && self.clip_load < WEP_CVAR(hmg, ammo)) // forced reload
- _WEP_ACTION(self.weapon, WR_RELOAD);
- else
+ if(WEP_CVAR(hmg, reload_ammo) && self.clip_load < WEP_CVAR(hmg, ammo)) { // forced reload
+ Weapon w = get_weaponinfo(self.weapon);
+ w.wr_reload(w);
+ } else
{
if (fire1)
if (weapon_prepareattack(false, 0))