diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index 42d9ec0269..739df6b398 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -267,7 +267,11 @@ GLOBAL_LIST_INIT(channel_tokens, list( /obj/item/radio/headset/attackby(obj/item/W, mob/user, params) user.set_machine(src) - + if (istype(W,/obj/item/headsetupgrader)) + if (!("bowman" in name) && !("syndicate" in name) && !("alien" in name)) + to_chat(user,"You upgrade [src].") + bowmanize() + qdel(W) if(istype(W, /obj/item/screwdriver)) if(keyslot || keyslot2) for(var/ch_name in channels) @@ -335,3 +339,23 @@ GLOBAL_LIST_INIT(channel_tokens, list( use_command = !use_command to_chat(user, "You toggle high-volume mode [use_command ? "on" : "off"].") return TRUE + +/obj/item/radio/headset/proc/bowmanize() + cut_overlays() + var/icon/yeas = icon(icon,icon_state) + icon_state = "antenna_alt" + var/mutable_appearance/center = mutable_appearance(icon,"center_alt") + center.color = yeas.GetPixel(15,18) + var/mutable_appearance/centeralt = mutable_appearance(icon,"centeralt_alt") + centeralt.color = yeas.GetPixel(14,22) + var/mutable_appearance/centercenter = mutable_appearance(icon,"centercenter_alt") + centercenter.color = yeas.GetPixel(13,19) + var/mutable_appearance/centerpixel = mutable_appearance(icon,"centerpixel_alt") + centerpixel.color = yeas.GetPixel(13,21) + add_overlay(center) + add_overlay(centeralt) + add_overlay(centercenter) + add_overlay(centerpixel) + name = replacetext(name,"headset", "bowman headset") + desc = "[desc] Protects ears from flashbangs." + AddComponent(/datum/component/wearertargeting/earprotection, list(SLOT_EARS)) diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index fc768cd38e..1a840f488c 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -251,3 +251,9 @@ effective or pretty fucking useless. else GLOB.active_jammers -= src update_icon() + +/obj/item/headsetupgrader + name = "headset upgrader" + desc = "A tool that can be used to upgrade a normal headset to be able to protect from flashbangs." + icon = 'icon/obj/device.dmi' + icon_state = "headset_upgrade" diff --git a/code/modules/uplink/uplink_items.dm b/code/modules/uplink/uplink_items.dm index 97fa6041a9..055a38b927 100644 --- a/code/modules/uplink/uplink_items.dm +++ b/code/modules/uplink/uplink_items.dm @@ -1526,6 +1526,12 @@ datum/uplink_item/stealthy_weapons/taeclowndo_shoes item = /obj/item/aiModule/syndicate cost = 9 +/datum/uplink_item/device_tools/headsetupgrade + name = "Headset Upgrader" + desc = "A device that can be used to make one headset immune to flashbangs." + item = /obj/item/headsetupgrader + cost = 3 + /datum/uplink_item/device_tools/medgun name = "Medbeam Gun" desc = "A wonder of Syndicate engineering, the Medbeam gun, or Medi-Gun enables a medic to keep his fellow \ diff --git a/icons/obj/device.dmi b/icons/obj/device.dmi index f467da6fbf..9bbc2550c8 100644 Binary files a/icons/obj/device.dmi and b/icons/obj/device.dmi differ diff --git a/icons/obj/radio.dmi b/icons/obj/radio.dmi index 64642b8a6c..dbfc7b1f93 100644 Binary files a/icons/obj/radio.dmi and b/icons/obj/radio.dmi differ