From 2daa43b1c5a1fc66fe792802feed607ea4e04dbf Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 22 Mar 2010 16:47:10 +0100 Subject: [PATCH] more warpzone randomization stuff --- qcsrc/warpzonelib/server.qc | 2 ++ scripts/entities.def | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/qcsrc/warpzonelib/server.qc b/qcsrc/warpzonelib/server.qc index 05f55f4ce..d52b9749f 100644 --- a/qcsrc/warpzonelib/server.qc +++ b/qcsrc/warpzonelib/server.qc @@ -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() diff --git a/scripts/entities.def b/scripts/entities.def index e7ccf38ad..8e6b9b5bf 100644 --- a/scripts/entities.def +++ b/scripts/entities.def @@ -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 -------- -- 2.39.2