diff --git a/code/__DEFINES/job.dm b/code/__DEFINES/job.dm
index 825fde409bae..ebd4a7a38179 100644
--- a/code/__DEFINES/job.dm
+++ b/code/__DEFINES/job.dm
@@ -64,7 +64,11 @@ GLOBAL_LIST_INIT(job_squad_roles, JOB_SQUAD_ROLES_LIST)
#define JOB_MEDIC_ROLES_LIST list(JOB_SQUAD_MEDIC, JOB_CMO, JOB_DOCTOR, JOB_NURSE, JOB_RESEARCHER, JOB_SURGEON)
#define JOB_CORPORATE_LIAISON "Corporate Liaison"
+
#define JOB_COMBAT_REPORTER "Combat Correspondent"
+#define JOB_CIVIL_ROLES /datum/timelock/civil
+#define JOB_CIVIL_ROLES_LIST list(JOB_COMBAT_REPORTER)
+
#define JOB_MESS_SERGEANT "Mess Technician"
#define JOB_SYNTH "Synthetic"
#define JOB_SYNTH_K9 "Synthetic K9"
@@ -214,6 +218,9 @@ GLOBAL_LIST_INIT(job_command_roles, JOB_COMMAND_ROLES_LIST)
#define ROLES_WY_CORPORATE list(JOB_EXECUTIVE_SUPERVISOR, JOB_EXECUTIVE_SPECIALIST, JOB_SENIOR_EXECUTIVE, JOB_EXECUTIVE, JOB_JUNIOR_EXECUTIVE, JOB_TRAINEE)
#define ROLES_WY_LEADERSHIP list(JOB_DIRECTOR, JOB_PMC_DIRECTOR, JOB_CHIEF_EXECUTIVE, JOB_DIVISION_MANAGER, JOB_ASSISTANT_MANAGER)
+#define JOB_CORPORATE_ROLES /datum/timelock/corporate
+#define JOB_CORPORATE_ROLES_LIST list(JOB_CORPORATE_LIAISON, JOB_WO_CORPORATE_LIAISON, JOB_DIRECTOR, JOB_PMC_DIRECTOR, JOB_CHIEF_EXECUTIVE, JOB_DIVISION_MANAGER, JOB_ASSISTANT_MANAGER, JOB_EXECUTIVE_SUPERVISOR, JOB_EXECUTIVE_SPECIALIST, JOB_SENIOR_EXECUTIVE, JOB_EXECUTIVE, JOB_JUNIOR_EXECUTIVE, JOB_TRAINEE)
+
//-------- WY Goons --------//
#define JOB_WY_GOON "WY Corporate Security"
#define JOB_WY_GOON_TECH "WY Corporate Security Technician"
@@ -373,6 +380,22 @@ GLOBAL_LIST_INIT(job_command_roles, JOB_COMMAND_ROLES_LIST)
#define DUTCH_JOB_LIST list(JOB_DUTCH_ARNOLD, JOB_DUTCH_RIFLEMAN, JOB_DUTCH_MINIGUNNER, JOB_DUTCH_FLAMETHROWER, JOB_DUTCH_MEDIC)
+//---------- RESPONDERS ----------//
+/// This root job should never appear ingame, it's used to select the character slot.
+#define JOB_FAX_RESPONDER "Fax Responder"
+#define JOB_FAX_RESPONDER_USCM_HC "USCM-HC Communications Officer"
+#define JOB_FAX_RESPONDER_USCM_PVST "Provost Communications Officer"
+#define JOB_FAX_RESPONDER_WY "WY Communications Executive"
+#define JOB_FAX_RESPONDER_UPP "UPP Communications Officer"
+#define JOB_FAX_RESPONDER_TWE "TWE Communications Officer"
+#define JOB_FAX_RESPONDER_CLF "CLF Information Correspondant"
+#define JOB_FAX_RESPONDER_CMB "CMB Deputy Operations Officer"
+#define JOB_FAX_RESPONDER_PRESS "Free Press Relay Operator"
+
+#define FAX_RESPONDER_JOB_LIST list(JOB_FAX_RESPONDER_USCM_HC, JOB_FAX_RESPONDER_USCM_PVST, JOB_FAX_RESPONDER_WY, JOB_FAX_RESPONDER_UPP, JOB_FAX_RESPONDER_TWE, JOB_FAX_RESPONDER_CLF, JOB_FAX_RESPONDER_CMB, JOB_FAX_RESPONDER_PRESS)
+
+
+//---------- ANTAG ----------//
#define JOB_PREDATOR "Predator"
#define JOB_XENOMORPH "Xenomorph"
#define JOB_XENOMORPH_QUEEN "Queen"
diff --git a/code/__DEFINES/mode.dm b/code/__DEFINES/mode.dm
index 64a889f23a96..35eec6663f53 100644
--- a/code/__DEFINES/mode.dm
+++ b/code/__DEFINES/mode.dm
@@ -121,6 +121,7 @@
#define ROLE_WHITELISTED 16
#define ROLE_NO_ACCOUNT 32
#define ROLE_CUSTOM_SPAWN 64
+#define ROLE_HIDDEN 128
//=================================================
//Role defines, specifically lists of roles for job bans, crew manifests and the like.
@@ -151,7 +152,7 @@ GLOBAL_LIST_INIT(ROLES_WO, list(JOB_WO_CO, JOB_WO_XO, JOB_WO_CORPORATE_LIAISON,
//Groundside roles
GLOBAL_LIST_INIT(ROLES_XENO, list(JOB_XENOMORPH_QUEEN, JOB_XENOMORPH))
-GLOBAL_LIST_INIT(ROLES_WHITELISTED, list(JOB_SYNTH_SURVIVOR, JOB_CO_SURVIVOR, JOB_PREDATOR))
+GLOBAL_LIST_INIT(ROLES_WHITELISTED, list(JOB_SYNTH_SURVIVOR, JOB_CO_SURVIVOR, JOB_PREDATOR, JOB_FAX_RESPONDER))
GLOBAL_LIST_INIT(ROLES_SPECIAL, list(JOB_SURVIVOR))
GLOBAL_LIST_INIT(ROLES_USCM, ROLES_CIC + GLOB.ROLES_POLICE + GLOB.ROLES_AUXIL_SUPPORT + GLOB.ROLES_MISC + GLOB.ROLES_ENGINEERING + GLOB.ROLES_REQUISITION + GLOB.ROLES_MEDICAL + GLOB.ROLES_MARINES - ROLES_WO)
@@ -211,13 +212,8 @@ GLOBAL_LIST_INIT(whitelist_hierarchy, list(WHITELIST_NORMAL, WHITELIST_COUNCIL,
///Senior Enlisted Advisor, auto granted by R_MENTOR
#define WHITELIST_MENTOR (1<<15)
-
-#define WHITELISTS_GENERAL (WHITELIST_YAUTJA|WHITELIST_COMMANDER|WHITELIST_SYNTHETIC|WHITELIST_MENTOR|WHITELIST_JOE)
-#define WHITELISTS_COUNCIL (WHITELIST_YAUTJA_COUNCIL|WHITELIST_COMMANDER_COUNCIL|WHITELIST_SYNTHETIC_COUNCIL)
-#define WHITELISTS_LEGACY_COUNCIL (WHITELIST_YAUTJA_COUNCIL_LEGACY|WHITELIST_COMMANDER_COUNCIL_LEGACY|WHITELIST_SYNTHETIC_COUNCIL_LEGACY)
-#define WHITELISTS_LEADER (WHITELIST_YAUTJA_LEADER|WHITELIST_COMMANDER_LEADER|WHITELIST_SYNTHETIC_LEADER)
-
-#define WHITELIST_EVERYTHING (WHITELISTS_GENERAL|WHITELISTS_COUNCIL|WHITELISTS_LEADER)
+///Fax Responder
+#define WHITELIST_FAX_RESPONDER (1<<16)
#define COUNCIL_LIST list(WHITELIST_COMMANDER_COUNCIL, WHITELIST_SYNTHETIC_COUNCIL, WHITELIST_YAUTJA_COUNCIL)
#define SENATOR_LIST list(WHITELIST_COMMANDER_LEADER, WHITELIST_SYNTHETIC_LEADER, WHITELIST_YAUTJA_LEADER)
@@ -241,6 +237,7 @@ DEFINE_BITFIELD(whitelist_status, list(
"WHITELIST_SYNTHETIC_COUNCIL_LEGACY" = WHITELIST_SYNTHETIC_COUNCIL_LEGACY,
"WHITELIST_SYNTHETIC_LEADER" = WHITELIST_SYNTHETIC_LEADER,
"WHITELIST_MENTOR" = WHITELIST_MENTOR,
+ "WHITELIST_FAX_RESPONDER" = WHITELIST_FAX_RESPONDER,
))
//=================================================
@@ -293,6 +290,7 @@ DEFINE_BITFIELD(whitelist_status, list(
#define FACTION_YAUTJA "Yautja"
#define FACTION_ZOMBIE "Zombie"
#define FACTION_MONKEY "Monkey" // Nanu
+#define FACTION_FAX "Fax Responder"
#define FACTION_LIST_MARINE list(FACTION_MARINE)
#define FACTION_LIST_HUMANOID list(FACTION_MARINE, FACTION_PMC, FACTION_WY, FACTION_WY_DEATHSQUAD, FACTION_CLF, FACTION_CONTRACTOR, FACTION_MARSHAL, FACTION_UPP, FACTION_FREELANCER, FACTION_SURVIVOR, FACTION_NEUTRAL, FACTION_COLONIST, FACTION_MERCENARY, FACTION_DUTCH, FACTION_HEFA, FACTION_GLADIATOR, FACTION_PIRATE, FACTION_PIZZA, FACTION_SOUTO, FACTION_YAUTJA, FACTION_ZOMBIE, FACTION_TWE)
diff --git a/code/__DEFINES/radio.dm b/code/__DEFINES/radio.dm
index 367c35be5605..4f9022b5ba77 100644
--- a/code/__DEFINES/radio.dm
+++ b/code/__DEFINES/radio.dm
@@ -66,6 +66,11 @@
#define RADIO_CHANNEL_BUG_A "Listening Device A"
#define RADIO_CHANNEL_BUG_B "Listening Device B"
+//Fax Responder Bugs
+#define RADIO_CHANNEL_FAX_WY "WY Monitor"
+#define RADIO_CHANNEL_FAX_USCM_HC "USCM-HC Monitor"
+#define RADIO_CHANNEL_FAX_USCM_PVST "Provost Monitor"
+
//1-Channel ERTs
#define RADIO_CHANNEL_DUTCH_DOZEN "DD"
#define RADIO_CHANNEL_VAI "VAI"
diff --git a/code/__DEFINES/urls.dm b/code/__DEFINES/urls.dm
index 5d3fca1a2032..2745b41336d4 100644
--- a/code/__DEFINES/urls.dm
+++ b/code/__DEFINES/urls.dm
@@ -9,3 +9,4 @@
#define URL_WIKI_MACROS "Macros"
#define URL_WIKI_SOP "Standard_Operating_Procedure"
#define URL_WIKI_CO_RULES "CO_Council_Rulings"
+#define URL_WIKI_FAX_RESPONDER "Fax_Responder"
diff --git a/code/controllers/subsystem/communications.dm b/code/controllers/subsystem/communications.dm
index 1e4480ef8afa..3d3f6a7d7c3d 100644
--- a/code/controllers/subsystem/communications.dm
+++ b/code/controllers/subsystem/communications.dm
@@ -107,6 +107,11 @@ Radiochat range: 1441 to 1489 (most devices refuse to be tune to other frequency
#define BUG_A_FREQ 1290
#define BUG_B_FREQ 1291
+//Listening Bugs (1296-1300)
+#define FAX_WY_FREQ 1296
+#define FAX_USCM_HC_FREQ 1297
+#define FAX_USCM_PVST_FREQ 1298
+
//General Radio
#define MIN_FREQ 1460 // ------------------------------------------------------
#define PUB_FREQ 1461
@@ -210,6 +215,10 @@ GLOBAL_LIST_INIT(radiochannels, list(
RADIO_CHANNEL_BUG_A = BUG_A_FREQ,
RADIO_CHANNEL_BUG_B = BUG_B_FREQ,
+
+ RADIO_CHANNEL_FAX_WY = FAX_WY_FREQ,
+ RADIO_CHANNEL_FAX_USCM_HC = FAX_USCM_HC_FREQ,
+ RADIO_CHANNEL_FAX_USCM_PVST = FAX_USCM_PVST_FREQ,
))
// Response Teams
@@ -227,6 +236,9 @@ GLOBAL_LIST_INIT(radiochannels, list(
//Listening Device Frequencies
#define BUG_FREQS list(BUG_A_FREQ, BUG_B_FREQ)
+//Fax Responder internal monitor frequencies
+#define FAX_RESP_FREQS list(FAX_WY_FREQ, FAX_USCM_HC_FREQ, FAX_USCM_PVST_FREQ)
+
//Depts - used for colors in headset.dm, as well as deciding what the marine comms tower can listen into
#define DEPT_FREQS list(COMM_FREQ, MED_FREQ, ENG_FREQ, SEC_FREQ, SENTRY_FREQ, ALPHA_FREQ, BRAVO_FREQ, CHARLIE_FREQ, DELTA_FREQ, ECHO_FREQ, CRYO_FREQ, REQ_FREQ, JTAC_FREQ, INTEL_FREQ, WY_FREQ)
@@ -304,6 +316,9 @@ SUBSYSTEM_DEF(radio)
"[CLF_ENGI_FREQ]" = "opforeng",
"[CLF_MED_FREQ]" = "opformed",
"[CLF_CCT_FREQ]" = "opforcct",
+ "[FAX_WY_FREQ]" = "airadio",
+ "[FAX_USCM_HC_FREQ]" = "aiprivradio",
+ "[FAX_USCM_PVST_FREQ]" = "aiprivradio",
)
/datum/controller/subsystem/radio/proc/add_object(obj/device as obj, new_frequency as num, filter = null as text|null)
diff --git a/code/datums/emergency_calls/ert_stations.dm b/code/datums/emergency_calls/ert_stations.dm
index 5a129723bad0..947007d25d70 100644
--- a/code/datums/emergency_calls/ert_stations.dm
+++ b/code/datums/emergency_calls/ert_stations.dm
@@ -18,3 +18,6 @@
/datum/lazy_template/ert/uscm_station
map_name = "uscm_ert_station"
+
+/datum/lazy_template/fax_response_base
+ map_name = "fax_responder_base"
diff --git a/code/datums/skills/civilian.dm b/code/datums/skills/civilian.dm
index ff9cadf02913..66bca6b0fbef 100644
--- a/code/datums/skills/civilian.dm
+++ b/code/datums/skills/civilian.dm
@@ -224,3 +224,15 @@ CIVILIAN
SKILL_FIREARMS = SKILL_FIREARMS_TRAINED,
SKILL_LEADERSHIP = SKILL_LEAD_TRAINED,
)
+
+/datum/skills/civilian/fax_responder
+ name = "Comms Relay Worker" //Used for fax responder presets, allowing use of appropriate HUDs and basics.
+ skills = list(
+ SKILL_ENDURANCE = SKILL_ENDURANCE_TRAINED,
+ SKILL_LEADERSHIP = SKILL_LEAD_MASTER,
+ SKILL_OVERWATCH = SKILL_OVERWATCH_TRAINED,
+ SKILL_MEDICAL = SKILL_MEDICAL_TRAINED,
+ SKILL_ENGINEER = SKILL_ENGINEER_NOVICE,
+ SKILL_VEHICLE = SKILL_VEHICLE_SMALL,
+ SKILL_INTEL = SKILL_INTEL_EXPERT,
+ )
diff --git a/code/game/area/admin_level.dm b/code/game/area/admin_level.dm
index 9dc43256f4de..f522ca24cd16 100644
--- a/code/game/area/admin_level.dm
+++ b/code/game/area/admin_level.dm
@@ -142,6 +142,10 @@
soundscape_playlist = SCAPE_PL_ELEVATOR_MUSIC
icon_state = "yellow"
+/area/adminlevel/ert_station/fax_response_station
+ name = "Sector Comms Relay"
+ icon_state = "green"
+
//Simulation area
/area/adminlevel/simulation
name = "Simulated Reality"
diff --git a/code/game/gamemodes/cm_initialize.dm b/code/game/gamemodes/cm_initialize.dm
index 3d1b85395438..5d0151212c81 100644
--- a/code/game/gamemodes/cm_initialize.dm
+++ b/code/game/gamemodes/cm_initialize.dm
@@ -48,6 +48,7 @@ Additional game mode variables.
var/list/dead_queens // A list of messages listing the dead queens
var/list/predators = list()
var/list/joes = list()
+ var/list/fax_responders = list()
var/xeno_required_num = 0 //We need at least one. You can turn this off in case we don't care if we spawn or don't spawn xenos.
var/xeno_starting_num = 0 //To clamp starting xenos.
@@ -255,6 +256,107 @@ Additional game mode variables.
return new_predator
+//===================================================\\
+
+ //FAX RESPONDER INITIATLIZE\\
+
+//===================================================\\
+
+/datum/game_mode/proc/check_fax_responder_late_join(mob/responder, show_warning = TRUE)
+ if(!responder.client)
+ return FALSE
+ if(!(responder?.client.check_whitelist_status(WHITELIST_FAX_RESPONDER)))
+ if(show_warning)
+ to_chat(responder, SPAN_WARNING("You are not whitelisted!"))
+ return FALSE
+ if(show_warning && tgui_alert(responder, "Confirm joining as a Fax Responder.", "Confirmation", list("Yes", "No"), 10 SECONDS) != "Yes")
+ return FALSE
+ if(!get_fax_responder_slots(responder))
+ if(show_warning)
+ to_chat(responder, SPAN_WARNING("No slots available!"))
+ return FALSE
+ return TRUE
+
+/datum/game_mode/proc/get_fax_responder_slots(mob/responder_candidate)
+ var/list/options = list()
+ if(!responder_candidate.client)
+ return FALSE
+ if(!(responder_candidate.client.check_whitelist_status(WHITELIST_FAX_RESPONDER)))
+ to_chat(responder_candidate, SPAN_WARNING("You are not whitelisted!"))
+ return FALSE
+
+ for(var/job in FAX_RESPONDER_JOB_LIST)
+ var/datum/job/fax_responder_job = GLOB.RoleAuthority.roles_by_name[job]
+ var/job_max = fax_responder_job.total_positions
+ if((fax_responder_job.current_positions < job_max) && fax_responder_job.can_play_role(responder_candidate.client))
+ options += job
+ return options
+
+/datum/game_mode/proc/attempt_to_join_as_fax_responder(mob/responder_candidate, from_lobby = FALSE)
+ var/list/options = get_fax_responder_slots(responder_candidate)
+ if(!options || !options.len)
+ to_chat(responder_candidate, SPAN_WARNING("No Available Slot!"))
+ if(from_lobby)
+ var/mob/new_player/lobbied = responder_candidate
+ lobbied.new_player_panel()
+ return FALSE
+
+ var/choice = tgui_input_list(responder_candidate, "What Fax Responder do you want to join as?", "Which Responder?", options, 30 SECONDS)
+ if(!(choice in FAX_RESPONDER_JOB_LIST))
+ to_chat(responder_candidate, SPAN_WARNING("Error: No valid responder selected."))
+ if(from_lobby)
+ var/mob/new_player/lobbied = responder_candidate
+ lobbied.new_player_panel()
+ return FALSE
+
+ if(!transform_fax_responder(responder_candidate, choice))
+ if(from_lobby)
+ var/mob/new_player/lobbied = responder_candidate
+ lobbied.new_player_panel()
+ return FALSE
+
+ if(responder_candidate)
+ responder_candidate.moveToNullspace() //Nullspace it for garbage collection later.
+ return TRUE
+
+/datum/game_mode/proc/transform_fax_responder(mob/responder_candidate, sub_job)
+ //set waitfor = FALSE
+
+ if(!(sub_job in FAX_RESPONDER_JOB_LIST))
+ return FALSE
+
+ if(!responder_candidate.client) // Legacy - probably due to spawn code sync sleeps
+ log_debug("Null client attempted to transform_fax_responder")
+ return FALSE
+ if(!loaded_fax_base)
+ loaded_fax_base = SSmapping.lazy_load_template(/datum/lazy_template/fax_response_base, force = TRUE)
+ if(!loaded_fax_base)
+ log_debug("Error loading fax response base!")
+ return FALSE
+
+ responder_candidate.client.prefs.find_assigned_slot(JOB_FAX_RESPONDER)
+
+ var/turf/spawn_point = get_turf(pick(GLOB.latejoin_by_job[sub_job]))
+ var/mob/living/carbon/human/new_responder = new(spawn_point)
+ responder_candidate.mind.transfer_to(new_responder, TRUE)
+ new_responder.client?.prefs.copy_all_to(new_responder, JOB_FAX_RESPONDER, TRUE, TRUE)
+
+ var/datum/job/fax_responder_job = GLOB.RoleAuthority.roles_by_name[sub_job]
+
+ if(!fax_responder_job)
+ qdel(new_responder)
+ return FALSE
+
+ // This is usually done in assign_role, a proc which is not executed in this case, since check_fax_responder_late_join is running its own checks.
+ fax_responder_job.current_positions++
+ GLOB.RoleAuthority.equip_role(new_responder, fax_responder_job, new_responder.loc)
+ SSticker.minds += new_responder.mind
+
+ message_admins(FONT_SIZE_XL(SPAN_RED("([new_responder.key]) joined as a [sub_job], [new_responder.real_name].")))
+ new_responder.add_fax_responder()
+
+ return TRUE
+
//===================================================\\
diff --git a/code/game/gamemodes/colonialmarines/whiskey_outpost.dm b/code/game/gamemodes/colonialmarines/whiskey_outpost.dm
index cfe67465df07..3947447e4da0 100644
--- a/code/game/gamemodes/colonialmarines/whiskey_outpost.dm
+++ b/code/game/gamemodes/colonialmarines/whiskey_outpost.dm
@@ -26,7 +26,7 @@
/datum/job/civilian/doctor/whiskey = JOB_DOCTOR,
/datum/job/civilian/researcher/whiskey = JOB_RESEARCHER,
/datum/job/logistics/engineering/whiskey = JOB_CHIEF_ENGINEER,
- /datum/job/logistics/tech/maint/whiskey = JOB_MAINT_TECH,
+ /datum/job/logistics/maint/whiskey = JOB_MAINT_TECH,
/datum/job/logistics/cargo/whiskey = JOB_CARGO_TECH,
/datum/job/civilian/liaison/whiskey = JOB_CORPORATE_LIAISON,
/datum/job/marine/leader/whiskey = JOB_SQUAD_LEADER,
diff --git a/code/game/gamemodes/colonialmarines/whiskey_outpost/equipping.dm b/code/game/gamemodes/colonialmarines/whiskey_outpost/equipping.dm
index d5ff07391b5e..617f957f9aec 100644
--- a/code/game/gamemodes/colonialmarines/whiskey_outpost/equipping.dm
+++ b/code/game/gamemodes/colonialmarines/whiskey_outpost/equipping.dm
@@ -189,12 +189,12 @@ Ensure power is up, and the bunker is well defended. You share your bunker crew
//*************************************
//---------------MAINT TECH-------------
//*************************************/
-/datum/job/logistics/tech/maint/whiskey
+/datum/job/logistics/maint/whiskey
title = JOB_WO_ORDNANCE_TECH
supervisors = "the bunker crew master and the quartermaster"
gear_preset = /datum/equipment_preset/wo/bc
-/datum/job/logistics/tech/maint/whiskey/generate_entry_message(mob/living/carbon/human/H)
+/datum/job/logistics/maint/whiskey/generate_entry_message(mob/living/carbon/human/H)
. = {"You've worked here for a while, figuring it was a pretty comfy job. Now you gotta fight for your life. Have fun with that.
Assist both the Bunker Crew Master and the Quartermaster in their duties."}
diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index 603f0313f840..d746248034a1 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -40,6 +40,9 @@ GLOBAL_VAR_INIT(cas_tracking_id_increment, 0) //this var used to assign unique t
var/hardcore = FALSE
+ ///Whether or not the fax response station has loaded.
+ var/loaded_fax_base = FALSE
+
/datum/game_mode/New()
..()
if(taskbar_icon)
diff --git a/code/game/jobs/job/civilians/civilian.dm b/code/game/jobs/job/civilians/civilian.dm
index a9631f2ed9c1..94865eb3b1b1 100644
--- a/code/game/jobs/job/civilians/civilian.dm
+++ b/code/game/jobs/job/civilians/civilian.dm
@@ -7,3 +7,18 @@
/datum/timelock/medic/New(name, time_required, list/roles)
. = ..()
src.roles = JOB_MEDIC_ROLES_LIST
+
+/datum/timelock/corporate
+ name = "Corporate Roles"
+
+/datum/timelock/corporate/New(name, time_required, list/roles)
+ . = ..()
+ src.roles = JOB_CORPORATE_ROLES_LIST
+
+
+/datum/timelock/civil
+ name = "Civil Roles"
+
+/datum/timelock/civil/New(name, time_required, list/roles)
+ . = ..()
+ src.roles = JOB_CIVIL_ROLES_LIST
diff --git a/code/game/jobs/job/special/responders.dm b/code/game/jobs/job/special/responders.dm
new file mode 100644
index 000000000000..4fc6d162b2d7
--- /dev/null
+++ b/code/game/jobs/job/special/responders.dm
@@ -0,0 +1,83 @@
+/datum/job/fax_responder
+ title = JOB_FAX_RESPONDER
+ gear_preset = /datum/equipment_preset/fax_responder
+ selection_class = "job_command"
+ supervisors = "CMSS13 Administration Staff"
+ total_positions = 1
+ spawn_positions = 1
+
+ late_joinable = FALSE
+
+ flags_startup_parameters = ROLE_ADMIN_NOTIFY|ROLE_WHITELISTED|ROLE_NO_ACCOUNT|ROLE_CUSTOM_SPAWN|ROLE_HIDDEN
+ flags_whitelist = WHITELIST_FAX_RESPONDER
+
+/datum/job/fax_responder/on_config_load()
+ entry_message_body = "Your job is to answer faxes sent to your fax machine. You are answering on behalf of the CMSS13 staff team and are therefore expected to behave appropriately. Failure to adhere to expectations may result in loss of the role or a server ban. Non-staff players of this role are not able to authorise ERTs through their faxes."
+ return ..()
+
+/datum/job/fax_responder/uscm_hc
+ title = JOB_FAX_RESPONDER_USCM_HC
+ gear_preset = /datum/equipment_preset/fax_responder/uscm
+
+AddTimelock(/datum/job/fax_responder/uscm_hc, list(
+ JOB_POLICE_ROLES = 25 HOURS,
+ JOB_COMMAND_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/uscm_pvst
+ title = JOB_FAX_RESPONDER_USCM_PVST
+ gear_preset = /datum/equipment_preset/fax_responder/uscm/provost
+
+AddTimelock(/datum/job/fax_responder/uscm_pvst, list(
+ JOB_POLICE_ROLES = 75 HOURS,
+ JOB_COMMAND_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/wy
+ title = JOB_FAX_RESPONDER_WY
+ gear_preset = /datum/equipment_preset/fax_responder/wey_yu
+
+AddTimelock(/datum/job/fax_responder/wy, list(
+ JOB_CORPORATE_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/upp
+ title = JOB_FAX_RESPONDER_UPP
+ gear_preset = /datum/equipment_preset/fax_responder/upp
+
+AddTimelock(/datum/job/fax_responder/upp, list(
+ JOB_COMMAND_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/twe
+ title = JOB_FAX_RESPONDER_TWE
+ gear_preset = /datum/equipment_preset/fax_responder/twe
+
+AddTimelock(/datum/job/fax_responder/twe, list(
+ JOB_COMMAND_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/clf
+ title = JOB_FAX_RESPONDER_CLF
+ gear_preset = /datum/equipment_preset/fax_responder/clf
+
+AddTimelock(/datum/job/fax_responder/clf, list(
+ JOB_COMMAND_ROLES = 75 HOURS,
+))
+
+/datum/job/fax_responder/cmb
+ title = JOB_FAX_RESPONDER_CMB
+ gear_preset = /datum/equipment_preset/fax_responder/cmb
+
+AddTimelock(/datum/job/fax_responder/cmb, list(
+ JOB_POLICE_ROLES = 75 HOURS,
+ JOB_COMMAND_ROLES = 25 HOURS,
+))
+
+/datum/job/fax_responder/press
+ title = JOB_FAX_RESPONDER_PRESS
+ gear_preset = /datum/equipment_preset/fax_responder/press
+
+AddTimelock(/datum/job/fax_responder/press, list(
+ JOB_CIVIL_ROLES = 25 HOURS,
+))
diff --git a/code/game/jobs/whitelist.dm b/code/game/jobs/whitelist.dm
index 8cd91a494c83..9de3240a4150 100644
--- a/code/game/jobs/whitelist.dm
+++ b/code/game/jobs/whitelist.dm
@@ -44,8 +44,10 @@
#define WL_PANEL_RIGHT_YAUTJA (1<<2)
#define WL_PANEL_RIGHT_MENTOR (1<<3)
#define WL_PANEL_RIGHT_OVERSEER (1<<4)
+#define WL_PANEL_RIGHT_MANAGER (1<<5)
#define WL_PANEL_ALL_COUNCILS (WL_PANEL_RIGHT_CO|WL_PANEL_RIGHT_SYNTH|WL_PANEL_RIGHT_YAUTJA)
-#define WL_PANEL_ALL_RIGHTS (WL_PANEL_RIGHT_CO|WL_PANEL_RIGHT_SYNTH|WL_PANEL_RIGHT_YAUTJA|WL_PANEL_RIGHT_MENTOR|WL_PANEL_RIGHT_OVERSEER)
+#define WL_PANEL_RIGHTS_OVERSEER (WL_PANEL_RIGHT_CO|WL_PANEL_RIGHT_SYNTH|WL_PANEL_RIGHT_YAUTJA|WL_PANEL_RIGHT_OVERSEER)
+#define WL_PANEL_ALL_RIGHTS (WL_PANEL_RIGHT_CO|WL_PANEL_RIGHT_SYNTH|WL_PANEL_RIGHT_YAUTJA|WL_PANEL_RIGHT_MENTOR|WL_PANEL_RIGHT_OVERSEER|WL_PANEL_RIGHT_MANAGER)
/datum/whitelist_panel
var/viewed_player = list()
@@ -68,7 +70,7 @@
if(person.check_whitelist_status(WHITELIST_YAUTJA_LEADER))
rights |= WL_PANEL_RIGHT_YAUTJA
if(rights == WL_PANEL_ALL_COUNCILS)
- return WL_PANEL_ALL_RIGHTS
+ rights |= WL_PANEL_RIGHTS_OVERSEER
return rights
/datum/whitelist_panel/tgui_interact(mob/user, datum/tgui/ui)
@@ -114,7 +116,7 @@ GLOBAL_LIST_INIT(syn_flags, list(
))
GLOBAL_LIST_INIT(yaut_flags, list(
list(name = "Yautja", bitflag = WHITELIST_YAUTJA, permission = WL_PANEL_RIGHT_YAUTJA),
- list(name = "Legacy Holder", bitflag = WHITELIST_YAUTJA_LEGACY, permission = WL_PANEL_RIGHT_OVERSEER),
+ list(name = "Legacy Holder", bitflag = WHITELIST_YAUTJA_LEGACY, permission = WL_PANEL_RIGHT_MANAGER),
list(name = "Council", bitflag = WHITELIST_YAUTJA_COUNCIL, permission = WL_PANEL_RIGHT_YAUTJA),
list(name = "Legacy Council", bitflag = WHITELIST_YAUTJA_COUNCIL_LEGACY, permission = WL_PANEL_RIGHT_YAUTJA),
list(name = "Senator", bitflag = WHITELIST_YAUTJA_LEADER, permission = WL_PANEL_RIGHT_OVERSEER)
@@ -122,6 +124,7 @@ GLOBAL_LIST_INIT(yaut_flags, list(
GLOBAL_LIST_INIT(misc_flags, list(
list(name = "Senior Enlisted Advisor", bitflag = WHITELIST_MENTOR, permission = WL_PANEL_RIGHT_MENTOR),
list(name = "Working Joe", bitflag = WHITELIST_JOE, permission = WL_PANEL_RIGHT_SYNTH),
+ list(name = "Fax Responder", bitflag = WHITELIST_FAX_RESPONDER, permission = WL_PANEL_RIGHT_MANAGER),
))
/datum/whitelist_panel/ui_static_data(mob/user)
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index 88e74ccdf141..35bfb3e1c3b8 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -8,7 +8,7 @@
//Used for logging people entering cryosleep and important items they are carrying.
GLOBAL_LIST_EMPTY(frozen_crew)
-GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = list(), SQUAD_MARINE_3 = list(), SQUAD_MARINE_4 = list(), "MP" = list(), "REQ" = list(), "Eng" = list(), "Med" = list(), "Yautja" = list()))
+GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = list(), SQUAD_MARINE_3 = list(), SQUAD_MARINE_4 = list(), "MP" = list(), "REQ" = list(), "Eng" = list(), "Med" = list(), "Yautja" = list(), "Responders" = list()))
//Main cryopod console.
@@ -229,8 +229,8 @@ GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = li
var/list/dept_console = GLOB.frozen_items["REQ"]
if(ishuman(occupant))
- var/mob/living/carbon/human/H = occupant
- switch(H.job)
+ var/mob/living/carbon/human/cryo_human = occupant
+ switch(cryo_human.job)
if(JOB_POLICE, JOB_WARDEN, JOB_CHIEF_POLICE)
dept_console = GLOB.frozen_items["MP"]
if(JOB_NURSE, JOB_DOCTOR, JOB_RESEARCHER, JOB_CMO)
@@ -240,7 +240,10 @@ GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = li
if(JOB_PREDATOR)
dept_console = GLOB.frozen_items["Yautja"]
- H.species.handle_cryo(H)
+ if(cryo_human.job in FAX_RESPONDER_JOB_LIST)
+ cryo_human.despawn_fax_responder()
+
+ cryo_human.species.handle_cryo(cryo_human)
var/list/deleteempty = list(/obj/item/storage/backpack/marine/satchel)
diff --git a/code/game/machinery/fax_machine.dm b/code/game/machinery/fax_machine.dm
index b15117bb2554..4b5df130c96d 100644
--- a/code/game/machinery/fax_machine.dm
+++ b/code/game/machinery/fax_machine.dm
@@ -1,5 +1,6 @@
-GLOBAL_LIST_INIT_TYPED(allfaxes, /obj/structure/machinery/faxmachine, list())
-GLOBAL_LIST_EMPTY(alldepartments)
+GLOBAL_LIST_INIT_TYPED(all_faxmachines, /obj/structure/machinery/faxmachine, list())
+GLOBAL_LIST_EMPTY(all_fax_departments)
+GLOBAL_LIST_EMPTY(all_faxcodes)
#define DEPARTMENT_WY "Weyland-Yutani"
#define DEPARTMENT_HC "USCM High Command"
@@ -9,8 +10,24 @@ GLOBAL_LIST_EMPTY(alldepartments)
#define DEPARTMENT_TWE "Three World Empire"
#define DEPARTMENT_UPP "Union of Progress Peoples"
#define DEPARTMENT_CLF "Colonial Liberation Front"
+#define DEPARTMENT_TARGET "Specific Machine Code"//Used to send to a single specific machine.
#define HIGHCOM_DEPARTMENTS list(DEPARTMENT_WY, DEPARTMENT_HC, DEPARTMENT_CMB, DEPARTMENT_PROVOST, DEPARTMENT_PRESS, DEPARTMENT_TWE, DEPARTMENT_UPP, DEPARTMENT_CLF)
+#define FAX_NET_USCM "USCM Encrypted Network"
+#define FAX_NET_USCM_HC "USCM High Command Quantum Relay"
+#define FAX_NET_WY "Weyland-Yutani Secure Network"
+#define FAX_NET_WY_COL "Weyland-Yutani Public Network"
+#define FAX_NET_WY_HC "Weyland-Yutani Quantum Relay"
+#define FAX_NET_CMB "NC4 UA Federal Secure Network - CMB Relay"
+#define FAX_NET_TWE "TWE Encrypted Network"
+#define FAX_NET_TWE_HC "TWE Imperial Command Quantum Relay"
+#define FAX_NET_UPP "UPP Encrypted Network"
+#define FAX_NET_UPP_HC "UPP High Command Quantum Relay"
+#define FAX_NET_CLF "Peridia Encrypted Network"
+#define FAX_NET_CLF_HC "Peridia Quantum Relay"
+#define FAX_NET_PRESS_HC "Free Press Quantum Relay"
+#define FAX_HC_NETWORKS list(FAX_NET_USCM_HC, FAX_NET_WY_HC, FAX_NET_CMB, FAX_NET_TWE_HC, FAX_NET_UPP_HC, FAX_NET_CLF_HC, FAX_NET_PRESS_HC)
+
/obj/structure/machinery/faxmachine // why not fax_machine?
name = "\improper General Purpose Fax Machine"
icon = 'icons/obj/structures/machinery/library.dmi'
@@ -35,24 +52,81 @@ GLOBAL_LIST_EMPTY(alldepartments)
///Target department
var/target_department = DEPARTMENT_WY
+ var/target_machine_id = "No ID Selected"
// list for img and their photo reference to be stored into the admin's cache.
var/list/photo_list = list()
///Fluff network shown by fax machine when logged in
- var/network = "Weyland-Yutani Public Network"
+ var/network = FAX_NET_WY_COL
///storer var for cooldown on sending faxes
var/fax_cooldown = 300
COOLDOWN_DECLARE(send_cooldown)
+ /// Unique identifier for the fax machine.
+ var/machine_id_tag
+ /// Whether or not the ID tag can be changed by proc.
+ var/fixed_id_tag = FALSE
+
/obj/structure/machinery/faxmachine/Initialize(mapload, ...)
. = ..()
- GLOB.allfaxes += src
+ GLOB.all_faxmachines += src
update_departments()
+ generate_id_tag()
+
+/obj/structure/machinery/faxmachine/proc/generate_id_tag(force = FALSE)
+ if(fixed_id_tag && !force)
+ return FALSE
+ if(machine_id_tag)
+ GLOB.all_faxcodes -= machine_id_tag
+
+ var/id_tag_prefix
+ var/id_tag_suffix = "[rand(1000, 9999)][pick(GLOB.alphabet_uppercase)][pick(GLOB.alphabet_uppercase)]"
+ var/id_tag_final
+ switch(network)
+ if(FAX_NET_USCM)
+ id_tag_prefix = "UA-M"//United Americas Military
+ if(FAX_NET_USCM_HC)
+ id_tag_final = FAX_NET_USCM_HC
+ if(FAX_NET_CMB)
+ id_tag_final = FAX_NET_CMB
+ if(FAX_NET_WY)
+ id_tag_prefix = "WY-SCN"//Weyland Yutani Secure Corporate Network
+ if(FAX_NET_WY_COL)
+ id_tag_prefix = "WYC"//Weyland Yutani Communications
+ if(FAX_NET_WY_HC)
+ id_tag_final = FAX_NET_WY_HC
+ if(FAX_NET_TWE)
+ id_tag_prefix = "ICN"//Imperial Communication Network
+ if(FAX_NET_TWE_HC)
+ id_tag_final = FAX_NET_TWE_HC
+ if(FAX_NET_UPP)
+ id_tag_prefix = "UFR"//Union Fax Relay
+ if(FAX_NET_UPP_HC)
+ id_tag_final = FAX_NET_UPP_HC
+ if(FAX_NET_CLF)
+ id_tag_prefix = "PRD"//PeRiDia
+ if(FAX_NET_CLF_HC)
+ id_tag_final = FAX_NET_CLF_HC
+ if(FAX_NET_PRESS_HC)
+ id_tag_final = FAX_NET_PRESS_HC
+
+ if(!id_tag_final)
+ id_tag_final = "[id_tag_prefix]-[id_tag_suffix]"
+ if(id_tag_final in GLOB.all_faxcodes)
+ generate_id_tag()
+ return FALSE
+
+ machine_id_tag = id_tag_final
+ if(machine_id_tag == network)
+ return TRUE
+ GLOB.all_faxcodes += id_tag_final
+ return TRUE
/obj/structure/machinery/faxmachine/Destroy()
- GLOB.allfaxes -= src
+ GLOB.all_faxmachines -= src
+ GLOB.all_faxcodes -= machine_id_tag
. = ..()
/obj/structure/machinery/faxmachine/initialize_pass_flags(datum/pass_flags_container/PF)
@@ -129,24 +203,26 @@ GLOBAL_LIST_EMPTY(alldepartments)
return
/obj/structure/machinery/faxmachine/proc/update_departments()
- if( !("[department]" in GLOB.alldepartments) ) //Initialize departments. This will work with multiple fax machines.
- GLOB.alldepartments += department
- if(!(DEPARTMENT_WY in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_WY
- if(!(DEPARTMENT_HC in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_HC
- if(!(DEPARTMENT_PROVOST in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_PROVOST
- if(!(DEPARTMENT_CMB in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_CMB
- if(!(DEPARTMENT_PRESS in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_PRESS
- if(!(DEPARTMENT_TWE in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_TWE
- if(!(DEPARTMENT_UPP in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_UPP
- if(!(DEPARTMENT_CLF in GLOB.alldepartments))
- GLOB.alldepartments += DEPARTMENT_CLF
+ if(!(DEPARTMENT_TARGET in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_TARGET
+ if( !("[department]" in GLOB.all_fax_departments) ) //Initialize departments. This will work with multiple fax machines.
+ GLOB.all_fax_departments += department
+ if(!(DEPARTMENT_WY in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_WY
+ if(!(DEPARTMENT_HC in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_HC
+ if(!(DEPARTMENT_PROVOST in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_PROVOST
+ if(!(DEPARTMENT_CMB in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_CMB
+ if(!(DEPARTMENT_PRESS in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_PRESS
+ if(!(DEPARTMENT_TWE in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_TWE
+ if(!(DEPARTMENT_UPP in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_UPP
+ if(!(DEPARTMENT_CLF in GLOB.all_fax_departments))
+ GLOB.all_fax_departments += DEPARTMENT_CLF
// TGUI SHIT \\
@@ -169,6 +245,7 @@ GLOBAL_LIST_EMPTY(alldepartments)
data["department"] = department
data["network"] = network
+ data["machine_id_tag"] = machine_id_tag
return data
@@ -181,7 +258,17 @@ GLOBAL_LIST_EMPTY(alldepartments)
data["paper_name"] = original_fax.name
data["authenticated"] = authenticated
+
data["target_department"] = target_department
+ if(target_department == DEPARTMENT_TARGET)
+ data["target_department"] = target_machine_id
+
+ if(target_department in HIGHCOM_DEPARTMENTS)
+ data["highcom_dept"] = TRUE
+ else
+ data["highcom_dept"] = FALSE
+
+ data["awake_responder"] = is_department_responder_awake(target_department)
data["worldtime"] = world.time
data["nextfaxtime"] = send_cooldown
@@ -266,8 +353,15 @@ GLOBAL_LIST_EMPTY(alldepartments)
if("select")
var/last_target_department = target_department
- target_department = tgui_input_list(ui.user, "Which department?", "Choose a department", GLOB.alldepartments)
- if(!target_department) target_department = last_target_department
+ target_department = tgui_input_list(ui.user, "Which department?", "Choose a department", GLOB.all_fax_departments)
+ if(!target_department)
+ target_department = last_target_department
+ if(target_department == DEPARTMENT_TARGET)
+ var/new_target_machine_id = tgui_input_list(ui.user, "Which machine?", "Choose a machine code", GLOB.all_faxcodes)
+ if(!new_target_machine_id)
+ target_department = last_target_department
+ else
+ target_machine_id = new_target_machine_id
. = TRUE
if("auth")
@@ -330,15 +424,18 @@ GLOBAL_LIST_EMPTY(alldepartments)
/obj/structure/machinery/faxmachine/proc/outgoing_fax_message(mob/user)
- var/datum/fax/faxcontents = new(fax_paper_copy.info, photo_list)
+ var/datum/fax/faxcontents = new(fax_paper_copy.info, photo_list, fax_paper_copy.name)
GLOB.fax_contents += faxcontents
var/scan_department = target_department
+ var/the_target_department = target_department
if(department in HIGHCOM_DEPARTMENTS)
scan_department = department
+ else if(target_department == DEPARTMENT_TARGET)
+ the_target_department = "Fax Machine [target_machine_id]"
- var/msg_admin = SPAN_STAFF_IC("[target_department]: [key_name(user, 1)] ")
+ var/msg_admin = SPAN_STAFF_IC("[the_target_department]: [key_name(user, 1)] ")
msg_admin += "[CC_MARK(user)] [ADMIN_PP(user)] [ADMIN_VV(user)] [ADMIN_SM(user)] [ADMIN_JMP_USER(user)] "
switch(scan_department)
@@ -372,7 +469,7 @@ GLOBAL_LIST_EMPTY(alldepartments)
msg_admin += SPAN_STAFF_IC("Receiving fax via secure connection ... view message")
- var/msg_ghost = SPAN_NOTICE("[target_department]: ")
+ var/msg_ghost = SPAN_NOTICE("[the_target_department]: ")
msg_ghost += "Receiving fax via secure connection ... view message"
send_fax(faxcontents)
@@ -404,80 +501,81 @@ GLOBAL_LIST_EMPTY(alldepartments)
/obj/structure/machinery/faxmachine/proc/send_fax(datum/fax/faxcontents)
- for(var/obj/structure/machinery/faxmachine/F in GLOB.allfaxes)
- if(F != src && F.department == target_department)
- if(!faxcontents)
- return
- if(! (F.inoperable() ) )
+ var/list/target_machines = list()
+ for(var/obj/structure/machinery/faxmachine/pos_target in GLOB.all_faxmachines)
+ if(target_department == DEPARTMENT_TARGET)
+ if(pos_target != src && pos_target.machine_id_tag == target_machine_id)
+ target_machines += pos_target
+ else
+ if(pos_target != src && pos_target.department == target_department)
+ target_machines += pos_target
+
+ for(var/obj/structure/machinery/faxmachine/target in target_machines)
+ if(!faxcontents)
+ return
+ if(!(target.inoperable()))
- flick("[initial(icon_state)]receive", F)
+ flick("[initial(icon_state)]receive", target)
- // give the sprite some time to flick
- spawn(30)
- var/obj/item/paper/P = new(F.loc,faxcontents.photo_list)
+ // give the sprite some time to flick
+ spawn(30)
+ var/obj/item/paper/P = new(target.loc,faxcontents.photo_list)
+ if(!faxcontents.paper_name)
P.name = "faxed message"
- P.info = "[faxcontents.data]"
- P.update_icon()
-
- switch(network)
- if("USCM High Command Quantum Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-uscm"
- P.stamps += "
This paper has been stamped by the USCM High Command Quantum Relay."
- if("NC4 UA Federal Secure Network - CMB Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-cmb"
- if(!P.stamped)
- P.stamped = new
- P.stamped += /obj/item/tool/stamp
- P.overlays += stampoverlay
- P.stamps += "
This paper has been stamped by The Office of Colonial Marshals."
- if("Weyland-Yutani Quantum Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-weyyu"
- if(!P.stamped)
- P.stamped = new
- P.stamped += /obj/item/tool/stamp
- P.overlays += stampoverlay
- P.stamps += "
This paper has been stamped and encrypted by the Weyland-Yutani Quantum Relay (tm)."
- if("TWE Royal Marines Commando Quantum Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-twe"
- if(!P.stamped)
- P.stamped = new
- P.stamped += /obj/item/tool/stamp
- P.overlays += stampoverlay
- P.stamps += "
This paper has been stamped by the TWE Royal Marines Commando Quantum Relay."
- if("UPP High Kommand Quantum Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-upp"
- if(!P.stamped)
- P.stamped = new
- P.stamped += /obj/item/tool/stamp
- P.overlays += stampoverlay
- P.stamps += "
This paper has been stamped by the UPP High Kommand Quantum Relay."
- if("CLF Gureilla Command Quantum Relay")
- var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-clf"
- if(!P.stamped)
- P.stamped = new
- P.stamped += /obj/item/tool/stamp
- P.overlays += stampoverlay
- P.stamps += "
This paper has been stamped and encrypted by the CLF Gureilla Command Quantum Relay."
-
- playsound(F.loc, "sound/items/polaroid1.ogg", 15, 1)
+ else
+ P.name = "faxed message ([faxcontents.paper_name])"
+ P.info = "[faxcontents.data]"
+ P.update_icon()
+ var/image/stampoverlay = image('icons/obj/items/paper.dmi')
+ var/encrypted = FALSE
+
+ switch(network)
+ if(FAX_NET_USCM_HC)
+ stampoverlay.icon_state = "paper_stamp-uscm"
+ encrypted = TRUE
+ if(FAX_NET_CMB)
+ stampoverlay.icon_state = "paper_stamp-cmb"
+ network = "NC4 UA Federal Secure Network."
+ encrypted = TRUE
+ if(FAX_NET_WY_HC)
+ stampoverlay.icon_state = "paper_stamp-weyyu"
+ encrypted = TRUE
+ if(FAX_NET_TWE_HC)
+ stampoverlay.icon_state = "paper_stamp-twe"
+ encrypted = TRUE
+ if(FAX_NET_UPP_HC)
+ stampoverlay.icon_state = "paper_stamp-upp"
+ encrypted = TRUE
+ if(FAX_NET_CLF_HC)
+ stampoverlay.icon_state = "paper_stamp-clf"
+ encrypted = TRUE
+ if(FAX_NET_PRESS_HC)
+ stampoverlay.icon_state = "paper_stamp-rd"
+ encrypted = TRUE
+ else
+ stampoverlay.icon_state = "paper_stamp-fax"
+
+
+ if(encrypted)
+ if(!P.stamped)
+ P.stamped = new
+ P.stamped += /obj/item/tool/stamp
+ P.stamps += "
This paper has been stamped and encrypted by the [network]."
+ else
+ P.stamps += "
This paper has been sent by [machine_id_tag]."
+ P.overlays += stampoverlay
+ playsound(target.loc, "sound/items/polaroid1.ogg", 15, 1)
qdel(faxcontents)
/obj/structure/machinery/faxmachine/cmb
name = "\improper CMB Incident Command Center Fax Machine"
- department = "Colonial Marshal Bureau, Anchorpoint Station"
- network = "NC4 UA Federal Secure Network - CMB Relay"
+ network = FAX_NET_CMB
department = DEPARTMENT_CMB
/obj/structure/machinery/faxmachine/corporate
name = "\improper W-Y Corporate Fax Machine"
department = "W-Y Local Office"
- network = "Weyland-Yutani Secure Network"
+ network = FAX_NET_WY
/obj/structure/machinery/faxmachine/corporate/liaison
department = "W-Y Liaison"
@@ -485,12 +583,12 @@ GLOBAL_LIST_EMPTY(alldepartments)
/obj/structure/machinery/faxmachine/corporate/highcom
department = DEPARTMENT_WY
target_department = "W-Y Liaison"
- network = "Weyland-Yutani Quantum Relay"
+ network = FAX_NET_WY_HC
/obj/structure/machinery/faxmachine/uscm
name = "\improper USCM Military Fax Machine"
department = "USCM Local Operations"
- network = "USCM Encrypted Network"
+ network = FAX_NET_USCM
target_department = DEPARTMENT_HC
/obj/structure/machinery/faxmachine/uscm/command
@@ -502,7 +600,7 @@ GLOBAL_LIST_EMPTY(alldepartments)
/obj/structure/machinery/faxmachine/uscm/command/highcom
department = DEPARTMENT_HC
target_department = "Commanding Officer"
- network = "USCM High Command Quantum Relay"
+ network = FAX_NET_USCM_HC
/obj/structure/machinery/faxmachine/uscm/brig
name = "\improper USCM Provost Fax Machine"
@@ -515,8 +613,45 @@ GLOBAL_LIST_EMPTY(alldepartments)
/obj/structure/machinery/faxmachine/uscm/brig/provost
department = DEPARTMENT_PROVOST
target_department = "Brig"
- network = "USCM High Command Quantum Relay"
-
+ network = FAX_NET_USCM_HC
+
+/obj/structure/machinery/faxmachine/upp
+ name = "\improper UPP Military Fax Machine"
+ department = "UPP Local Operations"
+ network = FAX_NET_UPP
+ target_department = DEPARTMENT_UPP
+
+/obj/structure/machinery/faxmachine/upp/highcom
+ department = DEPARTMENT_UPP
+ network = FAX_NET_UPP_HC
+ target_department = "UPP Local Operations"
+
+/obj/structure/machinery/faxmachine/clf
+ name = "\improper Hacked General Purpose Fax Machine"
+ department = "CLF Local Operations"
+ network = FAX_NET_CLF
+ target_department = DEPARTMENT_CLF
+
+/obj/structure/machinery/faxmachine/clf/highcom
+ department = DEPARTMENT_CLF
+ network = FAX_NET_CLF_HC
+ target_department = "CLF Local Operations"
+
+/obj/structure/machinery/faxmachine/twe
+ name = "\improper TWE Military Fax Machine"
+ department = "TWE Local Operations"
+ network = FAX_NET_TWE
+ target_department = DEPARTMENT_TWE
+
+/obj/structure/machinery/faxmachine/twe/highcom
+ department = DEPARTMENT_TWE
+ network = FAX_NET_TWE_HC
+ target_department = "TWE Local Operations"
+
+/obj/structure/machinery/faxmachine/press/highcom
+ department = DEPARTMENT_PRESS
+ network = FAX_NET_PRESS_HC
+ target_department = "General Public"
///The deployed fax machine backpack
/obj/structure/machinery/faxmachine/backpack
@@ -526,6 +661,14 @@ GLOBAL_LIST_EMPTY(alldepartments)
needs_power = FALSE
use_power = USE_POWER_NONE
health = 150
+ var/obj/item/device/fax_backpack/faxbag
+
+/obj/structure/machinery/faxmachine/backpack/New(loc, portable_id_tag)
+ . = ..()
+ if(portable_id_tag)
+ machine_id_tag = portable_id_tag
+ fixed_id_tag = TRUE
+ GLOB.all_faxcodes += machine_id_tag
///The wearable and deployable part of the fax machine backpack
/obj/item/device/fax_backpack
@@ -537,6 +680,7 @@ GLOBAL_LIST_EMPTY(alldepartments)
w_class = SIZE_HUGE
flags_equip_slot = SLOT_BACK
flags_item = ITEM_OVERRIDE_NORTHFACE
+ var/machine_id_tag
/obj/item/device/fax_backpack/attack_self(mob/user) //activate item version fax inhand to deploy
if(!ishuman(user))
@@ -570,10 +714,12 @@ GLOBAL_LIST_EMPTY(alldepartments)
to_chat(user, SPAN_NOTICE("You begin to deploy [src]..."))
if(do_after(user, 4.5 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
to_chat(user, SPAN_NOTICE("You deploy [src]."))
- var/obj/structure/machinery/faxmachine/backpack/deployedfax = new(deployturf)
+ var/obj/structure/machinery/faxmachine/backpack/deployedfax = new(deployturf, machine_id_tag)
+ deployedfax.faxbag = src
transfer_label_component(deployedfax)
playsound(src.loc, 'sound/machines/print.ogg', 40, 1)
- qdel(src)
+ user.drop_held_item(src)
+ forceMove(deployedfax)
return
return ..()
@@ -589,9 +735,10 @@ GLOBAL_LIST_EMPTY(alldepartments)
if(do_after(user, 4.5 SECONDS, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
playsound(src.loc, 'sound/items/Ratchet.ogg', 25, 1)
to_chat(user, SPAN_NOTICE("You pick up [src]."))
- var/obj/item/device/fax_backpack/faxbag = new(loc)
transfer_label_component(faxbag)
user.put_in_hands(faxbag)
+ if(faxbag.machine_id_tag != machine_id_tag)
+ faxbag.machine_id_tag = machine_id_tag
qdel(src)
return
return ..()
@@ -599,8 +746,40 @@ GLOBAL_LIST_EMPTY(alldepartments)
/datum/fax
var/data
var/list/photo_list
+ var/paper_name
-/datum/fax/New(data, photo_list)
+/datum/fax/New(new_data, new_photo_list, new_name)
. = ..()
- src.data = data
- src.photo_list = photo_list
+ data = new_data
+ photo_list = new_photo_list
+ if(new_name != "paper")
+ paper_name = new_name
+
+
+
+/obj/structure/machinery/faxmachine/proc/is_department_responder_awake(target_department)
+ if(!(target_department in HIGHCOM_DEPARTMENTS))
+ return FALSE
+ var/target_job = JOB_FAX_RESPONDER
+ switch(target_department)
+ if(DEPARTMENT_CLF)
+ target_job = JOB_FAX_RESPONDER_CLF
+ if(DEPARTMENT_CMB)
+ target_job = JOB_FAX_RESPONDER_CMB
+ if(DEPARTMENT_HC)
+ target_job = JOB_FAX_RESPONDER_USCM_HC
+ if(DEPARTMENT_PRESS)
+ target_job = JOB_FAX_RESPONDER_PRESS
+ if(DEPARTMENT_PROVOST)
+ target_job = JOB_FAX_RESPONDER_USCM_PVST
+ if(DEPARTMENT_TWE)
+ target_job = JOB_FAX_RESPONDER_TWE
+ if(DEPARTMENT_UPP)
+ target_job = JOB_FAX_RESPONDER_UPP
+ if(DEPARTMENT_WY)
+ target_job = JOB_FAX_RESPONDER_WY
+
+ for(var/mob/living/carbon/human/responder in SSticker.mode.fax_responders)
+ if(!(responder.stat) && (responder.job == target_job))
+ return TRUE
+ return FALSE
diff --git a/code/game/objects/effects/landmarks/landmarks.dm b/code/game/objects/effects/landmarks/landmarks.dm
index c424db878f6e..13013b5bbfd4 100644
--- a/code/game/objects/effects/landmarks/landmarks.dm
+++ b/code/game/objects/effects/landmarks/landmarks.dm
@@ -361,10 +361,10 @@
job = /datum/job/logistics/engineering/whiskey
/obj/effect/landmark/start/whiskey/maint
- job = /datum/job/logistics/tech/maint/whiskey
+ job = /datum/job/logistics/maint/whiskey
/obj/effect/landmark/start/whiskey/tech
- job = /datum/job/logistics/tech //Need to create a WO variant in the future
+ job = /datum/job/logistics/otech //Need to create a WO variant in the future
//****************************************** MILITARY POLICE- HONOR-GUARD ************************************************/
/obj/effect/landmark/start/whiskey/warrant
@@ -513,6 +513,39 @@
GLOB.latejoin -= src
return ..()
+
+/obj/effect/landmark/late_join/responder/uscm
+ name = "USCM HC Fax Responder late join"
+ job = JOB_FAX_RESPONDER_USCM_HC
+
+/obj/effect/landmark/late_join/responder/uscm/provost
+ name = "USCM Provost Fax Responder late join"
+ job = JOB_FAX_RESPONDER_USCM_PVST
+
+/obj/effect/landmark/late_join/responder/wey_yu
+ name = "W-Y Fax Responder late join"
+ job = JOB_FAX_RESPONDER_WY
+
+/obj/effect/landmark/late_join/responder/upp
+ name = "UPP Fax Responder late join"
+ job = JOB_FAX_RESPONDER_UPP
+
+/obj/effect/landmark/late_join/responder/twe
+ name = "TWE Fax Responder late join"
+ job = JOB_FAX_RESPONDER_TWE
+
+/obj/effect/landmark/late_join/responder/clf
+ name = "CLF Fax Responder late join"
+ job = JOB_FAX_RESPONDER_CLF
+
+/obj/effect/landmark/late_join/responder/cmb
+ name = "CMB Fax Responder late join"
+ job = JOB_FAX_RESPONDER_CMB
+
+/obj/effect/landmark/late_join/responder/press
+ name = "Press Fax Responder late join"
+ job = JOB_FAX_RESPONDER_PRESS
+
//****************************************** STATIC COMMS ************************************************//
/obj/effect/landmark/static_comms
name = "static comms"
diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm
index 205fa7710312..4a665c88133f 100644
--- a/code/game/objects/items/devices/radio/headset.dm
+++ b/code/game/objects/items/devices/radio/headset.dm
@@ -41,6 +41,9 @@
///The type of minimap this headset is added to
var/minimap_type = MINIMAP_FLAG_USCM
+ var/obj/item/device/radio/listening_bug/spy_bug
+ var/spy_bug_type
+
var/mob/living/carbon/human/wearer
/obj/item/device/radio/headset/Initialize()
@@ -63,8 +66,15 @@
if(GLOB.radiochannels[cycled_channel] == frequency)
default_freq = cycled_channel
+ if(spy_bug_type)
+ spy_bug = new spy_bug_type
+ spy_bug.forceMove(src)
+
/obj/item/device/radio/headset/Destroy()
wearer = null
+ if(spy_bug)
+ qdel(spy_bug)
+ spy_bug = null
QDEL_NULL_LIST(keys)
return ..()
@@ -561,6 +571,12 @@
maximum_keys = 5
initial_keys = list(/obj/item/device/encryptionkey/mcom/cl)
+ spy_bug_type = /obj/item/device/radio/listening_bug/radio_linked/fax/wy
+
+/obj/item/device/radio/headset/almayer/mcl/Initialize()
+ . = ..()
+ spy_bug.nametag = "CL Radio"
+
/obj/item/device/radio/headset/almayer/reporter
name = "reporter radio headset"
desc = "Used by the combat correspondent to get the scoop. Channels are as follows: :v - marine command, :a - alpha squad, :b - bravo squad, :c - charlie squad, :d - delta squad, :n - engineering, :m - medbay, :u - requisitions, :j - JTAC, :t - intel."
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index baef29b84e81..2bfc9054b1a0 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -93,3 +93,16 @@
/obj/item/device/radio/intercom/devana
name = "dropship devana intercom"
frequency = UPP_DS2_FREQ
+
+/obj/item/device/radio/intercom/fax
+ name = "Monitoring Frequency Speaker"
+ canhear_range = 4
+
+/obj/item/device/radio/intercom/fax/wy
+ frequency = FAX_WY_FREQ
+
+/obj/item/device/radio/intercom/fax/uscm_hc
+ frequency = FAX_USCM_HC_FREQ
+
+/obj/item/device/radio/intercom/fax/uscm_pvst
+ frequency = FAX_USCM_PVST_FREQ
diff --git a/code/game/objects/items/devices/radio/listening_bugs.dm b/code/game/objects/items/devices/radio/listening_bugs.dm
index 9492188a14f0..c7fb89381603 100644
--- a/code/game/objects/items/devices/radio/listening_bugs.dm
+++ b/code/game/objects/items/devices/radio/listening_bugs.dm
@@ -274,3 +274,23 @@
/obj/item/device/encryptionkey/listening_bug/freq_b
name = "Listening Bug Encryption Key (B)"
channels = list(RADIO_CHANNEL_BUG_B = TRUE)
+
+
+
+///An automatically active bug used to listen to things by a Fax Responder.
+/obj/item/device/radio/listening_bug/radio_linked/fax
+ name = "Comms Relay Device"
+ subspace_switchable = FALSE
+ broadcasting = TRUE
+
+/obj/item/device/radio/listening_bug/radio_linked/fax/wy
+ frequency = FAX_WY_FREQ
+ req_one_access = list(ACCESS_WY_SENIOR_LEAD)
+
+/obj/item/device/radio/listening_bug/radio_linked/fax/uscm_pvst
+ frequency = FAX_USCM_PVST_FREQ
+ req_one_access = list(ACCESS_MARINE_CO)
+
+/obj/item/device/radio/listening_bug/radio_linked/fax/uscm_hc
+ frequency = FAX_USCM_HC_FREQ
+ req_one_access = list(ACCESS_MARINE_CO)
diff --git a/code/modules/admin/topic/topic.dm b/code/modules/admin/topic/topic.dm
index 029eda204f3a..6f660323f8e3 100644
--- a/code/modules/admin/topic/topic.dm
+++ b/code/modules/admin/topic/topic.dm
@@ -1344,7 +1344,7 @@
// Stamps
var/image/stampoverlay = image('icons/obj/items/paper.dmi')
- stampoverlay.icon_state = "paper_stamp-uscm"
+ stampoverlay.icon_state = "paper_stamp-rd"
if(!P.stamped)
P.stamped = new
P.stamped += /obj/item/tool/stamp
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index a66df6a10d46..a84e03104613 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -886,6 +886,12 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list(
if((flag_to_check & WHITELIST_JOE) && CLIENT_IS_STAFF(src))
return TRUE
+ if((flag_to_check & WHITELIST_FAX_RESPONDER) && CLIENT_IS_MENTOR(src))
+ return TRUE
+
+ if((flag_to_check & WHITELIST_FAX_RESPONDER) && isCouncil(src))
+ return TRUE
+
if(!player_data)
load_player_data()
if(!player_data)
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 384ed0b11b82..931574b6dc11 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -694,6 +694,8 @@ GLOBAL_LIST_INIT(bgstate_options, list(
if(!job)
debug_log("Missing job for prefs: [role_name]")
continue
+ if(job.flags_startup_parameters & ROLE_HIDDEN)
+ continue
index++
if((index >= limit) || (job.title in splitJobs))
HTML += "