Fix raptor landing not taking the full time with very high ticrates
authorMario <mario.mario@y7mail.com>
Tue, 14 Jan 2020 16:52:04 +0000 (02:52 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 14 Jan 2020 16:52:04 +0000 (02:52 +1000)
qcsrc/common/vehicles/vehicle/raptor.qc

index e9f7f73..f0c4dc1 100644 (file)
@@ -453,7 +453,7 @@ bool raptor_takeoff(entity this, float dt)
        // Takeoff sequense
        if(vehic.frame < 25)
        {
-               vehic.frame += 25 / (autocvar_g_vehicle_raptor_takeofftime / PHYS_INPUT_FRAMETIME);
+               vehic.frame += 25 / (autocvar_g_vehicle_raptor_takeofftime / dt);
                vehic.velocity_z = min(vehic.velocity_z * 1.5, 256);
                vehic.bomb1.gun1.avelocity_y = 90 + ((vehic.frame / 25) * 25000);
                vehic.bomb1.gun2.avelocity_y = -vehic.bomb1.gun1.avelocity_y;