From: Mircea Kitsune Date: Tue, 12 Apr 2011 17:13:01 +0000 (+0300) Subject: Don't allow switching to another weapon if we're loading rockets into the hagar X-Git-Tag: xonotic-v0.5.0~263^2~10^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c731a33a3c2e08a9c7db32fa5e1e31fab7b24ab8;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow switching to another weapon if we're loading rockets into the hagar --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index f9543785b..2434c4b94 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -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;