Files
Paradise/code/modules/mob/dead/dead.dm
GDN 6b5de292dc Removes datum redeclares (#23950)
* Removes datum redeclares

* conflicts

* thanks vsc

* compile fix
2024-03-10 17:55:29 +00:00

44 lines
939 B
Plaintext

/mob/dead
move_resist = INFINITY
flags_2 = IMMUNE_TO_SHUTTLECRUSH_2
/mob/dead/Login()
. = ..()
var/turf/T = get_turf(src)
if(isturf(T))
update_z(T.z)
/mob/dead/Logout()
update_z(null)
return ..()
/mob/dead/forceMove(atom/destination, direction = NONE)
var/turf/old_turf = get_turf(src)
var/turf/new_turf = get_turf(destination)
if(old_turf?.z != new_turf?.z)
onTransitZ(old_turf?.z, new_turf?.z)
var/oldloc = loc
loc = destination
Moved(oldloc, direction)
/mob/dead/onTransitZ(old_z,new_z)
..()
update_z(new_z)
/mob/dead/proc/update_z(new_z) // 1+ to register, null to unregister
if(registered_z != new_z)
if(registered_z)
SSmobs.dead_players_by_zlevel[registered_z] -= src
if(client)
if(new_z)
SSmobs.dead_players_by_zlevel[new_z] += src
registered_z = new_z
else
registered_z = null
/mob/dead/dust() //ghosts can't be vaporised.
return
/mob/dead/gib() //ghosts can't be gibbed.
return