Paragliders

Paragliders

4M Downloads

Improve movement logic

Tictim opened this issue ยท 0 comments

commented

Currently paragliding relies on entity's fall distance to check if the player is able to use paraglider. It prevents player to start paragliding even while jumping 1 tile high.

While the implementation isn't problematic by itself, any other mods touching fall distance are enough to completely break Paragliders and stopping it from working.

It should be possible to manually compute fall distance and store it in Movements. It also enables entity's fall distance to be adjusted more freely. Currently the fall distance is set to 1.5 while paragliding, which is equal to minimum fall distance to immediately re-activate paragliding even if player stops using paraglider, then using it again. It causes noticeable effect on fall damage when the player swap out Paraglider in order to quickly get to the ground, taking fall damage from not very high descend thanks to the "1.5m rule".

But it can cause other sorts of oddities when combined to different flight mechanisms, for example jetpacks and other mod-added flight ability. I don't care about it that much, though. Paraglider looking funny when you use Paraglider while hovering with jetpack isn't much harmful.