]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't attempt to switch weapons if we're out of ammo, since we only have one weapon...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 11:38:15 +0000 (14:38 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 11:38:15 +0000 (14:38 +0300)
data/qcsrc/server/cl_weaponsystem.qc

index 4325474375187221a76c67f5a7d7b9fe549c32cc..04908ba697b232466bf3e4fd5fc35389e5e17da7 100644 (file)
@@ -1674,11 +1674,12 @@ void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, stri
                        self.reload_complain = time + 1;\r
                }\r
                // switch away if the amount of ammo is not enough to keep using this weapon\r
-               if not(weapon_action(self.weapon, WR_CHECKAMMO1) + weapon_action(self.weapon, WR_CHECKAMMO2))\r
+               // disabled since we only have one weapon in VT, so nothing else to switch to if we're out of ammo\r
+               /*if not(weapon_action(self.weapon, WR_CHECKAMMO1) + weapon_action(self.weapon, WR_CHECKAMMO2))\r
                {\r
                        self.clip_load = -1; // reload later\r
                        W_SwitchToOtherWeapon(self);\r
-               }\r
+               }*/\r
                return;\r
        }\r
 \r