mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 11:05:50 +01:00
Merge pull request #10028 from Meghan-Rossi/eventhud
Makes the event HUD work
This commit is contained in:
@@ -189,6 +189,9 @@
|
||||
//VOREStation Add - NIF Support
|
||||
if(nif)
|
||||
compiled_vis |= nif.planes_visible()
|
||||
//event hud
|
||||
if(vantag_hud)
|
||||
compiled_vis |= VIS_CH_VANTAG
|
||||
//VOREStation Add End
|
||||
|
||||
if(!compiled_vis.len && !vis_enabled.len)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user