mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
Merge remote-tracking branch 'upstream/master' into kk-rings
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
subspace_transmission = 1
|
||||
canhear_range = 0 // can't hear headsets from very far away
|
||||
slot_flags = SLOT_EARS
|
||||
sprite_sheets = list(SPECIES_TESHARI = 'icons/inventory/ears/mob_teshari.dmi')
|
||||
sprite_sheets = list(SPECIES_TESHARI = 'icons/inventory/ears/mob_teshari.dmi',
|
||||
SPECIES_WEREBEAST = 'icons/inventory/ears/mob_vr_werebeast.dmi')
|
||||
|
||||
var/translate_binary = 0
|
||||
var/translate_hive = 0
|
||||
@@ -83,254 +84,6 @@
|
||||
/obj/item/radio/headset/tgui_state(mob/user)
|
||||
return GLOB.tgui_inventory_state
|
||||
|
||||
/obj/item/radio/headset/syndicate
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/syndicate
|
||||
|
||||
/obj/item/radio/headset/syndicate/alt
|
||||
icon_state = "syndie_headset"
|
||||
item_state = "headset"
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/syndicate
|
||||
|
||||
/obj/item/radio/headset/raider
|
||||
origin_tech = list(TECH_ILLEGAL = 2)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/raider
|
||||
|
||||
/obj/item/radio/headset/raider/Initialize()
|
||||
. = ..()
|
||||
set_frequency(RAID_FREQ)
|
||||
|
||||
/obj/item/radio/headset/binary
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
ks1type = /obj/item/encryptionkey/binary
|
||||
|
||||
/obj/item/radio/headset/headset_sec
|
||||
name = "security radio headset"
|
||||
desc = "This is used by your elite security force."
|
||||
icon_state = "sec_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_sec
|
||||
|
||||
/obj/item/radio/headset/headset_sec/alt
|
||||
name = "security bowman headset"
|
||||
desc = "This is used by your elite security force."
|
||||
icon_state = "sec_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_sec
|
||||
|
||||
/obj/item/radio/headset/headset_eng
|
||||
name = "engineering radio headset"
|
||||
desc = "When the engineers wish to chat like girls."
|
||||
icon_state = "eng_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_eng
|
||||
|
||||
/obj/item/radio/headset/headset_eng/alt
|
||||
name = "engineering bowman headset"
|
||||
desc = "When the engineers wish to chat like girls."
|
||||
icon_state = "eng_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_eng
|
||||
|
||||
/obj/item/radio/headset/headset_rob
|
||||
name = "robotics radio headset"
|
||||
desc = "Made specifically for the roboticists who cannot decide between departments."
|
||||
icon_state = "rob_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_rob
|
||||
|
||||
/obj/item/radio/headset/headset_med
|
||||
name = "medical radio headset"
|
||||
desc = "A headset for the trained staff of the medbay."
|
||||
icon_state = "med_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_med
|
||||
|
||||
/obj/item/radio/headset/headset_med/alt
|
||||
name = "medical bowman headset"
|
||||
desc = "A headset for the trained staff of the medbay."
|
||||
icon_state = "med_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_med
|
||||
|
||||
/obj/item/radio/headset/headset_sci
|
||||
name = "science radio headset"
|
||||
desc = "A sciency headset. Like usual."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_sci
|
||||
|
||||
/obj/item/radio/headset/headset_medsci
|
||||
name = "medical research radio headset"
|
||||
desc = "A headset that is a result of the mating between medical and science."
|
||||
icon_state = "med_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_medsci
|
||||
|
||||
/obj/item/radio/headset/headset_com
|
||||
name = "command radio headset"
|
||||
desc = "A headset with a commanding channel."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_com
|
||||
|
||||
/obj/item/radio/headset/headset_com/alt
|
||||
name = "command bowman headset"
|
||||
desc = "A headset with a commanding channel."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_com
|
||||
|
||||
|
||||
/obj/item/radio/headset/heads/captain
|
||||
name = "site manager's headset"
|
||||
desc = "The headset of the boss."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/heads/captain/alt
|
||||
name = "site manager's bowman headset"
|
||||
desc = "The headset of the boss."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/heads/captain/sfr
|
||||
name = "SFR headset"
|
||||
desc = "A headset belonging to a Sif Free Radio DJ. SFR, best tunes in the wilderness."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/heads/ai_integrated //No need to care about icons, it should be hidden inside the AI anyway.
|
||||
name = "\improper AI subspace transceiver"
|
||||
desc = "Integrated AI radio transceiver."
|
||||
icon = 'icons/obj/robot_component.dmi'
|
||||
icon_state = "radio"
|
||||
item_state = "headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/ai_integrated
|
||||
var/myAi = null // Atlantis: Reference back to the AI which has this radio.
|
||||
var/disabledAi = 0 // Atlantis: Used to manually disable AI's integrated radio via intellicard menu.
|
||||
|
||||
/obj/item/radio/headset/heads/ai_integrated/receive_range(freq, level)
|
||||
if (disabledAi)
|
||||
return -1 //Transciever Disabled.
|
||||
return ..(freq, level, 1)
|
||||
|
||||
/obj/item/radio/headset/heads/rd
|
||||
name = "research director's headset"
|
||||
desc = "Headset of the eccentric-in-chief."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/rd
|
||||
|
||||
/obj/item/radio/headset/heads/rd/alt
|
||||
name = "research director's bowman headset"
|
||||
desc = "Headset of the eccentric-in-chief."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/rd
|
||||
|
||||
/obj/item/radio/headset/heads/hos
|
||||
name = "head of security's headset"
|
||||
desc = "The headset of the hardass who protects your worthless lives."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/heads/hos/alt
|
||||
name = "head of security's bowman headset"
|
||||
desc = "The headset of the hardass who protects your worthless lives."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/heads/ce
|
||||
name = "chief engineer's headset"
|
||||
desc = "The headset of the clown who is in charge of the circus."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/ce
|
||||
|
||||
/obj/item/radio/headset/heads/ce/alt
|
||||
name = "chief engineer's bowman headset"
|
||||
desc = "The headset of the clown who is in charge of the circus."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/ce
|
||||
|
||||
/obj/item/radio/headset/heads/cmo
|
||||
name = "chief medical officer's headset"
|
||||
desc = "The headset of the highly trained medical chief."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/cmo
|
||||
|
||||
/obj/item/radio/headset/heads/cmo/alt
|
||||
name = "chief medical officer's bowman headset"
|
||||
desc = "The headset of the highly trained medical chief."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/cmo
|
||||
|
||||
/obj/item/radio/headset/heads/hop
|
||||
name = "head of personnel's headset"
|
||||
desc = "The headset of the poor fool who will one day be " + JOB_SITE_MANAGER + "."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hop
|
||||
|
||||
/obj/item/radio/headset/heads/hop/alt
|
||||
name = "head of personnel's bowman headset"
|
||||
desc = "The headset of the poor fool who will one day be " + JOB_SITE_MANAGER + "."
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/hop
|
||||
|
||||
/obj/item/radio/headset/headset_mine
|
||||
name = "mining radio headset"
|
||||
desc = "Headset used by miners. Has inbuilt short-band radio for when comms are down."
|
||||
icon_state = "mine_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/headset_cargo
|
||||
name = "supply radio headset"
|
||||
desc = "A headset used by the QM and their cronies."
|
||||
icon_state = "cargo_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/headset_cargo/alt
|
||||
name = "supply bowman headset"
|
||||
desc = "A bowman headset used by the QM and their cronies."
|
||||
icon_state = "cargo_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/headset_service
|
||||
name = "service radio headset"
|
||||
desc = "Headset used by the service staff, tasked with keeping the station full, happy and clean."
|
||||
icon_state = "srv_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_service
|
||||
|
||||
/obj/item/radio/headset/ert
|
||||
name = "emergency response team radio headset"
|
||||
desc = "The headset of the boss's boss."
|
||||
icon_state = "com_headset"
|
||||
centComm = 1
|
||||
// freerange = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/ert/alt
|
||||
name = "emergency response team bowman headset"
|
||||
desc = "The headset of the boss's boss."
|
||||
icon_state = "com_headset_alt"
|
||||
// freerange = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/omni //Only for the admin intercoms
|
||||
ks2type = /obj/item/encryptionkey/omni
|
||||
|
||||
/obj/item/radio/headset/ia
|
||||
name = "internal affair's headset"
|
||||
desc = "The headset of your worst enemy."
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/mmi_radio
|
||||
name = "brain-integrated radio"
|
||||
desc = "MMIs and synthetic brains are often equipped with these."
|
||||
icon = 'icons/obj/robot_component.dmi'
|
||||
icon_state = "radio"
|
||||
item_state = "headset"
|
||||
var/mmiowner = null
|
||||
var/radio_enabled = 1
|
||||
|
||||
/obj/item/radio/headset/mmi_radio/receive_range(freq, level)
|
||||
if (!radio_enabled || istype(src.loc.loc, /mob/living/silicon) || istype(src.loc.loc, /obj/item/organ/internal))
|
||||
return -1 //Transciever Disabled.
|
||||
return ..(freq, level, 1)
|
||||
|
||||
/obj/item/radio/headset/attackby(obj/item/W as obj, mob/user as mob)
|
||||
// ..()
|
||||
user.set_machine(src)
|
||||
@@ -361,15 +114,15 @@
|
||||
keyslot2 = null
|
||||
|
||||
recalculateChannels()
|
||||
to_chat(user, "You pop out the encryption keys in the headset!")
|
||||
to_chat(user, span_notice("You pop out the encryption keys in the headset!"))
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
|
||||
else
|
||||
to_chat(user, "This headset doesn't have any encryption keys! How useless...")
|
||||
to_chat(user, span_notice("This headset doesn't have any encryption keys! How useless..."))
|
||||
|
||||
if(istype(W, /obj/item/encryptionkey/))
|
||||
if(keyslot1 && keyslot2)
|
||||
to_chat(user, "The headset can't hold another key!")
|
||||
to_chat(user, span_notice("The headset can't hold another key!"))
|
||||
return
|
||||
|
||||
if(!keyslot1)
|
||||
@@ -387,7 +140,6 @@
|
||||
|
||||
return
|
||||
|
||||
|
||||
/obj/item/radio/headset/recalculateChannels(var/setDescription = 0)
|
||||
src.channels = list()
|
||||
src.translate_binary = 0
|
||||
@@ -451,3 +203,432 @@
|
||||
radio_text += ", "
|
||||
|
||||
radio_desc = radio_text
|
||||
|
||||
/obj/item/radio/headset/mob_headset/receive_range(freq, level)
|
||||
if(ismob(src.loc))
|
||||
return ..(freq, level, 1)
|
||||
return -1
|
||||
|
||||
/obj/item/radio/headset/mob_headset/afterattack(var/atom/movable/target, mob/living/user, proximity)
|
||||
if(!proximity)
|
||||
return
|
||||
if(istype(target,/mob/living/simple_mob))
|
||||
var/mob/living/simple_mob/M = target
|
||||
if(!M.mob_radio)
|
||||
user.drop_item()
|
||||
forceMove(M)
|
||||
M.mob_radio = src
|
||||
return
|
||||
if(M.mob_radio)
|
||||
M.mob_radio.forceMove(M.loc)
|
||||
M.mob_radio = null
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/radio/headset/alt
|
||||
name = "bowman radio headset"
|
||||
desc = "A larger, sturdier radio headset. A bit bulky, but guaranteed to stay on no matter what."
|
||||
icon_state = "headset_alt"
|
||||
|
||||
/obj/item/radio/headset/earbud
|
||||
name = "radio earbud"
|
||||
desc = "A discreet radio earbud and low-profile mic. Simple and unobtrusive."
|
||||
icon_state = "headset_earbud"
|
||||
|
||||
/obj/item/radio/headset/headset_sec
|
||||
name = "security radio headset"
|
||||
icon_state = "sec_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_sec
|
||||
|
||||
/obj/item/radio/headset/alt/headset_sec
|
||||
name = "security bowman headset"
|
||||
icon_state = "sec_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_sec
|
||||
|
||||
/obj/item/radio/headset/earbud/headset_sec
|
||||
name = "security earbud"
|
||||
icon_state = "sec_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_sec
|
||||
|
||||
/obj/item/radio/headset/headset_eng
|
||||
name = "engineering radio headset"
|
||||
icon_state = "eng_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_eng
|
||||
|
||||
/obj/item/radio/headset/alt/headset_eng
|
||||
name = "engineering bowman headset"
|
||||
icon_state = "eng_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_eng
|
||||
|
||||
/obj/item/radio/headset/earbud/headset_eng
|
||||
name = "engineering earbud"
|
||||
icon_state = "eng_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_eng
|
||||
|
||||
/obj/item/radio/headset/headset_med
|
||||
name = "medical radio headset"
|
||||
icon_state = "med_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_med
|
||||
|
||||
/obj/item/radio/headset/alt/headset_med
|
||||
name = "medical bowman headset"
|
||||
icon_state = "med_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_med
|
||||
|
||||
/obj/item/radio/headset/earbud/headset_med
|
||||
name = "medical earbud"
|
||||
icon_state = "med_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_med
|
||||
|
||||
/obj/item/radio/headset/headset_sci
|
||||
name = "science radio headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_sci
|
||||
|
||||
/obj/item/radio/headset/alt/headset_sci
|
||||
name = "science bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_sci
|
||||
|
||||
/obj/item/radio/headset/earbud/headset_sci
|
||||
name = "science earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_sci
|
||||
|
||||
/obj/item/radio/headset/headset_com
|
||||
name = "command radio headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_com
|
||||
|
||||
/obj/item/radio/headset/alt/headset_com
|
||||
name = "command bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_com
|
||||
|
||||
/obj/item/radio/headset/earbud/headset_com
|
||||
name = "command earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_com
|
||||
|
||||
/obj/item/radio/headset/heads/captain
|
||||
name = "site manager's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/heads/captain/sfr
|
||||
name = "SFR headset"
|
||||
desc = "A headset belonging to a Sif Free Radio DJ. SFR, best tunes in the wilderness."
|
||||
icon_state = "com_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/alt/heads/captain
|
||||
name = "site manager's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/captain
|
||||
name = "site manager's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/captain
|
||||
|
||||
/obj/item/radio/headset/heads/rd
|
||||
name = "research director's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/rd
|
||||
|
||||
/obj/item/radio/headset/alt/heads/rd
|
||||
name = "research director's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/rd
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/rd
|
||||
name = "research director's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/rd
|
||||
|
||||
/obj/item/radio/headset/heads/hos
|
||||
name = "head of security's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/alt/heads/hos
|
||||
name = "head of security's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/hos
|
||||
name = "head of security's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/heads/ce
|
||||
name = "chief engineer's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/ce
|
||||
|
||||
/obj/item/radio/headset/alt/heads/ce
|
||||
name = "chief engineer's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/ce
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/ce
|
||||
name = "chief engineer's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/ce
|
||||
|
||||
/obj/item/radio/headset/heads/cmo
|
||||
name = "chief medical officer's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/cmo
|
||||
|
||||
/obj/item/radio/headset/alt/heads/cmo
|
||||
name = "chief medical officer's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/cmo
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/cmo
|
||||
name = "chief medical officer's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/cmo
|
||||
|
||||
/obj/item/radio/headset/heads/hop
|
||||
name = "head of personnel's headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hop
|
||||
|
||||
/obj/item/radio/headset/alt/heads/hop
|
||||
name = "head of personnel's bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/hop
|
||||
|
||||
/obj/item/radio/headset/earbud/heads/hop
|
||||
name = "head of personnel's earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/hop
|
||||
|
||||
/obj/item/radio/headset/miner
|
||||
name = "mining radio headset"
|
||||
desc = "Headset used by miners. Has inbuilt short-band radio for when comms are down."
|
||||
icon_state = "mine_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/cargo
|
||||
name = "supply radio headset"
|
||||
icon_state = "cargo_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/alt/cargo
|
||||
name = "supply bowman headset"
|
||||
icon_state = "cargo_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/earbud/cargo
|
||||
name = "supply earbud"
|
||||
icon_state = "cargo_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_cargo
|
||||
|
||||
/obj/item/radio/headset/qm
|
||||
name = "qm radio headset"
|
||||
icon_state = "cargo_headset"
|
||||
ks2type = /obj/item/encryptionkey/qm
|
||||
|
||||
/obj/item/radio/headset/alt/qm
|
||||
name = "qm bowman headset"
|
||||
icon_state = "cargo_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/qm
|
||||
|
||||
/obj/item/radio/headset/earbud/qm
|
||||
name = "qm earbud"
|
||||
icon_state = "cargo_earbud"
|
||||
ks2type = /obj/item/encryptionkey/qm
|
||||
|
||||
/obj/item/radio/headset/service
|
||||
name = "service radio headset"
|
||||
icon_state = "srv_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_service
|
||||
|
||||
/obj/item/radio/headset/alt/service
|
||||
name = "service bowman headset"
|
||||
icon_state = "srv_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/headset_service
|
||||
|
||||
/obj/item/radio/headset/earbud/service
|
||||
name = "service earbud"
|
||||
icon_state = "srv_earbud"
|
||||
ks2type = /obj/item/encryptionkey/headset_service
|
||||
|
||||
/obj/item/radio/headset/ert
|
||||
name = "emergency response team radio headset"
|
||||
icon_state = "com_headset"
|
||||
centComm = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/alt/ert
|
||||
name = "emergency response team bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/ia
|
||||
name = "internal affairs headset"
|
||||
icon_state = "com_headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/alt/ia
|
||||
name = "internal affairs bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/earbud/ia
|
||||
name = "internal affairs earbud"
|
||||
icon_state = "com_earbud"
|
||||
ks2type = /obj/item/encryptionkey/heads/hos
|
||||
|
||||
/obj/item/radio/headset/centcom
|
||||
name = "centcom radio headset"
|
||||
icon_state = "cent_headset"
|
||||
item_state = "headset"
|
||||
centComm = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/alt/centcom
|
||||
name = "centcom bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/nanotrasen
|
||||
name = "\improper NT radio headset"
|
||||
icon_state = "nt_headset"
|
||||
centComm = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/alt/nanotrasen
|
||||
name = "\improper NT bowman headset"
|
||||
icon_state = "nt_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/pathfinder
|
||||
name = "pathfinder's headset"
|
||||
icon_state = "exp_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/pathfinder
|
||||
|
||||
/obj/item/radio/headset/alt/pathfinder
|
||||
name = "pathfinder's bowman headset"
|
||||
icon_state = "exp_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/pilot
|
||||
name = "pilot's headset"
|
||||
icon_state = "pilot_headset"
|
||||
adhoc_fallback = TRUE
|
||||
|
||||
/obj/item/radio/headset/alt/pilot
|
||||
name = "pilot's bowman headset"
|
||||
icon_state = "pilot_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/explorer
|
||||
name = "away team member's headset"
|
||||
icon_state = "exp_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/explorer
|
||||
|
||||
/obj/item/radio/headset/alt/explorer
|
||||
name = "away team's bowman headset"
|
||||
icon_state = "exp_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/sar
|
||||
name = "search and rescue headset"
|
||||
icon_state = "sar_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/sar
|
||||
|
||||
/obj/item/radio/headset/alt/sar
|
||||
name = "search and rescue bowman headset"
|
||||
icon_state = "sar_headset_alt"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/sar
|
||||
|
||||
/obj/item/radio/headset/talon
|
||||
name = "talon headset"
|
||||
adhoc_fallback = TRUE
|
||||
icon_state = "pilot_headset"
|
||||
ks2type = /obj/item/encryptionkey/talon
|
||||
|
||||
/obj/item/radio/headset/alt/talon
|
||||
name = "talon bowman headset"
|
||||
adhoc_fallback = TRUE
|
||||
icon_state = "pilot_headset"
|
||||
ks2type = /obj/item/encryptionkey/talon
|
||||
|
||||
/obj/item/radio/headset/earbud/talon
|
||||
name = "talon earbud"
|
||||
adhoc_fallback = TRUE
|
||||
icon_state = "pilot_headset"
|
||||
ks2type = /obj/item/encryptionkey/talon
|
||||
|
||||
/obj/item/radio/headset/headset_rob
|
||||
name = "robotics radio headset"
|
||||
icon_state = "rob_headset"
|
||||
ks2type = /obj/item/encryptionkey/headset_rob
|
||||
|
||||
// Special Antag/Admin/Event/Other headsets
|
||||
|
||||
/obj/item/radio/headset/syndicate
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/syndicate
|
||||
|
||||
/obj/item/radio/headset/alt/syndicate
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/syndicate
|
||||
|
||||
/obj/item/radio/headset/earbud/syndicate
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/syndicate
|
||||
|
||||
/obj/item/radio/headset/raider
|
||||
origin_tech = list(TECH_ILLEGAL = 2)
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/raider
|
||||
|
||||
/obj/item/radio/headset/raider/Initialize()
|
||||
. = ..()
|
||||
set_frequency(RAID_FREQ)
|
||||
|
||||
/obj/item/radio/headset/binary
|
||||
origin_tech = list(TECH_ILLEGAL = 3)
|
||||
ks1type = /obj/item/encryptionkey/binary
|
||||
|
||||
/obj/item/radio/headset/omni //Only for the admin intercoms
|
||||
ks2type = /obj/item/encryptionkey/omni
|
||||
|
||||
/obj/item/radio/headset/mmi_radio
|
||||
name = "brain-integrated radio"
|
||||
icon = 'icons/obj/robot_component.dmi'
|
||||
icon_state = "radio"
|
||||
item_state = "headset"
|
||||
var/mmiowner = null
|
||||
var/radio_enabled = 1
|
||||
|
||||
/obj/item/radio/headset/mmi_radio/receive_range(freq, level)
|
||||
if (!radio_enabled || istype(src.loc.loc, /mob/living/silicon) || istype(src.loc.loc, /obj/item/organ/internal))
|
||||
return -1 //Transciever Disabled.
|
||||
return ..(freq, level, 1)
|
||||
|
||||
/obj/item/radio/headset/mob_headset //Adminbus headset for simplemob shenanigans.
|
||||
name = "nonhuman radio receiver"
|
||||
desc = "An updated, self-adhesive modular intercom that requires no hands to operate or ears to hold, just stick it on. Takes encryption keys"
|
||||
|
||||
/obj/item/radio/headset/heads/ai_integrated //No need to care about icons, it should be hidden inside the AI anyway.
|
||||
name = "\improper AI subspace transceiver"
|
||||
desc = "Integrated AI radio transceiver."
|
||||
icon = 'icons/obj/robot_component.dmi'
|
||||
icon_state = "radio"
|
||||
item_state = "headset"
|
||||
ks2type = /obj/item/encryptionkey/heads/ai_integrated
|
||||
var/myAi = null // Atlantis: Reference back to the AI which has this radio.
|
||||
var/disabledAi = 0 // Atlantis: Used to manually disable AI's integrated radio via intellicard menu.
|
||||
|
||||
/obj/item/radio/headset/heads/ai_integrated/receive_range(freq, level)
|
||||
if (disabledAi)
|
||||
return -1 //Transciever Disabled.
|
||||
return ..(freq, level, 1)
|
||||
@@ -1,131 +0,0 @@
|
||||
/obj/item/radio/headset/centcom
|
||||
name = "centcom radio headset"
|
||||
desc = "The headset of the boss's boss."
|
||||
icon_state = "cent_headset"
|
||||
item_state = "headset"
|
||||
centComm = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/centcom/alt
|
||||
name = "centcom bowman headset"
|
||||
icon_state = "com_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/nanotrasen
|
||||
name = "\improper NT radio headset"
|
||||
desc = "The headset of a Nanotrasen corporate employee."
|
||||
icon_state = "nt_headset"
|
||||
centComm = 1
|
||||
ks2type = /obj/item/encryptionkey/ert
|
||||
|
||||
/obj/item/radio/headset/nanotrasen/alt
|
||||
name = "\improper NT bowman headset"
|
||||
icon_state = "nt_headset_alt"
|
||||
|
||||
/obj/item/radio/headset
|
||||
sprite_sheets = list(SPECIES_TESHARI = 'icons/inventory/ears/mob_teshari.dmi',
|
||||
SPECIES_WEREBEAST = 'icons/inventory/ears/mob_vr_werebeast.dmi')
|
||||
|
||||
/obj/item/radio/headset/mob_headset //Adminbus headset for simplemob shenanigans.
|
||||
name = "nonhuman radio receiver"
|
||||
desc = "An updated, self-adhesive modular intercom that requires no hands to operate or ears to hold, just stick it on. Takes encryption keys"
|
||||
|
||||
/obj/item/radio/headset/mob_headset/receive_range(freq, level)
|
||||
if(ismob(src.loc))
|
||||
return ..(freq, level, 1)
|
||||
return -1
|
||||
|
||||
/obj/item/radio/headset/mob_headset/afterattack(var/atom/movable/target, mob/living/user, proximity)
|
||||
if(!proximity)
|
||||
return
|
||||
if(istype(target,/mob/living/simple_mob))
|
||||
var/mob/living/simple_mob/M = target
|
||||
if(!M.mob_radio)
|
||||
user.drop_item()
|
||||
forceMove(M)
|
||||
M.mob_radio = src
|
||||
return
|
||||
if(M.mob_radio)
|
||||
M.mob_radio.forceMove(M.loc)
|
||||
M.mob_radio = null
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/radio/headset/headset_cargo
|
||||
desc = "A headset used by the QM's slaves."
|
||||
|
||||
/obj/item/radio/headset/headset_cargo/alt
|
||||
desc = "A bowman headset used by the QM's slaves."
|
||||
|
||||
/obj/item/radio/headset/headset_qm
|
||||
name = "qm radio headset"
|
||||
desc = "A headset used by the QM."
|
||||
icon_state = "cargo_headset"
|
||||
ks2type = /obj/item/encryptionkey/qm
|
||||
|
||||
/obj/item/radio/headset/headset_qm/alt
|
||||
name = "qm bowman headset"
|
||||
desc = "A bowman headset used by the QM."
|
||||
icon_state = "cargo_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/pathfinder
|
||||
name = "pathfinder's headset"
|
||||
desc = "Headset used by pathfinders for exploring. Access to the explorer and command channels."
|
||||
icon_state = "exp_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/pathfinder
|
||||
|
||||
/obj/item/radio/headset/pathfinder/alt
|
||||
name = "pathfinder's bowman headset"
|
||||
desc = "Bowman headset used by pathfinders for exploring. Access to the explorer and command channels."
|
||||
icon_state = "exp_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/pilot
|
||||
name = "pilot's headset"
|
||||
desc = "A headset used by pilots."
|
||||
icon_state = "pilot_headset"
|
||||
adhoc_fallback = TRUE
|
||||
|
||||
/obj/item/radio/headset/pilot/alt
|
||||
name = "pilot's bowman headset"
|
||||
desc = "A bowman headset used by pilots."
|
||||
icon_state = "pilot_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/explorer
|
||||
name = "away team member's headset"
|
||||
desc = "Headset used by the away team for exploring. Access to the away team channel."
|
||||
icon_state = "exp_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/explorer
|
||||
|
||||
/obj/item/radio/headset/explorer/alt
|
||||
name = "away team's bowman headset"
|
||||
desc = "Bowman headset used by the away team for exploring. Access to the away team channel."
|
||||
icon_state = "exp_headset_alt"
|
||||
|
||||
/obj/item/radio/headset/sar
|
||||
name = "fm radio headset"
|
||||
desc = "A headset for field medics."
|
||||
icon_state = "sar_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/sar
|
||||
|
||||
/obj/item/radio/headset/sar/alt
|
||||
name = "fm radio bowman headset"
|
||||
desc = "A bowman headset for field medics."
|
||||
icon_state = "sar_headset_alt"
|
||||
|
||||
/* //They're all volunteers now.
|
||||
/obj/item/radio/headset/volunteer
|
||||
name = "volunteer's headset"
|
||||
desc = "A headset used by volunteers to expedition teams, has access to the Away Team channel."
|
||||
icon_state = "pilot_headset"
|
||||
adhoc_fallback = TRUE
|
||||
ks2type = /obj/item/encryptionkey/explorer
|
||||
*/
|
||||
|
||||
/obj/item/radio/headset/talon
|
||||
name = "talon headset"
|
||||
desc = "A headset for communication between the crew of the ITV Talon."
|
||||
adhoc_fallback = TRUE
|
||||
icon_state = "pilot_headset"
|
||||
ks2type = /obj/item/encryptionkey/talon
|
||||
Reference in New Issue
Block a user