#define W_SETUPPROJECTILEVELOCITY(m,s) W_SetupProjectileVelocityEx(m, w_shotdir, v_up, cvar(#s "_speed"), 0, 0, cvar(#s "_spread"), FALSE)
// shared weapon reload code
+.float reload_complain;
float W_ReloadCheck(float ammo_amount)
{
entity e;
// no ammo, so nothing to load
if(!ammo_amount)
{
- print("Cannot reload, not enough ammo\n");
+ if(clienttype(self) == CLIENTTYPE_REAL && self.reload_complain < time)
+ {
+ play2(self, "weapons/unavailable.wav");
+ sprint(self, strcat("You don't have any ammo to reload the ^2", W_Name(self.weapon), "\n"));
+ self.reload_complain = time + 1;
+ }
self.ammo_counter = -1; // reload later
W_SwitchToOtherWeapon(self);
return 0;