-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
165 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/client/proc/toggle_newplayer_ghost_hud() | ||
set name = "Toggle Markers (Ghost)" | ||
set category = "Admin.Mentor" | ||
set desc = "Toggles observer pref for mentor markers." | ||
|
||
if(!admin_holder || !(admin_holder.rights & R_MENTOR)) | ||
to_chat(src, "Only mentors may use this HUD!") | ||
return FALSE | ||
|
||
prefs.observer_huds[HUD_MENTOR_SIGHT] = !prefs.observer_huds[HUD_MENTOR_SIGHT] | ||
prefs.save_preferences() | ||
|
||
to_chat(src, SPAN_BOLDNOTICE("You toggled [HUD_MENTOR_SIGHT] to be [prefs.observer_huds[HUD_MENTOR_SIGHT] ? "ON" : "OFF"] by default when you are observer.")) | ||
|
||
if(!isobserver(usr)) | ||
return | ||
var/mob/dead/observer/observer_user = usr | ||
var/datum/mob_hud/the_hud | ||
the_hud = GLOB.huds[MOB_HUD_NEW_PLAYER] | ||
|
||
observer_user.HUD_toggled[HUD_MENTOR_SIGHT] = prefs.observer_huds[HUD_MENTOR_SIGHT] | ||
if(observer_user.HUD_toggled[HUD_MENTOR_SIGHT]) | ||
the_hud.add_hud_to(observer_user, observer_user) | ||
else | ||
the_hud.remove_hud_from(observer_user, observer_user) | ||
|
||
/client/proc/toggle_newplayer_ic_hud(sea_forced = FALSE) | ||
set category = "Admin.Mentor" | ||
set name = "Toggle Markers (IC)" | ||
set desc = "Toggles new player HUD while IC." | ||
|
||
if(!admin_holder || !(admin_holder.rights & R_MENTOR)) | ||
if(!sea_forced) | ||
to_chat(src, "Only mentors may use this HUD!") | ||
return FALSE | ||
|
||
var/mob/living/carbon/human/mentor = mob | ||
if(!ishuman(mentor)) | ||
to_chat(src, SPAN_WARNING("You cannot use this power as a non-human!")) | ||
return FALSE | ||
|
||
if(!mentor.looc_overhead && !(mentor.inherent_huds_toggled[INHERENT_HUD_NEW_PLAYER])) | ||
to_chat(src, SPAN_WARNING("You are not in a mentor role! (Overhead LOOC is disabled!)")) | ||
return FALSE | ||
|
||
var/datum/mob_hud/the_hud | ||
the_hud = GLOB.huds[MOB_HUD_NEW_PLAYER] | ||
|
||
if(mentor.inherent_huds_toggled[INHERENT_HUD_NEW_PLAYER]) | ||
mentor.inherent_huds_toggled[INHERENT_HUD_NEW_PLAYER] = FALSE | ||
the_hud.remove_hud_from(mentor, mentor) | ||
to_chat(mentor, SPAN_INFO("<B>New Player Markers Disabled</B>")) | ||
else | ||
mentor.inherent_huds_toggled[INHERENT_HUD_NEW_PLAYER] = TRUE | ||
the_hud.add_hud_to(mentor, mentor) | ||
to_chat(mentor, SPAN_INFO("<B>New Player Markers Enabled</B>")) | ||
return TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.