Makes the event HUD work

*Finishes up the partially-implemented event HUD (The one the event pref in the VORE character setup tab is for) and adds a verb to let event managers give it to people (can be used by right-clicking them, or from the "Fun" verb tab.
Tested.
This commit is contained in:
Meghan-Rossi
2021-03-27 06:35:18 +00:00
parent 2664382e67
commit 6bf9d8b002
5 changed files with 37 additions and 0 deletions
@@ -190,6 +190,10 @@
if(nif)
compiled_vis |= nif.planes_visible()
//VOREStation Add End
//VOREStation Add - event hud
if(vantag_hud)
compiled_vis |= VIS_CH_VANTAG
//VOREStation Add End
if(!compiled_vis.len && !vis_enabled.len)
return //Nothin' doin'.
+14
View File
@@ -0,0 +1,14 @@
/mob/recalculate_vis()
. = ..()
if(!plane_holder || !vis_enabled)
return
if(vantag_hud)
if(!(VIS_CH_VANTAG in vis_enabled))
plane_holder.set_vis(VIS_CH_VANTAG,TRUE)
vis_enabled += VIS_CH_VANTAG
else
if(VIS_CH_VANTAG in vis_enabled)
plane_holder.set_vis(VIS_CH_VANTAG,FALSE)
vis_enabled -= VIS_CH_VANTAG
return