From: MirceaKitsune Date: Sat, 16 Jul 2011 11:38:15 +0000 (+0300) Subject: Don't attempt to switch weapons if we're out of ammo, since we only have one weapon... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de8b548c6cca77af18557857808f918a25f63e10;p=voretournament%2Fvoretournament.git Don't attempt to switch weapons if we're out of ammo, since we only have one weapon in Vore Tournament --- diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 43254743..04908ba6 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -1674,11 +1674,12 @@ void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, stri self.reload_complain = time + 1; } // switch away if the amount of ammo is not enough to keep using this weapon - if not(weapon_action(self.weapon, WR_CHECKAMMO1) + weapon_action(self.weapon, WR_CHECKAMMO2)) + // disabled since we only have one weapon in VT, so nothing else to switch to if we're out of ammo + /*if not(weapon_action(self.weapon, WR_CHECKAMMO1) + weapon_action(self.weapon, WR_CHECKAMMO2)) { self.clip_load = -1; // reload later W_SwitchToOtherWeapon(self); - } + }*/ return; }