Skip to content

Commit

Permalink
no more 1984 ai stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoddd committed Oct 3, 2024
1 parent 9978824 commit 25ebc1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1261,19 +1261,19 @@
//basic fast checks go first. When overriding this proc, I recommend calling ..() at the end.
if(SEND_SIGNAL(src, COMSIG_LIVING_CAN_TRACK, user) & COMPONENT_CANT_TRACK)
return FALSE
var/turf/T = get_turf(src)
if(!T)
if(!isnull(user) && src == user)
return FALSE
if(invisibility || alpha <= 50)//cloaked
return FALSE
if(!isturf(src.loc)) //The reason why we don't just use get_turf is because they could be in a closet, disposals, or a vehicle.
return FALSE
var/turf/T = src.loc
if(is_centcom_level(T.z)) //dont detect mobs on centcom
return FALSE
if(is_away_level(T.z))
return FALSE
if(onSyndieBase() && !(ROLE_SYNDICATE in user?.faction))
return FALSE
if(!isnull(user) && src == user)
return FALSE
if(invisibility || alpha == 0)//cloaked
return FALSE
// Now, are they viewable by a camera? (This is last because it's the most intensive check)
if(!GLOB.cameranet.checkCameraVis(src))
return FALSE
Expand Down

0 comments on commit 25ebc1d

Please sign in to comment.