Do it AFTER setting the new player origin, else the issue still happens
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 21:30:00 +0000 (00:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 21:30:00 +0000 (00:30 +0300)
data/qcsrc/server/cl_client.qc

index d1fda90..b5243b5 100644 (file)
@@ -913,7 +913,6 @@ void PutClientInServer (void)
                self.punchvector = '0 0 0';\r
                self.oldvelocity = self.velocity;\r
                self.fire_endtime = -1;\r
-               self.lastteleporttime = time;\r
 \r
                msg_entity = self;\r
                WRITESPECTATABLE_MSG_ONE({\r
@@ -937,6 +936,7 @@ void PutClientInServer (void)
                self.oldorigin = self.origin;\r
                self.prevorigin = self.origin;\r
                self.lastrocket = world; // stop rocket guiding, no revenge from the grave!\r
+               self.lastteleporttime = time; // prevent insane speeds due to changing origin\r
 \r
                if(g_arena)\r
                {\r