mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Adds a system to examines to show messages exclusively to admins (#33923)
* system * adds a space for proper comments * does the change
This commit is contained in:
committed by
GitHub
parent
eca84ad974
commit
85e10d92ad
@@ -23,6 +23,7 @@ var/global/list/ghdel_profiling = list()
|
||||
var/germ_level = 0 // The higher the germ level, the more germ on the atom.
|
||||
var/penetration_dampening = 5 //drains some of a projectile's penetration power whenever it goes through the atom
|
||||
var/throw_impact_sound = 'sound/weapons/genhit2.ogg'
|
||||
var/admin_desc //Allows admins to see admin-exclusive examines, such as notifications for custom variables
|
||||
|
||||
///Chemistry.
|
||||
var/datum/reagents/reagents = null
|
||||
|
||||
@@ -1384,7 +1384,7 @@ var/global/floorIsLava = 0
|
||||
/datum/admins/proc/toggletintedweldhelmets()
|
||||
set category = "Debug"
|
||||
set desc="Reduces view range when wearing welding helmets"
|
||||
set name="Toggle tinted welding helmes"
|
||||
set name="Toggle tinted welding helmets"
|
||||
|
||||
tinted_weldhelh = !( tinted_weldhelh )
|
||||
if (tinted_weldhelh)
|
||||
|
||||
@@ -88,7 +88,8 @@ var/list/admin_verbs_admin = list(
|
||||
/client/proc/artifacts_panel,
|
||||
/client/proc/body_archive_panel,
|
||||
/client/proc/climate_panel,
|
||||
/datum/admins/proc/ashInvokedEmotions /*Ashes all paper from the invoke emotion spell. An emergency purge.*/
|
||||
/datum/admins/proc/ashInvokedEmotions, /*Ashes all paper from the invoke emotion spell. An emergency purge.*/
|
||||
/client/proc/toggle_admin_examine
|
||||
)
|
||||
var/list/admin_verbs_ban = list(
|
||||
/client/proc/unban_panel,
|
||||
@@ -1361,3 +1362,13 @@ var/list/admin_verbs_mod = list(
|
||||
holder.ViewAllRods()
|
||||
feedback_add_details("admin_verb","V-ROD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
return
|
||||
|
||||
/client/proc/toggle_admin_examine()
|
||||
set name = "Toggle Admin-only Descriptions"
|
||||
set category = "Admin"
|
||||
set desc = "See admin-only text for certain objects."
|
||||
if(holder)
|
||||
holder.admin_examine = !(holder.admin_examine)
|
||||
to_chat(usr, "<span class='notice'>You toggle [holder.admin_examine ? "on" : "off"] admin examining.")
|
||||
feedback_add_details("admin_verb","admin_examine")
|
||||
return
|
||||
|
||||
@@ -5,6 +5,7 @@ var/list/admin_datums = list()
|
||||
var/client/owner = null
|
||||
var/rights = 0
|
||||
var/fakekey = null
|
||||
var/admin_examine = 1 //If on, allows the admin to see additional examine messages.
|
||||
|
||||
var/datum/marked_datum
|
||||
var/atom/marked_appearance //Reference to an atom or an image
|
||||
|
||||
@@ -7,6 +7,7 @@ var/creating_arena = FALSE
|
||||
/mob/dead/observer
|
||||
name = "ghost"
|
||||
desc = "It's a g-g-g-g-ghooooost!" //jinkies!
|
||||
admin_desc = "The 'manual_poltergeist_cooldown' variable allows the cooldown of the ghost's poltergeist activities (such as flicking lightswitches) to be modified in a decisecond format (10 is 1 second). Set it to null to restore the cooldown to the global poltergeist variable (by default 30 seconds)."
|
||||
icon = 'icons/mob/mob.dmi'
|
||||
icon_state = "ghost1"
|
||||
stat = DEAD
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/mob/living/carbon
|
||||
admin_desc = "The 'manual_emote_sound_override' variable can be set to 1 to enable a character to scream audibly whenever they want."
|
||||
|
||||
/mob/living/carbon/Login()
|
||||
..()
|
||||
update_hud()
|
||||
|
||||
@@ -1175,6 +1175,8 @@ Use this proc preferably at the end of an equipment loadout
|
||||
|
||||
face_atom(A)
|
||||
A.examine(src)
|
||||
if(A.admin_desc && src.client?.holder?.admin_examine)
|
||||
to_chat(src, "<span class='rough'>Admin-only: [A.admin_desc]</span>")
|
||||
|
||||
if(istype(src,/mob/living))
|
||||
var/mob/living/L = src
|
||||
|
||||
Reference in New Issue
Block a user