]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't allow passing if the player is in a vehicle
authorSamual <samual@xonotic.org>
Mon, 2 Apr 2012 06:46:36 +0000 (02:46 -0400)
committerSamual <samual@xonotic.org>
Mon, 2 Apr 2012 06:46:36 +0000 (02:46 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index c1f05feb61161be15e5e22c0c6b0eaa9d3ef1561..6d4dab29f2416357b821d3d360b6948de2901134 100644 (file)
@@ -997,6 +997,7 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerUseKey)
                                if(head.classname == "player" && head.deadflag == DEAD_NO)
                                if(head != player && !IsDifferentTeam(head, player))
                                if(!player.speedrunning && !head.speedrunning)
+                               if(!player.vehicle && !head.vehicle)
                                {
                                        traceline(player.origin, head.origin, MOVE_NOMONSTERS, player);
                                        if not((trace_fraction < 1) && (trace_ent != head))