mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Ghost name QoL changes
🆑 coiax rscadd: Ghosts now have the "Restore Character Name" verb, which will set their ghost appearance and name to their character preferences. bugfix: Mob spawners now give any generated names to the mind of the spawned mob, meaning ghosts will have the name they had in life. the outsiders as they see fit. /🆑 ... fsdjkafklasdfljk
This commit is contained in:
@@ -590,6 +590,38 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
src << "<span class='notice'>Data HUDs enabled.</span>"
|
||||
data_huds_on = 1
|
||||
|
||||
/mob/dead/observer/verb/restore_ghost_apperance()
|
||||
set name = "Restore Ghost Character"
|
||||
set desc = "Sets your ghost name and apperance to the name of your \
|
||||
roundstart character."
|
||||
set category = "Ghost"
|
||||
|
||||
set_ghost_appearance()
|
||||
|
||||
/mob/dead/observer/proc/set_ghost_appearance()
|
||||
if((!client) || (!client.prefs))
|
||||
return
|
||||
|
||||
if(client.prefs.be_random_name)
|
||||
client.prefs.real_name = random_unique_name(gender)
|
||||
if(client.prefs.be_random_body)
|
||||
client.prefs.random_character(gender)
|
||||
|
||||
if(HAIR in client.prefs.pref_species.specflags)
|
||||
hair_style = client.prefs.hair_style
|
||||
hair_color = brighten_color(client.prefs.hair_color)
|
||||
if(FACEHAIR in client.prefs.pref_species.specflags)
|
||||
facial_hair_style = client.prefs.facial_hair_style
|
||||
facial_hair_color = brighten_color(client.prefs.facial_hair_color)
|
||||
|
||||
real_name = client.prefs.real_name
|
||||
name = real_name
|
||||
|
||||
if(mind)
|
||||
mind.name = name
|
||||
|
||||
update_icon()
|
||||
|
||||
/mob/dead/observer/canUseTopic()
|
||||
if(check_rights(R_ADMIN, 0))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user