SSD Tweaks (#15172)

This commit is contained in:
Wowzewow (Wezzy)
2022-11-29 13:08:59 +01:00
committed by GitHub
parent 7172b0b7ef
commit 0bbca438b8
6 changed files with 48 additions and 2 deletions
@@ -228,6 +228,7 @@ Works together with spawning an observer, noted above.
/mob/proc/ghostize(var/can_reenter_corpse = TRUE, var/should_set_timer = TRUE)
if(ckey)
cut_overlay(image('icons/effects/effects.dmi', "zzz_glow")) // not very efficient but ghostize isn't called /too/ often.
var/mob/abstract/observer/ghost = new(src) //Transfer safety to observer spawning proc.
ghost.can_reenter_corpse = can_reenter_corpse
ghost.timeofdeath = src.stat == DEAD ? src.timeofdeath : world.time
+1 -1
View File
@@ -741,7 +741,7 @@
return 0
//SSD check, if a logged player is awake put them back to sleep!
if(species.show_ssd && (!client && !vr_mob) && !teleop)
if(species.show_ssd && (!client && !vr_mob) && !teleop && ((world.realtime - disconnect_time) >= 5 MINUTES)) //only sleep after 5 minutes, should help those with intermittent internet connections
Sleeping(2)
if(stat == DEAD) //DEAD. BROWN BREAD. SWIMMING WITH THE SPESS CARP
blinded = 1
@@ -3,6 +3,8 @@
update_hud()
if(species)
species.handle_login_special(src)
if(client)
cut_overlay(image('icons/effects/effects.dmi', "zzz_glow"))
var/datum/antagonist/antag = player_is_antag(mind, FALSE)
if(antag)
antag.handle_latelogin(src)
antag.handle_latelogin(src)
@@ -2,3 +2,5 @@
..()
if(species)
species.handle_logout_special(src)
if(mind && mind.active && stat != DEAD)
add_overlay(image('icons/effects/effects.dmi', icon_state = "zzz_glow"))