Skip to content

speedbug fix

Lighto97 requested to merge Lighto97/Kart-Public:speedbugfix into next

Fix the annoying bug that a player turns to the right when going too fast.

kart0014

Talking with Ashnal in #hardcode he said what was the origin of the bug.

image

A simple fix that solve the problem. I tested with community maps that have sections of the track where player goes too fast to see if nothing wrong happens, the results are positive.

kart0031 kart0030 kart0015 kart0023

And tested in other scenarios, like mobjscaled maps and speed pads that are too strong, tested changing k_speedboost and k_accelboost to high values.

mobjscale set at FRACUNIT*50/100

kart0016

mobjscale set at FRACUNIT*150/100

kart0018

and the speed pad.

kart0038

with a ramp right after the speed pad, to test if everything go as intended midair too.

kart0037

Merge request reports