Some multijump code I forgot
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 11:21:39 +0000 (14:21 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 11:21:39 +0000 (14:21 +0300)
data/qcsrc/server/t_teleporters.qc

index ebfd390..07159e4 100644 (file)
@@ -308,5 +308,7 @@ void WarpZone_PostTeleportPlayer_Callback(entity pl)
        {\r
                // reset tracking of oldvelocity for impact damage (sudden velocity changes)\r
                pl.oldvelocity = pl.velocity;\r
+               // reset teleport time tracking too (or multijump can cause insane speeds)\r
+               pl.lastteleporttime = time;\r
        }\r
 }\r