mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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  ## 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:
co-authored by
GoblinBackwards
Tom
parent
a7d1017da6
commit
f12c3ff6c3
@@ -440,7 +440,7 @@
|
||||
return
|
||||
if(pixel_x != base_pixel_x || pixel_y != base_pixel_y)
|
||||
animate(src, 0.2 SECONDS, pixel_x = base_pixel_y, pixel_y = base_pixel_y, flags = ANIMATION_PARALLEL)
|
||||
Move(get_step_multiz(src, direction), direction)
|
||||
try_step_multiz(direction)
|
||||
COOLDOWN_START(src, move_cooldown, (direction in GLOB.cardinals) ? 0.1 SECONDS : 0.2 SECONDS)
|
||||
|
||||
/obj/item/soulscythe/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
|
||||
|
||||
Reference in New Issue
Block a user