From e1ea117191866018eab28a0471caea77dd0e520e Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 16 Apr 2011 00:23:31 +0300 Subject: [PATCH] Fixes a major bug with g_multijump, causing insane speeds when respawning and pressing jump + forward. Antilag takeback velocity compares origins to determine velocity over a given amount of time. And if this float isn't set, it compares the distance from where the player was and where he respawns, causing insane speeds. This is already set for teleporters, but this commit also adds it when respawning, since we are teleported to another origin. --- qcsrc/server/cl_client.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index a1047ea9d..c47ea5d20 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -975,6 +975,7 @@ void PutClientInServer (void) self.punchvector = '0 0 0'; self.oldvelocity = self.velocity; self.fire_endtime = -1; + self.lastteleporttime = time; msg_entity = self; WRITESPECTATABLE_MSG_ONE({ -- 2.39.2