Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suicide Vest Traitor Item #22668

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions code/modules/clothing/suits/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -598,3 +598,63 @@
icon_state = "pocketcat"
item_state = "pocketcat"
body_parts_covered = CHEST|GROIN|LEGS|FEET|ARMS

/obj/item/clothing/suit/unalivevest
name = "extremely obvious suicide vest"
desc = "An autolocking, voice activated suicide vest. The electronics inside are so crude it only functions in inclusive mode. Once it's on, it can never be removed."
icon = 'icons/obj/clothing/suits/suits.dmi'
icon_state = "reactiveoff"
item_state = "reactiveoff"
blood_overlay_type = "armor"
flags_1 = HEAR_1
var/listening = FALSE
var/activation_phrase = ""
var/active = FALSE

//explosion control vars
var/weak = 4
var/medium = 2
var/heavy = 1

/obj/item/clothing/suit/unalivevest/AltClick(mob/user)
if(!user.canUseTopic(src, BE_CLOSE))
return
if(activation_phrase)
say("Activation phrase already set.")
return
say("Now recording.")
listening = TRUE

/obj/item/clothing/suit/unalivevest/Hear(message, atom/movable/speaker, message_language, raw_message, radio_freq, list/spans, list/message_mods)
. = ..()
if(speaker == src)
return
if(listening)
activation_phrase = raw_message
listening = FALSE
say("Activation message is '[activation_phrase]'.", message_language)
else
if(activation_phrase && findtext(raw_message, activation_phrase))
Explode()

/obj/item/clothing/suit/unalivevest/mob_can_equip(mob/M, mob/living/equipper, slot, disable_warning = FALSE, bypass_equip_delay_self = FALSE)
if(listening || !activation_phrase)
to_chat(equipper, span_warning("Set the activation phrase first!"))
return FALSE
return ..()

/obj/item/clothing/suit/unalivevest/equipped(mob/user, slot, initial = FALSE)
. = ..()
if((slot & slot_flags))
to_chat(user, span_danger("You hear the vest click as it locks around your torso!"))
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))

/obj/item/clothing/suit/unalivevest/proc/Explode()
if(active)
return
active = TRUE
explosion(src, heavy, medium, weak, weak, flame_range = weak)
if(isliving(loc))
var/mob/living/L = loc
L.gib(no_brain = TRUE, no_items = TRUE)
qdel(src)
8 changes: 8 additions & 0 deletions code/modules/uplink/uplink_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,13 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
limited_stock = 1
include_objectives = list(/datum/objective/martyr)

/datum/uplink_item/explosives/suicide_vest
name = "Suicide Vest"
desc = "An autolocking, voice activated suicide vest. The electronics inside are so crude it only functions in inclusive mode. Once it's on, it can never be removed."
item = /obj/item/clothing/suit/unalivevest
cost = 7
manufacturer = /datum/corporation/traitor/donkco

//Support and Mechs
/datum/uplink_item/support
category = UPLINK_CATEGORY_SUPPORT
Expand Down Expand Up @@ -3556,3 +3563,4 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
desc = "Omnizine infused gummy bears. Grape flavor. Chew throughly!"
item = /obj/item/storage/pill_bottle/gummies/omnizine
cost = 1

Loading