diff --git a/code/game/machinery/tcomms/presets.dm b/code/game/machinery/tcomms/presets.dm index efc98866f62..580bf080116 100644 --- a/code/game/machinery/tcomms/presets.dm +++ b/code/game/machinery/tcomms/presets.dm @@ -29,4 +29,5 @@ network_id = "CENTCOMM-RELAY" autolink_id = "STATION-CORE" hidden_link = TRUE + password_bypass = TRUE diff --git a/code/game/machinery/tcomms/relay.dm b/code/game/machinery/tcomms/relay.dm index 77f93e7e471..809fbe57106 100644 --- a/code/game/machinery/tcomms/relay.dm +++ b/code/game/machinery/tcomms/relay.dm @@ -19,6 +19,8 @@ var/linked = FALSE /// Is this link invisible on the hub? var/hidden_link = FALSE + /// Does this relay need a password to connect to hubs? + var/password_bypass = FALSE /** * Initializer for the relay. @@ -210,6 +212,10 @@ return var/obj/machinery/tcomms/core/C = locate(params["addr"]) if(istype(C, /obj/machinery/tcomms/core)) + if(password_bypass) + AddLink(C) + to_chat(usr, "Successfully linked to [C.network_id].") + return var/user_pass = input(usr, "Please enter core password","Password Entry") // Check the password if(user_pass == C.link_password)