mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Separate Dead OOC Allowed From Dead LOOC Allowed (#6797)
Currently, DISABLE_DEAD_OOC is used as a singular toggle for determining whether or not ghosts can talk on both OOC and LOOC. This is undesireable, should we wish to only disable their access to LOOC via config. This PR implements a DISABLE_DEAD_LOOC config flag, which explicitly restricts the access of dead people to LOOC. While leaving DISABLE_DEAD_OOC as its own flag for when we want to exclusively restrict global OOC.
This commit is contained in:
@@ -736,10 +736,20 @@ proc/admin_notice(var/message, var/rights)
|
||||
return
|
||||
|
||||
config.dooc_allowed = !( config.dooc_allowed )
|
||||
log_admin("[key_name(usr)] toggled Dead OOC.")
|
||||
message_admins("[key_name_admin(usr)] toggled Dead OOC.", 1)
|
||||
log_and_message_admins("toggled dead (global) OOC. (New state: [config.dooc_allowed])")
|
||||
feedback_add_details("admin_verb","TDOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggle_dead_looc()
|
||||
set category = "Server"
|
||||
set desc = "Toggle Dead LOOC."
|
||||
set name = "Toggle Dead LOOC"
|
||||
|
||||
if (!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
config.dead_looc_allowed = !config.dead_looc_allowed
|
||||
log_and_message_admins("toggled dead LOOC. (New state: [config.dead_looc_allowed])")
|
||||
|
||||
/datum/admins/proc/togglehubvisibility()
|
||||
set category = "Server"
|
||||
set desc="Globally Toggles Hub Visibility"
|
||||
|
||||
Reference in New Issue
Block a user