-
-
Notifications
You must be signed in to change notification settings - Fork 452
/
implant_track.dm
60 lines (50 loc) · 2.09 KB
/
implant_track.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/obj/item/implant/tracking
name = "tracking implant"
desc = "Track with this."
actions_types = null
var/lifespan_postmortem = 10 MINUTES //for how long after user death will the implant work?
var/allow_teleport = FALSE //will people implanted with this act as teleporter beacons? (god i hope not)
/obj/item/implant/tracking/tra32
name = "TRAC implant"
desc = "A smaller tracking implant that supplies power for only a few minutes."
var/lifespan = 5 MINUTES //how long does the implant last?
///The id of the timer that's qdeleting us
var/timerid
allow_teleport = FALSE
/obj/item/implant/tracking/tra32/implant(mob/living/target, mob/user, silent, force)
. = ..()
timerid = QDEL_IN(src, lifespan)
/obj/item/implant/tracking/tra32/removed(mob/living/source, silent, special)
. = ..()
deltimer(timerid)
timerid = null
/obj/item/implant/tracking/tra32/Destroy()
return ..()
/obj/item/implant/tracking/tra32/emp_act(severity) //Demands to call the severity and I do not care to oppose it
. = ..()
Destroy()
/obj/item/implant/tracking/Initialize(mapload)
..()
GLOB.tracked_implants += src
/obj/item/implant/tracking/Destroy()
. = ..()
GLOB.tracked_implants -= src
/obj/item/implanter/tracking
imp_type = /obj/item/implant/tracking
/obj/item/implanter/tracking/gps
imp_type = /obj/item/gps/mining/internal
/obj/item/implant/tracking/get_data()
var/dat = {"<b>Implant Specifications:</b><BR>
<b>Name:</b> Tracking Beacon<BR>
<b>Life:</b> 10 minutes after death of host.<BR>
<b>Important Notes:</b> Implant also works as a teleporter beacon.<BR>
<HR>
<b>Implant Details:</b> <BR>
<b>Function:</b> Continuously transmits low power signal. Useful for tracking.<BR>
<b>Special Features:</b><BR>
<i>Neuro-Safe</i>- Specialized shell absorbs excess voltages self-destructing the chip if
a malfunction occurs thereby securing safety of subject. The implant will melt and
disintegrate into bio-safe elements.<BR>
<b>Integrity:</b> Gradient creates slight risk of being overcharged and frying the
circuitry. As a result neurotoxins can cause massive damage."}
return dat