mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-08 14:02:16 +01:00
18 lines
672 B
Plaintext
18 lines
672 B
Plaintext
/mob/living/var/lastclienttime = 0
|
|
var/static/mutable_appearance/ssd_indicator
|
|
|
|
/mob/living/proc/set_ssd_indicator(var/state)
|
|
if(!ssd_indicator)
|
|
ssd_indicator = mutable_appearance('sandcode/icons/mob/ssd_indicator.dmi', "default0", FLY_LAYER)
|
|
|
|
if(state && stat != DEAD)
|
|
add_overlay(ssd_indicator)
|
|
else
|
|
cut_overlay(ssd_indicator)
|
|
return state
|
|
|
|
//This proc should stop mobs from having the overlay when someone keeps jumping control of mobs, unfortunately it causes Aghosts to have their character without the SSD overlay, I wasn't able to find a better proc unfortunately
|
|
/mob/living/transfer_ckey(mob/new_mob, send_signal = TRUE)
|
|
..()
|
|
set_ssd_indicator(FALSE)
|