mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
SecHUD for observers (#16789)
This commit is contained in:
committed by
Pieter-Jan Briers
parent
736f5d95fa
commit
29bc88a8c1
@@ -1551,3 +1551,8 @@ var/proccalls = 1
|
||||
|
||||
|
||||
#define GOLEM_RESPAWN_TIME 10 MINUTES //how much time must pass before someone who dies as an adamantine golem can use the golem rune again
|
||||
|
||||
// Used to determine which HUD is in use
|
||||
#define HUD_NONE 0
|
||||
#define HUD_MEDICAL 1
|
||||
#define HUD_SECURITY 2
|
||||
@@ -34,7 +34,7 @@
|
||||
//If you died in the game and are a ghsot - this will remain as null.
|
||||
//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/medHUD = 0
|
||||
var/selectedHUD = HUD_NONE // HUD_NONE, HUD_MEDICAL or HUD_SECURITY
|
||||
var/antagHUD = 0
|
||||
incorporeal_move = INCORPOREAL_GHOST
|
||||
var/movespeed = 0.75
|
||||
@@ -182,8 +182,11 @@ Works together with spawning an observer, noted above.
|
||||
target_list += target
|
||||
if(target_list.len)
|
||||
assess_targets(target_list, src)
|
||||
if(medHUD)
|
||||
regular_hud_updates()
|
||||
if(selectedHUD == HUD_MEDICAL)
|
||||
process_medHUD(src)
|
||||
else if(selectedHUD == HUD_SECURITY)
|
||||
process_sec_hud(src, TRUE)
|
||||
|
||||
if(visible)
|
||||
if(invisibility == 0)
|
||||
@@ -424,13 +427,26 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
set desc = "Toggles Medical HUD allowing you to see how everyone is doing"
|
||||
if(!client)
|
||||
return
|
||||
if(medHUD)
|
||||
medHUD = 0
|
||||
if(selectedHUD == HUD_MEDICAL)
|
||||
selectedHUD = HUD_NONE
|
||||
to_chat(src, "<span class='notice'><B>Medical HUD Disabled</B></span>")
|
||||
else
|
||||
medHUD = 1
|
||||
selectedHUD = HUD_MEDICAL
|
||||
to_chat(src, "<span class='notice'><B>Medical HUD Enabled</B></span>")
|
||||
|
||||
/mob/dead/observer/verb/toggle_secHUD()
|
||||
set category = "Ghost"
|
||||
set name = "Toggle SecHUD"
|
||||
|
||||
if(!client)
|
||||
return
|
||||
if(selectedHUD == HUD_SECURITY)
|
||||
selectedHUD = HUD_NONE
|
||||
to_chat(src, "<span class='notice'><B>Security HUD disabled.</b></span>")
|
||||
else
|
||||
selectedHUD = HUD_SECURITY
|
||||
to_chat(src, "<span class='notice'><B>Security HUD enabled.</b></span>")
|
||||
|
||||
/mob/dead/observer/verb/toggle_antagHUD()
|
||||
set category = "Ghost"
|
||||
set name = "Toggle AntagHUD"
|
||||
|
||||
Reference in New Issue
Block a user