mirror of
https://github.com/KabKebab/GS13.git
synced 2026-02-09 23:27:37 +00:00
Fixes shells unable to be re-used by the AI & an exploit
This commit is contained in:
@@ -873,6 +873,8 @@
|
||||
return 0
|
||||
if(digitalcamo || digitalinvis)
|
||||
return 0
|
||||
if(ismimic(src)) // Are we a mimic? Mimics should not be tracked to prevent AI camera cheese.
|
||||
return 0
|
||||
|
||||
// Now, are they viewable by a camera? (This is last because it's the most intensive check)
|
||||
if(!near_camera(src))
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
|
||||
locked = FALSE //unlock cover
|
||||
|
||||
if(connected_ai)
|
||||
deployed = FALSE
|
||||
|
||||
update_canmove()
|
||||
if(!QDELETED(builtInCamera) && builtInCamera.status)
|
||||
builtInCamera.toggle_cam(src,0)
|
||||
|
||||
@@ -1232,7 +1232,6 @@
|
||||
/mob/living/silicon/robot/proc/TryConnectToAI()
|
||||
set_connected_ai(select_active_ai_with_fewest_borgs(z))
|
||||
if(connected_ai)
|
||||
connected_ai.connected_robots += src
|
||||
lawsync()
|
||||
lawupdate = 1
|
||||
return TRUE
|
||||
@@ -1270,4 +1269,4 @@
|
||||
var/mob/living/silicon/ai/old_ai = .
|
||||
old_ai.connected_robots -= src
|
||||
if(connected_ai)
|
||||
connected_ai.connected_robots |= src
|
||||
connected_ai.connected_robots |= src
|
||||
|
||||
Reference in New Issue
Block a user