mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Tracking implants now emit a GPS signal (and other related features) (#20687)
* Tracking implants now emit a GPS signal (and more) * lewcc's review * Sirryan2002's review
This commit is contained in:
@@ -6,15 +6,33 @@
|
||||
implant_data = /datum/implant_fluff/tracking
|
||||
implant_state = "implant-nanotrasen"
|
||||
var/warn_cooldown = 0
|
||||
var/obj/item/gps/internal_gps
|
||||
var/internal_gps_path = /obj/item/gps/internal/tracking_implant
|
||||
|
||||
/obj/item/implant/tracking/Initialize(mapload)
|
||||
. = ..()
|
||||
GLOB.tracked_implants += src
|
||||
|
||||
/obj/item/implant/tracking/Destroy()
|
||||
QDEL_NULL(internal_gps)
|
||||
GLOB.tracked_implants -= src
|
||||
return ..()
|
||||
|
||||
/obj/item/implant/tracking/implant(mob/target)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
internal_gps = new internal_gps_path(src)
|
||||
|
||||
/obj/item/implant/tracking/removed(mob/target)
|
||||
. = ..()
|
||||
if(.)
|
||||
QDEL_NULL(internal_gps)
|
||||
|
||||
/obj/item/gps/internal/tracking_implant
|
||||
gpstag = "TRACK0"
|
||||
local = FALSE
|
||||
|
||||
/obj/item/implanter/tracking
|
||||
name = "bio-chip implanter (tracking)"
|
||||
implant_type = /obj/item/implant/tracking
|
||||
|
||||
@@ -268,7 +268,7 @@
|
||||
new /obj/item/implantcase/tracking(src)
|
||||
new /obj/item/implanter(src)
|
||||
new /obj/item/implantpad(src)
|
||||
new /obj/item/locator(src)
|
||||
new /obj/item/gps/security(src)
|
||||
|
||||
/obj/item/storage/box/minertracker
|
||||
name = "boxed tracking bio-chip kit"
|
||||
@@ -281,7 +281,7 @@
|
||||
new /obj/item/implantcase/tracking(src)
|
||||
new /obj/item/implanter(src)
|
||||
new /obj/item/implantpad(src)
|
||||
new /obj/item/locator(src)
|
||||
new /obj/item/gps/mining(src)
|
||||
|
||||
/obj/item/storage/box/chemimp
|
||||
name = "chemical bio-chip kit"
|
||||
|
||||
Reference in New Issue
Block a user