]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more warpzone randomization stuff
authorRudolf Polzer <rpolzer@nb-04.(none)>
Mon, 22 Mar 2010 15:47:10 +0000 (16:47 +0100)
committerRudolf Polzer <rpolzer@nb-04.(none)>
Mon, 22 Mar 2010 15:47:10 +0000 (16:47 +0100)
qcsrc/warpzonelib/server.qc
scripts/entities.def

index 05f55f4ce8103fc5b660b3557e88eb6c644ecf1d..d52b9749fd6a6d6b9c059881309145cadf68280a 100644 (file)
@@ -426,6 +426,7 @@ void WarpZone_InitStep_FinalizeTransform()
 
        WarpZone_SetUp(self, self.warpzone_origin, self.warpzone_angles, self.enemy.warpzone_origin, self.enemy.warpzone_angles);
        self.touch = WarpZone_Touch;
+       self.SendFlags = 0xFFFFFF;
 }
 
 float warpzone_initialized;
@@ -551,6 +552,7 @@ void target_warpzone_reconnect_use()
        for(self = warpzone_first; self; self = self.warpzone_next)
                if(e.target == "" || self.target == e.target || self.enemy.target == e.target)
                        WarpZone_InitStep_FinalizeTransform();
+       self = e;
 }
 
 void trigger_warpzone_reconnect()
index e7ccf38adfbea0ffa33705964d0ee80f55a41849..8e6b9b5bfab57388ccf6d4045bcd772afff7ec76 100644 (file)
@@ -1752,6 +1752,13 @@ targetname: must be pointed to by another trigger_warpzone. Should be pointed to
 killtarget: should point to a target_position entity, or
 */
 
+/*QUAKED trigger_warpzone_reconnect (1 .5 1) (-8 -8 -8) (8 8 8)
+Reconnects (randomly) all warpzones with matching target when triggered
+-------- KEYS --------
+target: must point to multiple trigger_warpzones, or be not set (then all warpzones may get changed)
+targetname: name that identifies this entity so it can be triggered
+*/
+
 /*QUAKED misc_warpzone_position (1 .5 .25) (-8 -8 -8) (8 8 8) 
 Orientation specification for a trigger_warpzone
 -------- KEYS --------