Skip to content

Commit

Permalink
Xenos ignore non-conscious people, die at -400 now
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 11, 2023
1 parent f088681 commit 78396b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/mobs.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define HEALTH_THRESHOLD_DEAD -100
#define HEALTH_THRESHOLD_DEAD -400
#define HEALTH_THRESHOLD_CRIT -50

//Some mob defines below
Expand Down
13 changes: 6 additions & 7 deletions code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,15 @@ GLOBAL_LIST_INIT(ai_target_limbs, list(
var/list/viable_vehicles = list()
var/list/viable_defenses = list()
var/smallest_distance = INFINITY
for(var/l in GLOB.alive_human_list)
var/mob/living/carbon/human/H = l
if(H.species.flags & IS_SYNTHETIC)
for(var/mob/living/carbon/human/alive_human as anything in GLOB.alive_human_list)
if(alive_human.species.flags & IS_SYNTHETIC)
return pick(viable_humans)
if(z != H.z)
if(z != alive_human.z)
continue
var/distance = get_dist(src, H)
var/distance = get_dist(src, alive_human)

if(distance < ai_range)
viable_humans += H
if(distance < ai_range && alive_human.stat == CONSCIOUS)
viable_humans += alive_human
smallest_distance = min(distance, smallest_distance)

for(var/l in GLOB.all_multi_vehicles)
Expand Down

0 comments on commit 78396b7

Please sign in to comment.