Ghost chem scans (#50475)

This commit is contained in:
Timberpoes
2020-04-19 09:06:10 +01:00
committed by GitHub
parent 337ba6b0ba
commit 58bdb85285
2 changed files with 15 additions and 0 deletions
@@ -32,6 +32,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
var/ghost_hud_enabled = 1 //did this ghost disable the on-screen HUD?
var/data_huds_on = 0 //Are data HUDs currently enabled?
var/health_scan = FALSE //Are health scans currently enabled?
var/chem_scan = FALSE //Are chem scans currently enabled?
var/gas_scan = FALSE //Are gas scans currently enabled?
var/list/datahuds = list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL_ADVANCED, DATA_HUD_DIAGNOSTIC_ADVANCED) //list of data HUDs shown to ghosts.
var/ghost_orbit = GHOST_ORBIT_CIRCLE
@@ -723,6 +724,18 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
to_chat(src, "<span class='notice'>Health scan enabled.</span>")
health_scan = TRUE
/mob/dead/observer/verb/toggle_chem_scan()
set name = "Toggle Chem Scan"
set desc = "Toggles whether you scan living beings for chemicals and addictions on click"
set category = "Ghost"
if(chem_scan) //remove old huds
to_chat(src, "<span class='notice'>Chem scan disabled.</span>")
chem_scan = FALSE
else
to_chat(src, "<span class='notice'>Chem scan enabled.</span>")
chem_scan = TRUE
/mob/dead/observer/verb/toggle_gas_scan()
set name = "Toggle Gas Scan"
set desc = "Toggles whether you analyze gas contents on click"