mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Update ai_holder_targeting_vr.dm (#6694)
This commit is contained in:
@@ -1,16 +1,4 @@
|
|||||||
/datum/ai_holder/can_see_target(atom/movable/the_target, view_range = vision_range)
|
/datum/ai_holder/can_see_target(atom/movable/the_target, view_range = vision_range)
|
||||||
if(the_target && isbelly(the_target.loc))
|
if(the_target && !isturf(the_target.loc) && !ismecha(the_target.loc)) //CHOMPEdit, AI shouldn't be targetting people inside objects of any kind
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
return ..()
|
return ..()
|
||||||
/*
|
|
||||||
/datum/ai_holder/can_see_target(atom/movable/the_target, view_range = vision_range)
|
|
||||||
log_world("TARGET: [the_target] and TARGET.LOC: [the_target.loc]")
|
|
||||||
if(the_target && !isturf(the_target.loc)) //CHOMPEdit, AI shouldn't be targetting people inside objects of any kind
|
|
||||||
if(ismecha(the_target.loc)) //Except mechs, of course
|
|
||||||
target = the_target.loc
|
|
||||||
else
|
|
||||||
return FALSE
|
|
||||||
|
|
||||||
return ..()
|
|
||||||
*/
|
|
||||||
Reference in New Issue
Block a user