[MIRROR] Fixes being able to get to centcomm and move through floors when in mechs/boxes [MDB IGNORE] (#17738)

* Fixes being able to get to centcomm and move through floors when in mechs/boxes (#71486)

## About The Pull Request
Fixes #71484 - Adds a check to the down verb to make sure a z level
exists below before trying to move.
Changes some step() in relay_move procs to use zMove instead if they
have a direction of up/down, as this was causing you to be able to phase
through floors if you were in a cardboard box/mech/etc
## Why It's Good For The Game

![dreamseeker_LuXqZUhvNg](https://user-images.githubusercontent.com/22856555/203672877-6b7da56c-494a-49dc-a8c8-13b15c2133eb.gif)
## Changelog
🆑
fix: Fixed being able to move through floors and get to centcomm when
moving up/down while inside mechs and similar movable objects.
/🆑

* Fixes being able to get to centcomm and move through floors when in mechs/boxes

* update modular

Co-authored-by: GoblinBackwards <22856555+GoblinBackwards@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-12-07 15:44:43 +00:00
committed by GitHub
co-authored by GoblinBackwards Tom
parent a7d1017da6
commit f12c3ff6c3
9 changed files with 26 additions and 8 deletions
+1 -1
View File
@@ -91,7 +91,7 @@
ADD_TRAIT(wearer, TRAIT_FORCED_STANDING, MOD_TRAIT)
addtimer(CALLBACK(src, PROC_REF(ai_fall)), AI_FALL_TIME, TIMER_UNIQUE | TIMER_OVERRIDE)
var/atom/movable/mover = wearer || src
return step(mover, direction)
return mover.try_step_multiz(direction)
#undef MOVE_DELAY
#undef WEARER_DELAY