]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Actually, re-re-think that even more
authorSamual <samual@xonotic.org>
Mon, 2 Apr 2012 06:50:22 +0000 (02:50 -0400)
committerSamual <samual@xonotic.org>
Mon, 2 Apr 2012 06:50:22 +0000 (02:50 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index 0c3ccc84145221b58185e8bde8145d54d9c670f6..321bf342eaf09cac373a566deff018fb73011ac9 100644 (file)
@@ -984,10 +984,10 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerUseKey)
 {
        entity player = self;
 
-       if(time > player.throw_antispam)
+       if((time > player.throw_antispam) && !player.speedrunning && !player.vehicle)
        {
                // pass the flag to a team mate
-               if(autocvar_g_ctf_pass && !player.speedrunning && !player.vehicle)
+               if(autocvar_g_ctf_pass)
                {
                        entity head, closest_target;
                        head = findradius(player.origin, autocvar_g_ctf_pass_radius);
@@ -1030,7 +1030,7 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerUseKey)
                }
                
                // throw the flag in front of you
-               if(autocvar_g_ctf_drop && player.flagcarried && !player.speedrunning)
+               if(autocvar_g_ctf_drop && player.flagcarried)
                        { ctf_Handle_Throw(player, world, DROP_THROW); }
        }