]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
get rid of weird "forbid change" logic that breaks NIX
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 19:32:58 +0000 (21:32 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Aug 2011 19:32:58 +0000 (21:32 +0200)
qcsrc/server/cl_client.qc
qcsrc/server/cl_weapons.qc
qcsrc/server/cl_weaponsystem.qc
qcsrc/server/defs.qh
qcsrc/server/w_hagar.qc

index 055982f33b1fedb8d63f154fb303cd9afe7514a6..57e520bfcaa584f509de35517b667a55f46db9bd 100644 (file)
@@ -1086,7 +1086,6 @@ void PutClientInServer (void)
                        if(e.spawnflags & WEP_FLAG_RELOADABLE) // prevent accessing undefined cvars
                                self.weapon_load[j] = cvar(strcat("g_balance_", e.netname, "_reload_ammo"));
                }
-               self.weapon_forbidchange = FALSE;
 
                oldself = self;
                self = spot;
index 3106169008cad0d4ec5029cfe9d2dbb06c32c22c..c46a736a06bbe5f0dae4c0bb8e064660875da1b4 100644 (file)
@@ -284,8 +284,6 @@ void W_ThrowWeapon(vector velo, vector delta, float doreduce)
        w = self.weapon;
        if (w == 0)
                return; // just in case
-       if(self.weapon_forbidchange)
-               return;
        if(MUTATOR_CALLHOOK(ForbidThrowCurrentWeapon))
                return;
        if(!autocvar_g_weapon_throwable)
index 3d7a33278d15201ce89b789f1a03f9441e0d0be8..d1db16d4ca462feaf5c5796cff015b372b0dd190 100644 (file)
@@ -34,10 +34,6 @@ float W_WeaponRateFactor()
 
 void W_SwitchWeapon_Force(entity e, float w)
 {
-       // don't switch to another weapon if we're not allowed to
-       if(e.weapon_forbidchange)
-               return;
-
        e.cnt = e.switchweapon;
        e.switchweapon = w;
        e.selectweapon = w;
index 6ef2bfcd0cc925397616ff34b8f8dc528896d1bd..d5ef02034cee6f21751627f27af8ae25eed9b59d 100644 (file)
@@ -210,7 +210,6 @@ void w_clear();
 void w_ready();
 // VorteX: standalone think for weapons, so normal think on weaponentity can be reserved by weaponflashes (which needs update even player dies)
 .float weapon_nextthink;
-.float weapon_forbidchange;
 .void() weapon_think;
 
 //float        PLAYER_WEAPONSELECTION_DELAY = );
index a628be25bbd3521e14a4204cf7ee2905ff010ae5..adfd15de86a084ec4d32c805f23d22a69f1721c0 100644 (file)
@@ -242,13 +242,11 @@ void W_Hagar_Attack2_Load (void)
 
        if(self.hagar_load)
        {
-               self.weapon_forbidchange = TRUE;
                if(!self.BUTTON_ATCK2 || ((loaded || !enough_ammo) && self.hagar_loadstep < time && !autocvar_g_balance_hagar_secondary_load_hold))
                        W_Hagar_Attack2_Load_Release();
        }
        else
        {
-               self.weapon_forbidchange = FALSE;
                self.hagar_loadbeep = FALSE;
        }