mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 10:42:37 +00:00
<img width="819" height="348" alt="image" src="https://github.com/user-attachments/assets/0424ec76-2648-43d3-8e94-d44558b44bcf" /> ## About The Pull Request Follow up from #92751 - Not to conflict with it but as an idea on how to change it for the long run. Paramedics currently start with broad department access. This proposal replaces that by granting temporary department access only when an emergency is called. When a player presses "Call X" on a Requests Console, responders called receive temporary access to the common work areas of that department.  > [Security] The Automated Announcement System coldly states, "SECURITY EMERGENCY in Research Lab! (Called by Sloan Keppel, Scientist) RETA door access granted to responders." > [Science] The Automated Announcement System coldly states, "RETA activated (Called by Sloan Keppel, Scientist). Security personnel now have temporary access to your areas." They do not receive access to sub rooms or high risk areas. - Access lasts 5 minutes (configurable) - Access is removed when the timer expires or the emergency is resolved - No mapping changes are required (uses existing request consoles) - Removes Paramedics round start access but gives them external access to rescue bodies in space by default - Flashing blue lights on doors affected by temporary access <img width="897" height="837" alt="image" src="https://github.com/user-attachments/assets/97980cb4-3481-44b6-9f96-fc241ca16f57" /> **The full document is here: https://hackmd.io/@NM8HxpG_Toahg5pimrpsKw/Hk0tKq3Yxe** **Wiki documentation for players and admins: https://wiki.tgstation13.org/Guide_To_RETA** ## Why It's Good For The Game - Removes paramedics’ broad “Doctor+” access. - Keeps them effective as emergency responders. - Responders must be called in OR access upgraded. - Keeps sensitive areas secure. - Prevents spam or stacking through cooldown. - Scales across all maps without mapper work. - Gives admins a new tool for temp department wide access - Dedicated logging file and unit tests - Very performant, only affects living players with connected mind - Gives Request Consoles more use as an alarm button and further utility - Imagine later on "Request Janitor" which sorts access and tells Janitor where needed ## Changelog 🆑 add: RETA System - Request Consoles give temporary access to responders when used for some areas. Paramedics lose broad access but get external space access. qol: Request consoles now show name and job role on call message & Cooldown on spamming calls + sound prompt qol: Medibot access no longer based on Paramedic trim ID - Still has original access image: Added "lights_reta" for temporary door access when in effect admin: Gives admins "RETA door access" verb for giving department wide area access on maps. config: New config settings for RETA /🆑
85 lines
2.7 KiB
Plaintext
85 lines
2.7 KiB
Plaintext
GLOBAL_LIST_EMPTY(active_turfs_startlist)
|
|
|
|
GLOBAL_VAR(round_id)
|
|
GLOBAL_PROTECT(round_id)
|
|
|
|
/// The directory in which ALL log files should be stored
|
|
GLOBAL_VAR(log_directory)
|
|
GLOBAL_PROTECT(log_directory)
|
|
|
|
#define DECLARE_LOG_NAMED(log_var_name, log_file_name, start)\
|
|
GLOBAL_VAR(##log_var_name);\
|
|
GLOBAL_PROTECT(##log_var_name);\
|
|
/world/_initialize_log_files(temp_log_override = null){\
|
|
..();\
|
|
GLOB.##log_var_name = temp_log_override || "[GLOB.log_directory]/[##log_file_name].log";\
|
|
if(!temp_log_override && ##start){\
|
|
start_log(GLOB.##log_var_name);\
|
|
}\
|
|
}
|
|
|
|
#define DECLARE_LOG(log_name, start) DECLARE_LOG_NAMED(##log_name, "[copytext(#log_name, 1, length(#log_name) - 3)]", start)
|
|
#define START_LOG TRUE
|
|
#define DONT_START_LOG FALSE
|
|
|
|
/// Populated by log declaration macros to set log file names and start messages
|
|
/world/proc/_initialize_log_files(temp_log_override = null)
|
|
// Needs to be here to avoid compiler warnings
|
|
SHOULD_CALL_PARENT(TRUE)
|
|
return
|
|
|
|
// All individual log files.
|
|
// These should be used where the log category cannot easily be a json log file.
|
|
DECLARE_LOG(config_error_log, DONT_START_LOG)
|
|
DECLARE_LOG(perf_log, DONT_START_LOG) // Declared here but name is set in time_track subsystem
|
|
|
|
#ifdef REFERENCE_TRACKING_LOG_APART
|
|
DECLARE_LOG_NAMED(harddel_log, "harddels", START_LOG)
|
|
#endif
|
|
|
|
#if defined(UNIT_TESTS) || defined(SPACEMAN_DMM)
|
|
DECLARE_LOG_NAMED(test_log, "tests", START_LOG)
|
|
#endif
|
|
|
|
DECLARE_LOG_NAMED(reta_log, "reta", START_LOG)
|
|
|
|
|
|
/// Picture logging
|
|
GLOBAL_VAR(picture_log_directory)
|
|
GLOBAL_PROTECT(picture_log_directory)
|
|
|
|
GLOBAL_VAR_INIT(picture_logging_id, 1)
|
|
GLOBAL_PROTECT(picture_logging_id)
|
|
|
|
GLOBAL_VAR(picture_logging_prefix)
|
|
GLOBAL_PROTECT(picture_logging_prefix)
|
|
|
|
/// All admin related log lines minus their categories
|
|
GLOBAL_LIST_EMPTY(admin_activities)
|
|
GLOBAL_PROTECT(admin_activities)
|
|
|
|
/// All bomb related messages
|
|
GLOBAL_LIST_EMPTY(bombers)
|
|
GLOBAL_PROTECT(bombers)
|
|
|
|
/// Investigate log for signaler usage, use the add_to_signaler_investigate_log proc
|
|
GLOBAL_LIST_EMPTY(investigate_signaler)
|
|
GLOBAL_PROTECT(investigate_signaler)
|
|
|
|
/// Used to add a text log to the signaler investigation log.
|
|
/// Do not add to the list directly; if the list is too large it can cause lag when an admin tries to view it.
|
|
/proc/add_to_signaler_investigate_log(text)
|
|
var/log_length = length(GLOB.investigate_signaler)
|
|
if(log_length >= INVESTIGATE_SIGNALER_LOG_MAX_LENGTH)
|
|
GLOB.investigate_signaler = GLOB.investigate_signaler.Copy((INVESTIGATE_SIGNALER_LOG_MAX_LENGTH - log_length) + 2)
|
|
GLOB.investigate_signaler += list(text)
|
|
|
|
/// Stores who uploaded laws to which silicon-based lifeform, and what the law was
|
|
GLOBAL_LIST_EMPTY(lawchanges)
|
|
GLOBAL_PROTECT(lawchanges)
|
|
|
|
#undef DECLARE_LOG
|
|
#undef DECLARE_LOG_NAMED
|
|
#undef START_LOG
|
|
#undef DONT_START_LOG
|