Does more prep for the Event Manager role

This commit is contained in:
Anewbe
2017-10-02 21:51:48 -05:00
parent e5474c2dc1
commit c2c6b5949a
19 changed files with 125 additions and 83 deletions
+4 -4
View File
@@ -310,19 +310,19 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!client)
return
var/mentor = is_mentor(usr.client)
if(!config.antag_hud_allowed && (!client.holder || mentor))
var/event_manager = is_event_manager(usr.client)
if(!config.antag_hud_allowed && (!client.holder || event_manager))
src << "<font color='red'>Admins have disabled this for this round.</font>"
return
var/mob/observer/dead/M = src
if(jobban_isbanned(M, "AntagHUD"))
src << "<font color='red'><B>You have been banned from using this feature</B></font>"
return
if(config.antag_hud_restricted && !M.has_enabled_antagHUD && (!client.holder || mentor))
if(config.antag_hud_restricted && !M.has_enabled_antagHUD && (!client.holder || event_manager))
var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No")
if(response == "No") return
M.can_reenter_corpse = 0
if(!M.has_enabled_antagHUD && (!client.holder || mentor))
if(!M.has_enabled_antagHUD && (!client.holder || event_manager))
M.has_enabled_antagHUD = 1
if(M.antagHUD)
M.antagHUD = 0