]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/server.qc
Merge branch 'mirceakitsune/nex_reticle' of ssh://git.xonotic.org/xonotic-data.pk3dir...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / warpzonelib / server.qc
index 05f55f4ce8103fc5b660b3557e88eb6c644ecf1d..6388fbaade6c847d3ac8a1200285519aae27509d 100644 (file)
@@ -300,6 +300,7 @@ void WarpZoneCamera_InitStep_FindTarget()
                error("Camera with nonexisting target");
                return;
        }
+       WarpZone_Camera_SetUp(self, self.enemy.origin, self.enemy.angles);
 }
 
 void WarpZone_InitStep_UpdateTransform()
@@ -321,7 +322,7 @@ void WarpZone_InitStep_UpdateTransform()
                tex = getsurfacetexture(self, i_s);
                if not(tex)
                        break; // this is beyond the last one
-               if(tex != "textures/common/warpzone")
+               if(tex == "textures/common/trigger")
                        continue;
                n_t = getsurfacenumtriangles(self, i_s);
                for(i_t = 0; i_t < n_t; ++i_t)
@@ -402,7 +403,7 @@ void WarpZone_InitStep_FindTarget()
        if(self.target != "")
        {
                e2 = world;
-               for(e = world; (e = find(world, targetname, self.target)); )
+               for(e = world; (e = find(e, targetname, self.target)); )
                        if(!e.enemy)
                                if(random() * ++i < 1)
                                        e2 = e;
@@ -426,6 +427,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 +553,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()