]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hook: don't give weapon when offhand is active
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 6 Oct 2015 00:07:24 +0000 (11:07 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 6 Oct 2015 00:07:24 +0000 (11:07 +1100)
qcsrc/server/miscfunctions.qc

index 910f33b7394ab615545044351f47c773dee59e86..37df8fa88a5ffcc1f9ea017a74368f5dd0e9399e 100644 (file)
@@ -501,8 +501,6 @@ float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still ne
        else
                d = !(!weaponinfo.weaponstart);
 
-       if(g_grappling_hook) // if possible, redirect off-hand hook to on-hand hook
-               d |= (i == WEP_HOOK.m_id);
        if(!g_cts && (weaponinfo.spawnflags & WEP_FLAG_MUTATORBLOCKED)) // never default mutator blocked guns
                d = 0;