[NO GBP] Prevents walls from slowing your drifting down when you're moving in the same direction as your pressed movement key (#87142)

## About The Pull Request

Oopsie, this prevents walls from slowing your drift down if you're
pressing a movement key and moving in your intended direction

## Why It's Good For The Game
Smoother movement when you're moving near a wall with a jetpack or
tether or whatever really

## Changelog
🆑
qol: Jetpack movement near walls should be much smoother
/🆑
This commit is contained in:
SmArtKar
2024-10-11 18:00:36 +02:00
committed by GitHub
parent eadb72fe75
commit 28bbca59b5
+4
View File
@@ -213,6 +213,10 @@
if (drift_force < INERTIA_FORCE_SPACEMOVE_GRAB || isnull(drifting_loop))
return
if (!isnull(source.client) && source.client.intended_direction)
if ((source.client.intended_direction & movement_dir) && !(get_dir(source, backup) & movement_dir))
return
if (drift_force <= INERTIA_FORCE_SPACEMOVE_REDUCTION / source.inertia_force_weight)
glide_to_halt(get_loop_delay(source))
return COMPONENT_PREVENT_SPACEMOVE_HALT