Skip to content

Commit

Permalink
Phase 2 of my master plan:
Browse files Browse the repository at this point in the history
-Adds a Service headset channel, given to the botanists, barman, and chef. The HoP also gets the service channel on his headset.

Note: The Service Preset Server will have to be added to Telecomms on the map before the channel is usable. I'll put up the map when/if this gets merged.
  • Loading branch information
Cheridan committed May 13, 2013
1 parent 8ce6ed4 commit 0c47147
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 27 deletions.
3 changes: 2 additions & 1 deletion code/game/communications.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ var/list/radiochannels = list(
"Deathsquad" = 1441,
"Syndicate" = 1213,
"Supply" = 1347,
"Service" = 1349,
)
//depenging helpers
var/list/DEPT_FREQS = list(1351,1355,1357,1213,1441,1347)
var/list/DEPT_FREQS = list(1351,1355,1357,1213,1441,1347,1349)
var/const/SEC_FREQ = 1359 //security, colored cyan in chat window
var/const/COMM_FREQ = 1353 //command, colored gold in chat window
var/const/SYND_FREQ = 1213
Expand Down
3 changes: 3 additions & 0 deletions code/game/jobs/job/civilian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
if(!H) return 0
if(H.backbag == 2) H.equip_to_slot_or_del(new /obj/item/weapon/storage/backpack(H), slot_back)
if(H.backbag == 3) H.equip_to_slot_or_del(new /obj/item/weapon/storage/backpack/satchel_norm(H), slot_back)
H.equip_to_slot_or_del(new /obj/item/device/radio/headset/headset_service(H), slot_ears)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(H), slot_shoes)
H.equip_to_slot_or_del(new /obj/item/clothing/suit/armor/vest(H), slot_wear_suit)
H.equip_to_slot_or_del(new /obj/item/clothing/under/rank/bartender(H), slot_w_uniform)
Expand Down Expand Up @@ -54,6 +55,7 @@

equip(var/mob/living/carbon/human/H)
if(!H) return 0
H.equip_to_slot_or_del(new /obj/item/device/radio/headset/headset_service(H), slot_ears)
H.equip_to_slot_or_del(new /obj/item/clothing/under/rank/chef(H), slot_w_uniform)
H.equip_to_slot_or_del(new /obj/item/clothing/suit/chef(H), slot_wear_suit)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(H), slot_shoes)
Expand All @@ -78,6 +80,7 @@

equip(var/mob/living/carbon/human/H)
if(!H) return 0
H.equip_to_slot_or_del(new /obj/item/device/radio/headset/headset_service(H), slot_ears)
H.equip_to_slot_or_del(new /obj/item/clothing/under/rank/hydroponics(H), slot_w_uniform)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(H), slot_shoes)
H.equip_to_slot_or_del(new /obj/item/clothing/gloves/botanic_leather(H), slot_gloves)
Expand Down
16 changes: 8 additions & 8 deletions code/game/machinery/telecomms/broadcaster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
freq_text = "Engineering"
if(SEC_FREQ)
freq_text = "Security"
// if(1349)
// freq_text = "Mining"
if(1349)
freq_text = "Service"
if(1347)
freq_text = "Supply"
//There's probably a way to use the list var of channels in code\game\communications.dm to make the dept channels non-hardcoded, but I wasn't in an experimentive mood. --NEO
Expand Down Expand Up @@ -411,8 +411,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
blackbox.msg_deathsquad += blackbox_msg
if(1213)
blackbox.msg_syndicate += blackbox_msg
// if(1349)
// blackbox.msg_mining += blackbox_msg
if(1349)
blackbox.msg_service += blackbox_msg
if(1347)
blackbox.msg_cargo += blackbox_msg
else
Expand Down Expand Up @@ -634,8 +634,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
freq_text = "Engineering"
if(SEC_FREQ)
freq_text = "Security"
// if(1349)
// freq_text = "Mining"
if(1349)
freq_text = "Service"
if(1347)
freq_text = "Supply"
//There's probably a way to use the list var of channels in code\game\communications.dm to make the dept channels non-hardcoded, but I wasn't in an experimentive mood. --NEO
Expand Down Expand Up @@ -692,8 +692,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
blackbox.msg_deathsquad += blackbox_msg
if(1213)
blackbox.msg_syndicate += blackbox_msg
// if(1349)
// blackbox.msg_mining += blackbox_msg
if(1349)
blackbox.msg_service += blackbox_msg
if(1347)
blackbox.msg_cargo += blackbox_msg
else
Expand Down
18 changes: 9 additions & 9 deletions code/game/machinery/telecomms/presets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
id = "Hub"
network = "tcommsat"
autolinkers = list("hub", "relay", "s_relay", "m_relay", "r_relay", "science", "medical",
"supply", "common", "command", "engineering", "security",
"supply", "service", "common", "command", "engineering", "security",
"receiverA", "receiverB", "broadcasterA", "broadcasterB")

//Receivers
Expand All @@ -41,7 +41,7 @@
id = "Receiver A"
network = "tcommsat"
autolinkers = list("receiverA") // link to relay
freq_listening = list(1351, 1355, 1347) // science, medical, supply
freq_listening = list(1351, 1355, 1347, 1349) // science, medical, supply, service


//--PRESET RIGHT--//
Expand Down Expand Up @@ -70,8 +70,8 @@
/obj/machinery/telecomms/bus/preset_two
id = "Bus 2"
network = "tcommsat"
freq_listening = list(1347)
autolinkers = list("processor2", "supply")
freq_listening = list(1347,1349)
autolinkers = list("processor2", "supply", "service")

/obj/machinery/telecomms/bus/preset_three
id = "Bus 3"
Expand Down Expand Up @@ -132,12 +132,12 @@
id = "Supply Server"
freq_listening = list(1347)
autolinkers = list("supply")
/*
/obj/machinery/telecomms/server/presets/mining
id = "Mining Server"

/obj/machinery/telecomms/server/presets/service
id = "Service Server"
freq_listening = list(1349)
autolinkers = list("mining")
*/
autolinkers = list("service")

/obj/machinery/telecomms/server/presets/common
id = "Common Server"
freq_listening = list()
Expand Down
12 changes: 9 additions & 3 deletions code/game/objects/items/devices/radio/encryptionkey.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
name = "Captain's Encryption Key"
desc = "An encyption key for a radio headset. Contains cypherkeys."
icon_state = "cap_cypherkey"
channels = list("Command" = 1, "Security" = 1, "Engineering" = 0, "Science" = 0, "Medical" = 0, "Supply" = 0)
channels = list("Command" = 1, "Security" = 1, "Engineering" = 0, "Science" = 0, "Medical" = 0, "Supply" = 0, "Service" = 0)

/obj/item/device/encryptionkey/heads/rd
name = "Research Director's Encryption Key"
Expand Down Expand Up @@ -102,7 +102,7 @@
name = "Head of Personnel's Encryption Key"
desc = "An encyption key for a radio headset. Contains cypherkeys."
icon_state = "hop_cypherkey"
channels = list("Supply" = 1, "Command" = 1, "Security" = 0)
channels = list("Supply" = 1, "Command" = 1, "Service" = 1, "Security" = 0)
/*
/obj/item/device/encryptionkey/headset_mine
name = "Mining Radio Encryption Key"
Expand All @@ -120,4 +120,10 @@
name = "Supply Radio Encryption Key"
desc = "An encyption key for a radio headset. Contains cypherkeys."
icon_state = "cargo_cypherkey"
channels = list("Supply" = 1)
channels = list("Supply" = 1)

/obj/item/device/encryptionkey/headset_service
name = "Service Radio Encryption Key"
desc = "An encyption key for a radio headset. Contains cypherkeys."
icon_state = "srv_cypherkey"
channels = list("Service" = 1)
7 changes: 7 additions & 0 deletions code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@
item_state = "headset"
keyslot2 = new /obj/item/device/encryptionkey/headset_cargo

/obj/item/device/radio/headset/headset_service
name = "service radio headset"
desc = "Headset used by the foodservice and entertainment staff. To access the service channel, use :q."
icon_state = "srv_headset"
item_state = "headset"
keyslot2 = new /obj/item/device/encryptionkey/headset_service

/obj/item/device/radio/headset/attackby(obj/item/weapon/W as obj, mob/user as mob)
// ..()
user.set_machine(src)
Expand Down
6 changes: 3 additions & 3 deletions code/game/objects/items/devices/radio/radio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
freq_text = "Engineering"
if(SEC_FREQ)
freq_text = "Security"
// if(1349)
// freq_text = "Mining"
if(1349)
freq_text = "Service"
if(1347)
freq_text = "Supply"
//There's probably a way to use the list var of channels in code\game\communications.dm to make the dept channels non-hardcoded, but I wasn't in an experimentive mood. --NEO
Expand Down Expand Up @@ -521,7 +521,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
if(1213)
blackbox.msg_syndicate += blackbox_msg
if(1349)
blackbox.msg_mining += blackbox_msg
blackbox.msg_service += blackbox_msg
if(1347)
blackbox.msg_cargo += blackbox_msg
else
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var/list/department_radio_keys = list(
":a" = "alientalk", "#a" = "alientalk", ".a" = "alientalk",
":t" = "Syndicate", "#t" = "Syndicate", ".t" = "Syndicate",
":u" = "Supply", "#u" = "Supply", ".u" = "Supply",
":q" = "Service", "#q" = "Service", ".q" = "Service",
":g" = "changeling", "#g" = "changeling", ".g" = "changeling",

":R" = "right hand", "#R" = "right hand", ".R" = "right hand",
Expand All @@ -30,6 +31,7 @@ var/list/department_radio_keys = list(
":A" = "alientalk", "#A" = "alientalk", ".A" = "alientalk",
":T" = "Syndicate", "#T" = "Syndicate", ".T" = "Syndicate",
":U" = "Supply", "#U" = "Supply", ".U" = "Supply",
":Q" = "Service", "#Q" = "Service", ".Q" = "Service",
":G" = "changeling", "#G" = "changeling", ".G" = "changeling",

//kinda localization -- rastaf0
Expand Down
6 changes: 3 additions & 3 deletions code/modules/research/message_server.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ var/obj/machinery/blackbox_recorder/blackbox
var/list/msg_security = list()
var/list/msg_deathsquad = list()
var/list/msg_syndicate = list()
var/list/msg_mining = list()
var/list/msg_service = list()
var/list/msg_cargo = list()

var/list/datum/feedback_variable/feedback = new()
Expand All @@ -216,7 +216,7 @@ var/obj/machinery/blackbox_recorder/blackbox
BR.msg_security = msg_security
BR.msg_deathsquad = msg_deathsquad
BR.msg_syndicate = msg_syndicate
BR.msg_mining = msg_mining
BR.msg_service = msg_service
BR.msg_cargo = msg_cargo
BR.feedback = feedback
BR.messages = messages
Expand Down Expand Up @@ -257,7 +257,7 @@ var/obj/machinery/blackbox_recorder/blackbox
feedback_add_details("radio_usage","SEC-[msg_security.len]")
feedback_add_details("radio_usage","DTH-[msg_deathsquad.len]")
feedback_add_details("radio_usage","SYN-[msg_syndicate.len]")
feedback_add_details("radio_usage","MIN-[msg_mining.len]")
feedback_add_details("radio_usage","SRV-[msg_service.len]")
feedback_add_details("radio_usage","CAR-[msg_cargo.len]")
feedback_add_details("radio_usage","OTH-[messages.len]")
feedback_add_details("radio_usage","PDA-[pda_msg_amt]")
Expand Down
1 change: 1 addition & 0 deletions code/modules/scripting/Implementations/Telecomms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
interpreter.SetVar("$engineering",1357)
interpreter.SetVar("$security", 1359)
interpreter.SetVar("$supply", 1347)
interpreter.SetVar("$service", 1349)

// Signal data

Expand Down

0 comments on commit 0c47147

Please sign in to comment.