diff --git a/code/modules/mob/abstract/observer/observer.dm b/code/modules/mob/abstract/observer/observer.dm index 09b81bc407e..1358e1a26a0 100644 --- a/code/modules/mob/abstract/observer/observer.dm +++ b/code/modules/mob/abstract/observer/observer.dm @@ -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 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index c4075803441..ee738af058b 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -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 diff --git a/code/modules/mob/living/carbon/human/login.dm b/code/modules/mob/living/carbon/human/login.dm index 26730de3870..781fbc44050 100644 --- a/code/modules/mob/living/carbon/human/login.dm +++ b/code/modules/mob/living/carbon/human/login.dm @@ -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) \ No newline at end of file + antag.handle_latelogin(src) diff --git a/code/modules/mob/living/carbon/human/logout.dm b/code/modules/mob/living/carbon/human/logout.dm index 5332851ee2a..721253d4b9d 100644 --- a/code/modules/mob/living/carbon/human/logout.dm +++ b/code/modules/mob/living/carbon/human/logout.dm @@ -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")) diff --git a/html/changelogs/wezzy_SSDtweaks.yml b/html/changelogs/wezzy_SSDtweaks.yml new file mode 100644 index 00000000000..f0964117873 --- /dev/null +++ b/html/changelogs/wezzy_SSDtweaks.yml @@ -0,0 +1,41 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: Wowzewow (Wezzy) + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - tweak: "SSD no longer immediately puts you to sleep - only after 5 minutes will your character drop on the ground. Also, adds an overlay to indicate when someone's SSD." \ No newline at end of file diff --git a/icons/effects/effects.dmi b/icons/effects/effects.dmi index 03912b8d95f..b64fac36d15 100644 Binary files a/icons/effects/effects.dmi and b/icons/effects/effects.dmi differ