mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 22:54:32 +01:00
7f219de67f
* refactor: move req console config to areas * improve dmdoc * just set this to what the area has
37 lines
943 B
Plaintext
37 lines
943 B
Plaintext
/area/station/ai_monitored
|
|
name = "AI Monitored Area"
|
|
var/list/motioncameras = list()
|
|
var/list/motionTargets = list()
|
|
sound_environment = SOUND_ENVIRONMENT_ROOM
|
|
|
|
/area/station/ai_monitored/Initialize(mapload)
|
|
. = ..()
|
|
if(mapload)
|
|
for(var/obj/machinery/camera/M in src)
|
|
if(M.isMotion())
|
|
motioncameras.Add(M)
|
|
M.AddComponent(/datum/component/proximity_monitor)
|
|
M.set_area_motion(src)
|
|
|
|
/area/station/ai_monitored/Entered(atom/movable/O)
|
|
..()
|
|
if(ismob(O) && length(motioncameras))
|
|
for(var/X in motioncameras)
|
|
var/obj/machinery/camera/cam = X
|
|
cam.newTarget(O)
|
|
return
|
|
|
|
/area/station/ai_monitored/Exited(atom/movable/O)
|
|
..()
|
|
if(ismob(O) && length(motioncameras))
|
|
for(var/X in motioncameras)
|
|
var/obj/machinery/camera/cam = X
|
|
cam.lostTargetRef(O.UID())
|
|
return
|
|
|
|
/area/station/ai_monitored/storage/eva
|
|
name = "EVA Storage"
|
|
icon_state = "eva"
|
|
ambientsounds = HIGHSEC_SOUNDS
|
|
request_console_name = "EVA"
|