Files
Bubberstation/code/modules/client/preferences/admin.dm
lessthanthree 3d0718f516 [MANUAL MIRROR] Admin alert for communications console messages (#18529)
Admin alert for communications console messages (#72412)

Adds an audio alert when a CentCom or Syndicate communications console
message is sent, for things such as ERT requests.

It is optional and can be toggled in the Game Preferences menu.

Also fixes an incorrect line in the prefs readme.md

Less missing CentCom messages because you're busy doing other things,
less complaining that you're ignoring them.
2023-01-06 08:50:39 -08:00

76 lines
2.4 KiB
Plaintext

/datum/preference/color/asay_color
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "asaycolor"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/color/asay_color/create_default_value()
return DEFAULT_ASAY_COLOR
/datum/preference/color/asay_color/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent) && CONFIG_GET(flag/allow_admin_asaycolor)
/// What outfit to equip when spawning as a briefing officer for an ERT
/datum/preference/choiced/brief_outfit
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "brief_outfit"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/choiced/brief_outfit/deserialize(input, datum/preferences/preferences)
var/path = text2path(input)
if (!ispath(path, /datum/outfit))
return create_default_value()
return path
/datum/preference/choiced/brief_outfit/serialize(input)
return "[input]"
/datum/preference/choiced/brief_outfit/create_default_value()
return /datum/outfit/centcom/commander
/datum/preference/choiced/brief_outfit/init_possible_values()
return subtypesof(/datum/outfit)
/datum/preference/choiced/brief_outfit/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent)
/datum/preference/toggle/bypass_deadmin_in_centcom
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "bypass_deadmin_in_centcom"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/bypass_deadmin_in_centcom/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent)
/// When enabled, prevents any and all ghost role pop-ups WHILE ADMINNED.
/datum/preference/toggle/ghost_roles_as_admin
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "ghost_roles_as_admin"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/ghost_roles_as_admin/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent)
/datum/preference/toggle/comms_notification
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "comms_notification"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/comms_notification/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent)