Skip to content

Commit

Permalink
Biosignaller total fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCastmer committed Aug 18, 2024
1 parent ea7b769 commit 3469f3f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
/obj/item/implant/death_alarm
/obj/item/implant/biosig_ntcommand
name = "nanotrasen command biosignaller implant"
desc = "An alarm which monitors host vital signs and transmits a radio message upon death. Usually implanted into command staff."
actions_types = null
verb_say = "broadcasts"
verb_exclaim = "broadcasts"
var/obj/item/radio/radio
var/static/list/stealth_areas = typecacheof(list(/area/yogs/infiltrator_base, /area/centcom/syndicate_mothership, /area/shuttle/yogs/stealthcruiser, /area/ruin/syndicate_icemoon, /area/ruin/powered/syndicate_lava_base, /area/ruin/space/has_grav/listeningstation, /area/ruin/space/has_grav/syndiederelict))

/obj/item/implant/death_alarm/Initialize(mapload)
obj/item/encryptionkey/biosig_ntcommand
name = "\improper biosignaller radio encryption key"
icon_state = "cent_cypherkey"
independent = TRUE
channels = list(RADIO_CHANNEL_COMMON = 1, RADIO_CHANNEL_CENTCOM = 1)

/obj/item/implant/biosig_ntcommand/Initialize(mapload)
. = ..()
radio = new(src)
radio.keyslot = new/obj/item/encryptionkey/headset_cent // Should broadcast both on the secure centcom and common channels to notify both all station and central command dudes.
radio.keyslot = new/obj/item/encryptionkey/biosig_ntcommand// Should broadcast both on the secure centcom and common channels to notify both all station and central command dudes.
radio.listening = FALSE
radio.recalculateChannels()

/obj/item/implant/death_alarm/activate(cause)
/obj/item/implant/biosig_ntcommand/activate(cause)
if(!imp_in)
return FALSE

Expand All @@ -39,16 +46,16 @@
radio.talk_into(src, message, RADIO_CHANNEL_COMMON)
qdel(src)

/obj/item/implant/death_alarm/emp_act(severity)
/obj/item/implant/biosig_ntcommand/emp_act(severity)
activate("emp")

/obj/item/implant/death_alarm/on_mob_death(mob/living/L, gibbed)
/obj/item/implant/biosig_ntcommand/on_mob_death(mob/living/L, gibbed)
if(gibbed)
activate("gibbed") // Will use default message.
else
activate("death")

/obj/item/implant/death_alarm/get_data()
/obj/item/implant/biosig_ntcommand/get_data()
. = {"<b>Implant Specifications:</b><BR>
<b>Name:</b>Nanotrasen \"Profit Margin\" Class Employee Biosignaller Implant<BR>
<b>Life:</b>Until activation<BR>
Expand All @@ -58,10 +65,10 @@
<b>Function:</b>Contains a miniature radio connected to a bioscanner. Broadcasts the death and last known position of the user both over an encrypted radio channel and all stationary.<BR>"
<b>Integrity:</b> Implant will occasionally be degraded by the body's immune system and thus will occasionally malfunction."}

/obj/item/implanter/death_alarm
/obj/item/implanter/biosig_ntcommand
name = "implanter"
imp_type = /obj/item/implant/death_alarm
imp_type = /obj/item/implant/biosig_ntcommand

/obj/item/implantcase/death_alarm
/obj/item/implantcase/biosig_ntcommand
name = "implant case - 'Standart Biosignal NT'"
imp_type = /obj/item/implant/death_alarm
imp_type = /obj/item/implant/biosig_ntcommand
4 changes: 2 additions & 2 deletions modular_dripstation/code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@

/obj/item/storage/box/security/biosig_nt/PopulateContents()
for(var/i in 1 to 6)
new /obj/item/implantcase/death_alarm(src)
new /obj/item/implanter/death_alarm(src)
new /obj/item/implantcase/biosig_ntcommand(src)
new /obj/item/implanter/biosig_ntcommand(src)

// Syndie kit
/obj/item/storage/box/donkdrip
Expand Down
2 changes: 1 addition & 1 deletion modular_dripstation/includes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
#include "code\game\objects\items\handcuffs.dm"
#include "code\game\objects\items\holotool.dm"
#include "code\game\objects\items\holy_weapons.dm"
#include "code\game\objects\items\implants\death_alarm.dm"
#include "code\game\objects\items\implants\biosig_ntcommand.dm"
#include "code\game\objects\items\implants\implant_misc.dm"
#include "code\game\objects\items\implants\implant.dm"
#include "code\game\objects\items\implants\implanter.dm"
Expand Down

0 comments on commit 3469f3f

Please sign in to comment.