Files
07071eef48 [BASICALLY MODULAR] Runs grep checks on modular_skyrat and fixes all issues (#17469)
* Runs grep checks on modular_skyrat and fixes all issues

* feather

* Update modular_skyrat/modules/verbs/code/say.dm

Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>

* loadout descs

* fixes

Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
2022-11-16 11:08:41 -05:00

39 lines
1.3 KiB
Plaintext

GLOBAL_VAR_INIT(ssd_indicator_overlay, mutable_appearance('modular_skyrat/modules/indicators/icons/ssd_indicator.dmi', "default0", FLY_LAYER))
/mob/living
var/ssd_indicator = FALSE
var/lastclienttime = 0
/mob/living/proc/set_ssd_indicator(state)
if(state == ssd_indicator)
return
ssd_indicator = state
if(ssd_indicator)
add_overlay(GLOB.ssd_indicator_overlay)
log_message("<font color='green'>has went SSD and got their indicator!</font>", LOG_ATTACK)
else
cut_overlay(GLOB.ssd_indicator_overlay)
log_message("<font color='green'>is no longer SSD and lost their indicator!</font>", LOG_ATTACK)
/mob/living/Login()
. = ..()
set_ssd_indicator(FALSE)
/mob/living/Logout()
lastclienttime = world.time
set_ssd_indicator(TRUE)
. = ..()
//Temporary, look below for the reason
/mob/living/ghostize(can_reenter_corpse = TRUE)
. = ..()
set_ssd_indicator(FALSE)
/*
//EDIT - TRANSFER CKEY IS NOT A THING ON THE TG CODEBASE, if things break too bad because of it, consider implementing it
//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)
*/