Skip to content

Commit

Permalink
[MIRROR] Machinery cannot be interacted with by AI when its turf is o…
Browse files Browse the repository at this point in the history
…ff-camera (#1845)

* Machinery cannot be interacted with by AI when its turf is off-camera (#81250)

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Rhials <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2024
1 parent 6ed1bd9 commit 291c081
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/machinery/_machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@
/obj/machinery/ui_act(action, list/params)
add_fingerprint(usr)
update_last_used(usr)
if(isAI(usr) && !GLOB.cameranet.checkTurfVis(get_turf(src))) //We check if they're an AI specifically here, so borgs can still access off-camera stuff.
to_chat(usr, span_warning("You can no longer connect to this device!"))
return FALSE
return ..()

/obj/machinery/Topic(href, href_list)
Expand Down

0 comments on commit 291c081

Please sign in to comment.