mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
- Also adds ABSTRACT and NODROP flags in preparation for removal of canremove and abstract vars. - Sorts some of the setup.dm flags so they're in order. - Replaces 'flags & 2' in policetape.dm with pass_flags & PASSTABLE, should have the same effect.
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
/**
|
|
* Multitool -- A multitool is used for hacking electronic devices.
|
|
* TO-DO -- Using it as a power measurement tool for cables etc. Nannek.
|
|
*
|
|
*/
|
|
|
|
/obj/item/device/multitool
|
|
name = "multitool"
|
|
desc = "Used for pulsing wires to test which to cut. Not recommended by doctors."
|
|
icon_state = "multitool"
|
|
flags = CONDUCT
|
|
force = 5.0
|
|
w_class = 2.0
|
|
throwforce = 5.0
|
|
throw_range = 15
|
|
throw_speed = 3
|
|
desc = "You can use this on airlocks or APCs to try to hack them without cutting wires."
|
|
m_amt = 50
|
|
g_amt = 20
|
|
origin_tech = "magnets=1;engineering=1"
|
|
var/obj/machinery/telecomms/buffer // simple machine buffer for device linkage
|
|
|
|
// Syndicate device disguised as a multitool; it will turn red when an AI camera is nearby.
|
|
|
|
|
|
/obj/item/device/multitool/ai_detect
|
|
var/track_delay = 0
|
|
|
|
/obj/item/device/multitool/ai_detect/New()
|
|
..()
|
|
processing_objects += src
|
|
|
|
|
|
/obj/item/device/multitool/ai_detect/Del()
|
|
processing_objects -= src
|
|
..()
|
|
|
|
/obj/item/device/multitool/ai_detect/process()
|
|
|
|
if(track_delay > world.time)
|
|
return
|
|
|
|
var/found_eye = 0
|
|
|
|
for(var/mob/aiEye/A in living_mob_list)
|
|
|
|
var/turf/our_turf = get_turf(src)
|
|
var/turf/eye_turf = get_turf(A)
|
|
|
|
if(get_dist(our_turf, eye_turf) < 9)
|
|
found_eye = 1
|
|
break
|
|
|
|
if(found_eye)
|
|
icon_state = "[initial(icon_state)]_red"
|
|
else
|
|
icon_state = initial(icon_state)
|
|
|
|
track_delay = world.time + 10 // 1 second
|
|
return
|
|
|