Fixes shells unable to be re-used by the AI & an exploit

This commit is contained in:
Archie
2021-06-27 14:09:40 -03:00
parent cf0105de4a
commit 1547557166
4 changed files with 8 additions and 2 deletions

View File

@@ -157,6 +157,8 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
#define isclown(A) (istype(A, /mob/living/simple_animal/hostile/retaliate/clown))
#define ismimic(A) (istype(A, /mob/living/simple_animal/hostile/hs13mimic))
GLOBAL_LIST_INIT(shoefootmob, typecacheof(list(
/mob/living/carbon/human/,
/mob/living/simple_animal/cow,

View File

@@ -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))

View File

@@ -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)

View File

@@ -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