Lets ghosts use the diagnostic HUD (#16896)

This commit is contained in:
DamianX
2017-12-31 11:03:41 +01:00
committed by Pieter-Jan Briers
parent 632af661e0
commit 1eb8cb80dd

View File

@@ -35,6 +35,7 @@
//Note that this is not a reliable way to determine if admins started as observers, since they change mobs a lot.
var/has_enabled_antagHUD = 0
var/selectedHUD = HUD_NONE // HUD_NONE, HUD_MEDICAL or HUD_SECURITY
var/diagHUD = FALSE
var/antagHUD = 0
incorporeal_move = INCORPOREAL_GHOST
var/movespeed = 0.75
@@ -182,6 +183,8 @@ Works together with spawning an observer, noted above.
process_medHUD(src)
else if(selectedHUD == HUD_SECURITY)
process_sec_hud(src, TRUE)
if(diagHUD)
process_diagnostic_hud(src)
if(visible)
if(invisibility == 0)
@@ -442,6 +445,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
selectedHUD = HUD_SECURITY
to_chat(src, "<span class='notice'><B>Security HUD enabled.</b></span>")
/mob/dead/observer/verb/toggle_diagHUD()
set category = "Ghost"
set name = "Toggle diagnostic HUD"
if(!client)
return
diagHUD = !diagHUD
to_chat(src, "<span class='notice'><B>Diagnostic HUD [diagHUD ? "enabled" : "disabled"].")
/mob/dead/observer/verb/toggle_antagHUD()
set category = "Ghost"
set name = "Toggle AntagHUD"