diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index b00883c4cdd..d5848b178ef 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -31,7 +31,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) var/ghost_orbit = GHOST_ORBIT_CIRCLE var/health_scan = FALSE //does the ghost have health scanner mode on? by default it should be off -/mob/dead/observer/New(var/mob/body=null, var/flags=1) +/mob/dead/observer/New(mob/body=null, flags=1) set_invisibility(GLOB.observer_default_invisibility) sight |= SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF @@ -77,12 +77,16 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) appearance_flags |= KEEP_TOGETHER ghost_images |= ghostimage updateallghostimages() - if(!T) T = pick(latejoin) //Safety in case we cannot find the body's position + if(!T) + T = pick(latejoin) //Safety in case we cannot find the body's position forceMove(T) if(!name) //To prevent nameless ghosts name = capitalize(pick(GLOB.first_names_male)) + " " + capitalize(pick(GLOB.last_names)) real_name = name + + //starts ghosts off with all HUDs. + toggle_medHUD() ..() /mob/dead/observer/Destroy() @@ -154,7 +158,7 @@ Works together with spawning an observer, noted above. C.images += target.hud_list[SPECIALROLE_HUD] return 1 -/mob/proc/ghostize(var/flags = GHOST_CAN_REENTER) +/mob/proc/ghostize(flags = GHOST_CAN_REENTER) if(key) if(player_logged) //if they have disconnected we want to remove their SSD overlay overlays -= image('icons/effects/effects.dmi', icon_state = "zzz_glow")