mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
SSD Tweaks (#15172)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user