mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[NO GBP] Fixes wings and jetpacks sometimes preventing you from opening doors (#87741)
## About The Pull Request I hate this timeline. What title says, makes jetpacks and wings allow you to bump into things you're moving into. ## Why It's Good For The Game This feels awful and requires you to stop pressing movement keys for a moment before resuming movement to get out of the "stuck" state ## Changelog 🆑 fix: Fixed wings and jetpacks sometimes preventing you from opening doors /🆑
This commit is contained in:
@@ -164,6 +164,12 @@
|
||||
/datum/component/jetpack/proc/on_pushoff(mob/source, movement_dir, continuous_move, atom/backup)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if (get_dir(source, backup) == movement_dir || source.loc == backup.loc)
|
||||
return
|
||||
|
||||
if (!source.client.intended_direction || (source.client.intended_direction & get_dir(source, backup)))
|
||||
return
|
||||
|
||||
if (!should_trigger(source) || !check_on_move.Invoke(FALSE))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user