Files
Paradise/code/game/area/ai_monitored.dm
T
ContrabangandGitHub 65ab4a5d89 Refactors station areas to be /area/station subtypes (#21681)
* areas

* progress...

* death hatred and murder

* get current master maps

* hoooly shit i can load up the maps

* it compiles now

* map changes

* fixes some unintended stuff

* make the .dme right

* fix mixed space+tab indents

* more space-tab fixes

* CI, please show me more than 1 CI fail at a time

* UPDATE PATHS!!!

* none of the stations had it anyways, but fixed

* mint wasnt actually deleted, my bad

* epic random CI fail for no reason

* i beg you, CI

* dont delete anything

* okay THAT should work now

* okay get master maps and rerun

* okay THEN run update paths

* actually done now

* oops
2023-09-06 17:37:50 +01:00

40 lines
1005 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
/area/station/ai_monitored/storage/secure
name = "Secure Storage"
icon_state = "storage"