From 28bbca59b5e54e2bf16320bafe31179af3735e3c Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:00:36 +0200 Subject: [PATCH] [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 :cl: qol: Jetpack movement near walls should be much smoother /:cl: --- code/datums/drift_handler.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/drift_handler.dm b/code/datums/drift_handler.dm index 27a4fd4bc91..7000483f9ab 100644 --- a/code/datums/drift_handler.dm +++ b/code/datums/drift_handler.dm @@ -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