Antag Radio changes

This commit is contained in:
Anewbe
2017-03-25 14:19:57 -05:00
parent eb73ee4b44
commit 88b0c6086e
10 changed files with 52 additions and 7 deletions

View File

@@ -108,6 +108,7 @@ var/const/ERT_FREQ = 1345
var/const/AI_FREQ = 1343 var/const/AI_FREQ = 1343
var/const/DTH_FREQ = 1341 var/const/DTH_FREQ = 1341
var/const/SYND_FREQ = 1213 var/const/SYND_FREQ = 1213
var/const/RAID_FREQ = 1277
var/const/ENT_FREQ = 1461 //entertainment frequency. This is not a diona exclusive frequency. var/const/ENT_FREQ = 1461 //entertainment frequency. This is not a diona exclusive frequency.
// department channels // department channels
@@ -133,6 +134,7 @@ var/list/radiochannels = list(
"Response Team" = ERT_FREQ, "Response Team" = ERT_FREQ,
"Special Ops" = DTH_FREQ, "Special Ops" = DTH_FREQ,
"Mercenary" = SYND_FREQ, "Mercenary" = SYND_FREQ,
"Raider" = RAID_FREQ,
"Supply" = SUP_FREQ, "Supply" = SUP_FREQ,
"Service" = SRV_FREQ, "Service" = SRV_FREQ,
"AI Private" = AI_FREQ, "AI Private" = AI_FREQ,
@@ -145,7 +147,7 @@ var/list/radiochannels = list(
var/list/CENT_FREQS = list(ERT_FREQ, DTH_FREQ) var/list/CENT_FREQS = list(ERT_FREQ, DTH_FREQ)
// Antag channels, i.e. Syndicate // Antag channels, i.e. Syndicate
var/list/ANTAG_FREQS = list(SYND_FREQ) var/list/ANTAG_FREQS = list(SYND_FREQ, RAID_FREQ)
//Department channels, arranged lexically //Department channels, arranged lexically
var/list/DEPT_FREQS = list(AI_FREQ, COMM_FREQ, ENG_FREQ, ENT_FREQ, MED_FREQ, SEC_FREQ, SCI_FREQ, SRV_FREQ, SUP_FREQ) var/list/DEPT_FREQS = list(AI_FREQ, COMM_FREQ, ENG_FREQ, ENT_FREQ, MED_FREQ, SEC_FREQ, SCI_FREQ, SRV_FREQ, SUP_FREQ)

View File

@@ -43,12 +43,15 @@
/datum/antagonist/proc/create_radio(var/freq, var/mob/living/carbon/human/player) /datum/antagonist/proc/create_radio(var/freq, var/mob/living/carbon/human/player)
var/obj/item/device/radio/R var/obj/item/device/radio/R
if(freq == SYND_FREQ) switch(freq)
R = new/obj/item/device/radio/headset/syndicate(player) if(SYND_FREQ)
else R = new/obj/item/device/radio/headset/syndicate(player)
R = new/obj/item/device/radio/headset(player) if(RAID_FREQ)
R = new/obj/item/device/radio/headset/raider(player)
else
R = new/obj/item/device/radio/headset(player)
R.set_frequency(freq)
R.set_frequency(freq)
player.equip_to_slot_or_del(R, slot_l_ear) player.equip_to_slot_or_del(R, slot_l_ear)
return R return R

View File

@@ -232,7 +232,7 @@ var/datum/antagonist/raider/raiders
W.handle_item_insertion(id) W.handle_item_insertion(id)
player.equip_to_slot_or_del(W, slot_wear_id) player.equip_to_slot_or_del(W, slot_wear_id)
spawn_money(rand(50,150)*10,W) spawn_money(rand(50,150)*10,W)
create_radio(SYND_FREQ, player) create_radio(RAID_FREQ, player)
return 1 return 1

View File

@@ -374,6 +374,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
blackbox.msg_deathsquad += blackbox_msg blackbox.msg_deathsquad += blackbox_msg
if(SYND_FREQ) if(SYND_FREQ)
blackbox.msg_syndicate += blackbox_msg blackbox.msg_syndicate += blackbox_msg
if(RAID_FREQ)
blackbox.msg_raider += blackbox_msg
if(SUP_FREQ) if(SUP_FREQ)
blackbox.msg_cargo += blackbox_msg blackbox.msg_cargo += blackbox_msg
if(SRV_FREQ) if(SRV_FREQ)
@@ -554,6 +556,8 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
blackbox.msg_deathsquad += blackbox_msg blackbox.msg_deathsquad += blackbox_msg
if(SYND_FREQ) if(SYND_FREQ)
blackbox.msg_syndicate += blackbox_msg blackbox.msg_syndicate += blackbox_msg
if(RAID_FREQ)
blackbox.msg_raider += blackbox_msg
if(SUP_FREQ) if(SUP_FREQ)
blackbox.msg_cargo += blackbox_msg blackbox.msg_cargo += blackbox_msg
if(SRV_FREQ) if(SRV_FREQ)

View File

@@ -19,6 +19,12 @@
origin_tech = list(TECH_ILLEGAL = 3) origin_tech = list(TECH_ILLEGAL = 3)
syndie = 1//Signifies that it de-crypts Syndicate transmissions syndie = 1//Signifies that it de-crypts Syndicate transmissions
/obj/item/device/encryptionkey/raider
icon_state = "cypherkey"
channels = list("Raider" = 1)
origin_tech = list(TECH_ILLEGAL = 2)
syndie = 1
/obj/item/device/encryptionkey/binary /obj/item/device/encryptionkey/binary
icon_state = "cypherkey" icon_state = "cypherkey"
translate_binary = 1 translate_binary = 1

View File

@@ -75,6 +75,15 @@
syndie = 1 syndie = 1
ks1type = /obj/item/device/encryptionkey/syndicate ks1type = /obj/item/device/encryptionkey/syndicate
/obj/item/device/radio/headset/raider
origin_tech = list(TECH_ILLEGAL = 2)
syndie = 1
ks1type = /obj/item/device/encryptionkey/raider
/obj/item/device/radio/headset/raider/initialize()
..()
set_frequency(RAID_FREQ)
/obj/item/device/radio/headset/binary /obj/item/device/radio/headset/binary
origin_tech = list(TECH_ILLEGAL = 3) origin_tech = list(TECH_ILLEGAL = 3)
ks1type = /obj/item/device/encryptionkey/binary ks1type = /obj/item/device/encryptionkey/binary
@@ -289,6 +298,7 @@
desc = "The headset of the boss's boss." desc = "The headset of the boss's boss."
icon_state = "com_headset" icon_state = "com_headset"
item_state = "headset" item_state = "headset"
centComm = 1
// freerange = 1 // freerange = 1
ks2type = /obj/item/device/encryptionkey/ert ks2type = /obj/item/device/encryptionkey/ert

View File

@@ -27,6 +27,8 @@
/obj/item/device/radio/intercom/specops /obj/item/device/radio/intercom/specops
name = "\improper Spec Ops intercom" name = "\improper Spec Ops intercom"
frequency = ERT_FREQ frequency = ERT_FREQ
subspace_transmission = 1
centComm = 1
/obj/item/device/radio/intercom/department /obj/item/device/radio/intercom/department
canhear_range = 5 canhear_range = 5
@@ -81,6 +83,17 @@
..() ..()
internal_channels[num2text(SYND_FREQ)] = list(access_syndicate) internal_channels[num2text(SYND_FREQ)] = list(access_syndicate)
/obj/item/device/radio/intercom/raider
name = "illicit intercom"
desc = "Pirate radio, but not in the usual sense of the word."
frequency = RAID_FREQ
subspace_transmission = 1
syndie = 1
/obj/item/device/radio/intercom/raider/New()
..()
internal_channels[num2text(RAID_FREQ)] = list(access_syndicate)
/obj/item/device/radio/intercom/Destroy() /obj/item/device/radio/intercom/Destroy()
processing_objects -= src processing_objects -= src
..() ..()

View File

@@ -40,6 +40,7 @@ var/global/list/default_medbay_channels = list(
var/list/channels = list() //see communications.dm for full list. First channel is a "default" for :h var/list/channels = list() //see communications.dm for full list. First channel is a "default" for :h
var/subspace_transmission = 0 var/subspace_transmission = 0
var/syndie = 0//Holder to see if it's a syndicate encrypted radio var/syndie = 0//Holder to see if it's a syndicate encrypted radio
var/centComm = 0//Holder to see if it's a CentComm encrypted radio
flags = CONDUCT flags = CONDUCT
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
throw_speed = 2 throw_speed = 2
@@ -508,6 +509,9 @@ var/global/list/default_medbay_channels = list(
if(freq in ANTAG_FREQS) if(freq in ANTAG_FREQS)
if(!(src.syndie))//Checks to see if it's allowed on that frequency, based on the encryption keys if(!(src.syndie))//Checks to see if it's allowed on that frequency, based on the encryption keys
return -1 return -1
if(freq in CENT_FREQS)
if(!(src.centComm))//Checks to see if it's allowed on that frequency, based on the encryption keys
return -1
if (!on) if (!on)
return -1 return -1
if (!freq) //recieved on main frequency if (!freq) //recieved on main frequency

View File

@@ -11,6 +11,7 @@ var/list/department_radio_keys = list(
":s" = "Security", ".s" = "Security", ":s" = "Security", ".s" = "Security",
":w" = "whisper", ".w" = "whisper", ":w" = "whisper", ".w" = "whisper",
":t" = "Mercenary", ".t" = "Mercenary", ":t" = "Mercenary", ".t" = "Mercenary",
":x" = "Raider", ".x" = "Raider",
":u" = "Supply", ".u" = "Supply", ":u" = "Supply", ".u" = "Supply",
":v" = "Service", ".v" = "Service", ":v" = "Service", ".v" = "Service",
":p" = "AI Private", ".p" = "AI Private", ":p" = "AI Private", ".p" = "AI Private",
@@ -26,6 +27,7 @@ var/list/department_radio_keys = list(
":S" = "Security", ".S" = "Security", ":S" = "Security", ".S" = "Security",
":W" = "whisper", ".W" = "whisper", ":W" = "whisper", ".W" = "whisper",
":T" = "Mercenary", ".T" = "Mercenary", ":T" = "Mercenary", ".T" = "Mercenary",
":X" = "Raider", ".X" = "Raider",
":U" = "Supply", ".U" = "Supply", ":U" = "Supply", ".U" = "Supply",
":V" = "Service", ".V" = "Service", ":V" = "Service", ".V" = "Service",
":P" = "AI Private", ".P" = "AI Private", ":P" = "AI Private", ".P" = "AI Private",

View File

@@ -242,6 +242,7 @@ var/obj/machinery/blackbox_recorder/blackbox
var/list/msg_security = list() var/list/msg_security = list()
var/list/msg_deathsquad = list() var/list/msg_deathsquad = list()
var/list/msg_syndicate = list() var/list/msg_syndicate = list()
var/list/msg_raider = list()
var/list/msg_cargo = list() var/list/msg_cargo = list()
var/list/msg_service = list() var/list/msg_service = list()