Files
Bubberstation/code/modules/mob/dead/observer/observer_movement.dm
SkyratBot 2b09625df0 [MIRROR] Fixes jank with moving down Zs as a ghost (#26760)
* Fixes jank with moving down Zs as a ghost (#81837)

## About The Pull Request

Caused by goof's PR. Because for some reason observers overridde `up` to
skip checks but not `down`.

## Changelog

🆑 Melbert
fix: Moving "down" as an observer is no longer janky.
/🆑

* Fixes jank with moving down Zs as a ghost

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2024-03-06 22:13:33 -05:00

18 lines
562 B
Plaintext

/mob/dead/observer/down()
set name = "Move Down"
set category = "IC"
if(zMove(DOWN, z_move_flags = ZMOVE_FEEDBACK))
to_chat(src, span_notice("You move down."))
/mob/dead/observer/up()
set name = "Move Upwards"
set category = "IC"
if(zMove(UP, z_move_flags = ZMOVE_FEEDBACK))
to_chat(src, span_notice("You move upwards."))
/mob/dead/observer/can_z_move(direction, turf/start, turf/destination, z_move_flags = NONE, mob/living/rider)
z_move_flags |= ZMOVE_IGNORE_OBSTACLES //observers do not respect these FLOORS you speak so much of.
return ..()