mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
8443203af9
* greatly improves observer GCing * works on logout now
19 lines
782 B
Plaintext
19 lines
782 B
Plaintext
/mob/living/Logout()
|
|
update_z(null)
|
|
if(ranged_ability && client)
|
|
ranged_ability.remove_mousepointer(client)
|
|
if(isobj(loc))
|
|
var/obj/our_location = loc
|
|
if(length(our_location.client_mobs_in_contents))
|
|
our_location.client_mobs_in_contents -= src // if you jackhammer click this as an admeme you can cause runtimes without a length check
|
|
..()
|
|
update_pipe_vision()
|
|
if(mind)
|
|
if(!key) //key and mind have become seperated. I believe this is for when a staff member aghosts.
|
|
mind.active = FALSE //This is to stop say, a mind.transfer_to call on a corpse causing a ghost to re-enter its body.
|
|
//This causes instant sleep and tags a player as SSD. See life.dm for furthering SSD.
|
|
if(mind.active)
|
|
Sleeping(4 SECONDS)
|
|
player_logged = 1
|
|
last_logout = world.time
|