mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
Some ghost improvements (#47700)
* Ghost face direction and restoring ghost name. * name wont reset * Overrides canface
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -811,6 +811,9 @@
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/mob/dead/observer/canface()
|
||||
return TRUE
|
||||
|
||||
///Hidden verb to turn east
|
||||
/mob/verb/eastface()
|
||||
set hidden = TRUE
|
||||
|
||||
Reference in New Issue
Block a user