]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_physics.qc
Merge remote branch 'refs/remotes/origin/fruitiex/fruitbalance'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_physics.qc
index 08f355be88f2757d46e49657a167e384a2ced687..2df6c1c4fefb2ffbad069cb587cd27e82f22bdff 100644 (file)
@@ -85,7 +85,7 @@ void PlayerJump (void)
                {
                        if (cvar("g_multijump_add") == 0) // in this case we make the z velocity == jumpvelocity
                        {
-                               if (self.velocity_z >= mjumpheight)
+                               if (self.velocity_z < mjumpheight)
                                {
                                        doublejump = TRUE;
                                        self.velocity_z = 0;
@@ -103,9 +103,9 @@ void PlayerJump (void)
 
                                        curspeed = max(
                                                vlen(vec2(self.velocity)), // current xy speed
-                                               vlen(vec2(antilag_takebackavgvelocity(self, time - 0.25, time))) // average xy topspeed over the last 0.25 secs
+                                               vlen(vec2(antilag_takebackavgvelocity(self, max(self.lastteleporttime + sys_frametime, time - 0.25), time))) // average xy topspeed over the last 0.25 secs
                                        );
-                                       makevectors(self.v_angle); // this always is '0 y 0'
+                                       makevectors(self.v_angle_y * '0 1 0');
                                        wishvel = v_forward * self.movement_x + v_right * self.movement_y;
                                        wishdir = normalize(wishvel);