OldUnreal / UnrealTournamentPatches

Other
962 stars 29 forks source link

Inconsistent player head bump velocity #1571

Open Melle4x opened 3 months ago

Melle4x commented 3 months ago

Request for an enhancement/fix for inconsistent physics:

When player bumps against a (sloped) ceiling they get a downwards boost in velocity. (and sideways if sloped)

However this boost seems to be random. Sometimes the player gets a big boost and can take damage, and sometimes barely any boost at all. FPS seems to have an effect, lower FPS (<60) seems to increase the chance of bigger boosts.

Would it be possible to fix/enhance the head bump physics? For example a fixed multiplier such as Velocity.Z *= -0.5 would be a good consistent amount.

BerserkerBG commented 3 months ago

Yes, that is indeed true. This issue needs an example map. Here is an example with a sloped ceiling. Notice how I land on a different color every time. Behavior is definitely random (my fps is also consistent in this example):

https://github.com/OldUnreal/UnrealTournamentPatches/assets/58362332/12629c07-0d16-4d80-87ae-a24cf56db36c

.unr Map file: CeilingSlopeBump.zip

This head bump issue also happens on other types of ceilings as well. For example, behavior is random on flat ceilings too - You head bump with high velocity on a flat ceiling and its supposed to boost you down with the same momentum, but sometimes the momentum is cancelled and you stop in the air for a brief moment and you start falling slower.