diff --git a/code/game/machinery/ARES/debug_pda.dm b/code/game/machinery/ARES/debug_pda.dm index 93630073aece..e820ae4ba7d7 100644 --- a/code/game/machinery/ARES/debug_pda.dm +++ b/code/game/machinery/ARES/debug_pda.dm @@ -703,6 +703,13 @@ message_admins("BIOSCAN: [key_name(user)] triggered a Marine bioscan via ARES AIST.") return TRUE + if("security_lockdown") + if(!COOLDOWN_FINISHED(datacore, aicore_lockdown)) + to_chat(user, SPAN_BOLDWARNING("AI Core Lockdown procedures are on cooldown! They will be ready in [COOLDOWN_SECONDSLEFT(datacore, aicore_lockdown)] seconds!")) + return FALSE + aicore_lockdown(user) + return TRUE + if(playsound) var/sound = pick('sound/machines/pda_button1.ogg', 'sound/machines/pda_button2.ogg') diff --git a/tgui/packages/tgui/interfaces/AresAdmin.js b/tgui/packages/tgui/interfaces/AresAdmin.js index 45311e9a2d4b..319da27debf0 100644 --- a/tgui/packages/tgui/interfaces/AresAdmin.js +++ b/tgui/packages/tgui/interfaces/AresAdmin.js @@ -30,9 +30,11 @@ const { is_pda } = data; let remotelock = !is_pda; let remotetip = 'You cannot do this via remote console.'; let deletetip = remotetip; +let lockdowntip = remotetip; if (!remotelock) { remotetip = ''; deletetip = 'Delete Record'; + lockdowntip = 'Activate/Deactivate the AI Core Lockdown.'; } export const AresAdmin = (props, context) => { @@ -384,6 +386,21 @@ const MainMenu = (props, context) => { onClick={() => act('page_core_sec')} /> + + act('security_lockdown')} + /> +