Some ghost improvements (#47700)

* Ghost face direction and restoring ghost name.

* name wont reset

* Overrides canface
This commit is contained in:
skoglol
2019-11-14 02:52:01 +01:00
committed by Rob Bailey
parent 6f3b584ee2
commit b20f151c0c
3 changed files with 10 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
/datum/mind
var/key
var/name //replaces mob/var/original_name
var/ghostname //replaces name for observers name if set
var/mob/living/current
var/active = 0

View File

@@ -84,7 +84,10 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
gender = body.gender
if(body.mind && body.mind.name)
name = body.mind.name
if(body.mind.ghostname)
name = body.mind.ghostname
else
name = body.mind.name
else
if(body.real_name)
name = body.real_name
@@ -729,6 +732,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set_ghost_appearance()
if(client && client.prefs)
deadchat_name = client.prefs.real_name
mind.ghostname = client.prefs.real_name
name = client.prefs.real_name
/mob/dead/observer/proc/set_ghost_appearance()
if((!client) || (!client.prefs))

View File

@@ -811,6 +811,9 @@
return FALSE
return ..()
/mob/dead/observer/canface()
return TRUE
///Hidden verb to turn east
/mob/verb/eastface()
set hidden = TRUE