]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't allow switching to another weapon if we're loading rockets into the hagar
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 17:13:01 +0000 (20:13 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 12 Apr 2011 17:13:01 +0000 (20:13 +0300)
qcsrc/server/cl_weaponsystem.qc

index f9543785ba484588bb4e6d235cd1067d8537360d..2434c4b94a446ec50a170b6f870e8a243196ca9c 100644 (file)
@@ -34,6 +34,10 @@ float W_WeaponRateFactor()
 
 void W_SwitchWeapon_Force(entity e, float w)
 {
+       // don't allow switching to another weapon if we're loading rockets into the hagar
+       if(e.weapon == WEP_HAGAR && e.hagar_load)
+               return;
+
        e.cnt = e.switchweapon;
        e.switchweapon = w;
        e.selectweapon = w;