]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stop turrets from using teleporters. More explicitly forbid vehicles from using telep...
authorJakob MG <jakob_mg@hotmail.com>
Sat, 31 Dec 2011 11:09:58 +0000 (12:09 +0100)
committerJakob MG <jakob_mg@hotmail.com>
Sat, 31 Dec 2011 11:09:58 +0000 (12:09 +0100)
qcsrc/server/t_teleporters.qc

index 5d5b0a02c49bc2014ce502800254af43cc56384c..1705d8f8ea705edc6f71d4c5490bb32cd5d40c76 100644 (file)
@@ -201,7 +201,13 @@ void Teleport_Touch (void)
        // for gameplay: vehicles can't teleport
        if (other.vehicle_flags & VHF_ISVEHICLE)
                return;
-
+    
+    if(other.vehicle)
+        return;
+        
+    if(other.turrcaps_flags & TFL_TURRCAPS_ISTURRET)
+        return;
+        
        if (other.deadflag != DEAD_NO)
                return;