Files
Aurora.3/code/game/area/ai_monitored.dm
FluffyandGitHub 389466360e Areas and station areas work (#20195)
Refactored sorting.
Added test to verify all horizon areas (outside exceptions) are marked
as station areas.
Added test to verify shuttle areas are not marked as station areas.
Refactored how the area sorting var is made and used.
Added a global list of all areas.
2024-11-27 13:13:44 +00:00

27 lines
628 B
Plaintext

/area/ai_monitored
name = "AI Monitored Area"
var/obj/machinery/camera/motioncamera = null
station_area = TRUE
/area/ai_monitored/LateInitialize()
// locate and store the motioncamera
for (var/obj/machinery/camera/M in src)
if(M.isMotion())
motioncamera = M
M.area_motion = src
return
/area/ai_monitored/Initialize(mapload)
. = ..()
if (mapload)
return INITIALIZE_HINT_LATELOAD
/area/ai_monitored/Entered(atom/movable/O)
..()
if (ismob(O) && motioncamera && !QDELETED(O))
motioncamera.newTarget(O)
/area/ai_monitored/Exited(atom/movable/O)
if (ismob(O) && motioncamera)
motioncamera.lostTarget(O)