From e2a7710491c0cab034f49e3c2ecf7399bce5bf40 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Sun, 26 Oct 2014 22:23:55 +0100 Subject: [PATCH] The AI now has a radio channel for its private frequency. --- code/controllers/communications.dm | 3 ++- code/game/objects/items/devices/radio/encryptionkey.dm | 2 +- code/modules/mob/living/say.dm | 2 ++ code/modules/mob/living/silicon/ai/ai.dm | 4 +++- code/modules/mob/living/silicon/ai/laws.dm | 1 + code/modules/mob/transform_procs.dm | 2 ++ 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/code/controllers/communications.dm b/code/controllers/communications.dm index 7981527bea..0267aed853 100644 --- a/code/controllers/communications.dm +++ b/code/controllers/communications.dm @@ -120,7 +120,8 @@ var/list/radiochannels = list( "Response Team" = ERT_FREQ, "Special Ops" = DTH_FREQ, "Mercenary" = SYND_FREQ, - "Supply" = SUP_FREQ + "Supply" = SUP_FREQ, + "AI Private" = AI_FREQ ) // central command channels, i.e deathsquid & response teams diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index 47a1aa8560..e10e963b5f 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -79,7 +79,7 @@ name = "AI Integrated Encryption Key" desc = "Integrated encryption key" icon_state = "cap_cypherkey" - channels = list("Command" = 1, "Security" = 1, "Engineering" = 1, "Science" = 1, "Medical" = 1, "Supply" = 1) + channels = list("Command" = 1, "Security" = 1, "Engineering" = 1, "Science" = 1, "Medical" = 1, "Supply" = 1, "AI Private" = 1) /obj/item/device/encryptionkey/heads/rd name = "Research Director's Encryption Key" diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 71cc5ad851..ced578e9a0 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -12,6 +12,7 @@ var/list/department_radio_keys = list( ":w" = "whisper", "#w" = "whisper", ".w" = "whisper", ":t" = "Mercenary", "#t" = "Mercenary", ".t" = "Mercenary", ":u" = "Supply", "#u" = "Supply", ".u" = "Supply", + ":o" = "AI Private", "#o" = "AI Private", ".o" = "AI Private", ":R" = "right ear", "#R" = "right ear", ".R" = "right ear", ":L" = "left ear", "#L" = "left ear", ".L" = "left ear", @@ -25,6 +26,7 @@ var/list/department_radio_keys = list( ":W" = "whisper", "#W" = "whisper", ".W" = "whisper", ":T" = "Mercenary", "#T" = "Mercenary", ".T" = "Mercenary", ":U" = "Supply", "#U" = "Supply", ".U" = "Supply", + ":O" = "AI Private", "#O" = "AI Private", ".O" = "AI Private", //kinda localization -- rastaf0 //same keys as above, but on russian keyboard layout. This file uses cp1251 as encoding. diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 91a7c92f6e..a29eb954fe 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -151,6 +151,8 @@ var/list/ai_verbs_default = list( src << "While observing through a camera, you can use most (networked) devices which you can see, such as computers, APCs, intercoms, doors, etc." src << "To use something, simply click on it." src << "Use say :b to speak to your cyborgs through binary." + src << "For department channels, use the following say commands:" + src << ":o AI Private, :c - Command, :s - Security, :e - Engineering, :u - Supply, :m - Medical, :n - Science." if (!(ticker && ticker.mode && (mind in ticker.mode.malf_ai))) show_laws() src << "These laws may be changed by other players, or by you being the traitor." @@ -456,7 +458,7 @@ var/list/ai_verbs_default = list( checklaws() if (href_list["lawr"]) // Selects on which channel to state laws - var/setchannel = input(usr, "Specify channel.", "Channel selection") in list("State","Common","Science","Command","Medical","Engineering","Security","Supply","Binary","Holopad", "Cancel") + var/setchannel = input(usr, "Specify channel.", "Channel selection") in list("State","Common","Science","Command","Medical","Engineering","Security","Supply","Binary","Private","Holopad", "Cancel") if(setchannel == "Cancel") return lawchannel = setchannel diff --git a/code/modules/mob/living/silicon/ai/laws.dm b/code/modules/mob/living/silicon/ai/laws.dm index e167c42f06..65b9d7ec4e 100755 --- a/code/modules/mob/living/silicon/ai/laws.dm +++ b/code/modules/mob/living/silicon/ai/laws.dm @@ -63,6 +63,7 @@ if("Security") prefix = ":s " if("Supply") prefix = ":u " if("Binary") prefix = ":b " + if("Private") prefix = ":o " if("Holopad") prefix = ":h " else prefix = "" diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 1ed8bc43b1..3752464c54 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -116,6 +116,8 @@ O << "While observing through a camera, you can use most (networked) devices which you can see, such as computers, APCs, intercoms, doors, etc." O << "To use something, simply click on it." O << {"Use say ":b to speak to your cyborgs through binary."} + O << "For department channels, use the following say commands:" + O << ":o AI Private, :c - Command, :s - Security, :e - Engineering, :u - Supply, :m - Medical, :n - Science." if (!(ticker && ticker.mode && (O.mind in ticker.mode.malf_ai))) O.show_laws() O << "These laws may be changed by other players, or by you being the traitor."