mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
VANTAG Hud stuff
This commit is contained in:
@@ -75,6 +75,7 @@ mob/proc/handle_regular_hud_updates() //Used in the life.dm of mobs that can use
|
||||
eng_hud_users -= src
|
||||
sci_hud_users -= src
|
||||
gen_hud_users -= src
|
||||
if(vantag_hud) process_vantag_hud(src) //VOREStation Add - So any mob can have the vantag hud, observer or not.
|
||||
//VOREStation Add End
|
||||
mob/proc/in_view(var/turf/T)
|
||||
return view(T)
|
||||
|
||||
@@ -2,6 +2,8 @@ var/global/list/gen_hud_users = list() // List of all entities using
|
||||
var/global/list/eng_hud_users = list() // List of all entities using a engineer HUD.
|
||||
var/global/list/sci_hud_users = list() // List of all entities using a science HUD.
|
||||
|
||||
var/global/list/vantag_hud_users = list() // List of all mobs with the VANTAG hud on.
|
||||
|
||||
/proc/broadcast_engineering_hud_message(var/message, var/broadcast_source)
|
||||
broadcast_hud_message(message, broadcast_source, eng_hud_users, /obj/item/clothing/glasses/omnihud/eng)
|
||||
|
||||
@@ -43,3 +45,16 @@ proc/process_omni_hud(var/mob/M, var/mode, var/mob/Alt)
|
||||
P.Client.images += guy.hud_list[WANTED_HUD]
|
||||
P.Client.images += guy.hud_list[STATUS_R_HUD]
|
||||
P.Client.images += guy.hud_list[BACKUP_HUD]
|
||||
|
||||
|
||||
proc/process_vantag_hud(var/mob/M)
|
||||
if(!M.vantag_hud || !can_process_hud(M))
|
||||
return
|
||||
|
||||
var/datum/arranged_hud_process/P = arrange_hud_process(M, null, vantag_hud_users)
|
||||
|
||||
for(var/mob/living/carbon/human/guy in P.Mob.in_view(P.Turf))
|
||||
if(P.Mob.see_invisible < guy.invisibility)
|
||||
continue
|
||||
|
||||
P.Client.images += guy.hud_list[VANTAG_HUD]
|
||||
|
||||
Reference in New Issue
Block a user