\r
float client_hasweapon(entity cl, float wpn, float andammo, float complain)\r
{\r
- local float weaponbit, f;\r
- local entity oldself;\r
+ local float weaponbit;\r
+ //local float weaponbit, f;\r
+ //local entity oldself;\r
\r
if(time < self.hasweapon_complain_spam)\r
complain = 0;\r
weaponbit = W_WeaponBit(wpn);\r
if (cl.weapons & weaponbit)\r
{\r
- if (andammo)\r
+ // since we don't have an infinite ammo weapon in vore tournament, allow switching to the grabber even when it has no ammo\r
+ /*if (andammo)\r
{\r
if(cl.items & IT_UNLIMITED_WEAPON_AMMO)\r
{\r
}\r
return FALSE;\r
}\r
- }\r
+ }*/\r
return TRUE;\r
}\r
if (complain)\r
self.prevdryfire = time;\r
}\r
\r
- W_SwitchToOtherWeapon(self);\r
+ // since we don't have an infinite ammo weapon in vore tournament, allow switching to the grabber even when it has no ammo\r
+ //W_SwitchToOtherWeapon(self);\r
return FALSE;\r
}\r
return TRUE;\r