mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 17:11:40 +00:00
* Find and replace argless atom New() to Initialize(). * Manual replacement of no-arg New() to Initialize(). * Manually replacing remaining New() overrides. * Fixing linter issues with now-removed New() args. * Tidying area init overrides. * Porting Neb's atom subsystem. * Trying to isolate init problems. * Adjusting Init code post-test. * Merging duplicate Initialize() procs. * Merge resolution.
20 lines
473 B
Plaintext
20 lines
473 B
Plaintext
/area/ai_monitored
|
|
name = "AI Monitored Area"
|
|
var/obj/machinery/camera/motioncamera = null
|
|
|
|
/area/ai_monitored/LateInitialize()
|
|
. = ..()
|
|
for(var/obj/machinery/camera/M in src)
|
|
if(M.isMotion())
|
|
motioncamera = M
|
|
M.area_motion = src
|
|
|
|
/area/ai_monitored/Entered(atom/movable/O)
|
|
..()
|
|
if (ismob(O) && motioncamera)
|
|
motioncamera.newTarget(O)
|
|
|
|
/area/ai_monitored/Exited(atom/movable/O)
|
|
if (ismob(O) && motioncamera)
|
|
motioncamera.lostTarget(O)
|