#else
#ifdef SVQC
-void W_Shotgun_CheckReloadAndReady()
+void W_Shotgun_DoReload()
{
w_ready();
- if(self.sniperrifle_bulletcounter <= 0)
- if(W_SniperRifle_Reload("shells"))
- return;
+ if(W_SniperRifle_Reload(self.ammo_shells))
+ return;
}
void W_Shotgun_Attack (void)
float bulletconstant;
local entity flash;
- W_Shotgun_CheckReloadAndReady();
+ if(self.sniperrifle_bulletcounter <= 0)
+ W_Shotgun_DoReload();
if(self.sniperrifle_bulletcounter < 0)
return; // reloading, so we are done
if(self.weaponentity.state == WS_READY)
{
self.wish_reload = 0;
- W_SniperRifle_Reload("shells");
+ W_SniperRifle_Reload(self.ammo_shells);
}
}
}