mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 19:57:52 +01:00
31 lines
787 B
Plaintext
31 lines
787 B
Plaintext
/mob/observer/dead/Move(NewLoc, direct)
|
|
if(updatedir)
|
|
setDir(direct)//only update dir if we actually need it, so overlays won't spin on base sprites that don't have directions of their own
|
|
var/oldloc = loc
|
|
|
|
if(NewLoc)
|
|
forceMove(NewLoc)
|
|
/*
|
|
update_parallax_contents()
|
|
*/
|
|
else
|
|
forceMove(get_turf(src)) //Get out of closets and such as a ghost
|
|
if((direct & NORTH) && y < world.maxy)
|
|
y++
|
|
else if((direct & SOUTH) && y > 1)
|
|
y--
|
|
if((direct & EAST) && x < world.maxx)
|
|
x++
|
|
else if((direct & WEST) && x > 1)
|
|
x--
|
|
Moved(oldloc, direct, FALSE)
|
|
|
|
/mob/observer/dead/Process_Spacemove(dir)
|
|
return TRUE //we don't drift.
|
|
|
|
/mob/observer/dead/canface()
|
|
return TRUE
|
|
|
|
/mob/observer/dead/CanAllowThrough(atom/movable/mover, turf/target)
|
|
return TRUE // ghosts don't block
|