Skip to content

Commit

Permalink
Xeno pathing tweak that may destroy us all
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 3, 2023
1 parent 7ee43a6 commit 5ee72fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/xeno_ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define DOOR_PENALTY 3
#define OBJECT_PENALTY 20
#define HUMAN_PENALTY 4
#define XENO_PENALTY 4
#define VEHICLE_PENALTY 25
#define SENTRY_PENALTY 25
#define WINDOW_FRAME_PENALTY 25
Expand Down
13 changes: 8 additions & 5 deletions code/modules/mob/living/carbon/xenomorph/xeno_ai_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ At bare minimum, make sure the relevant checks from parent types gets copied in

. = ..()

// XENOS
/mob/living/carbon/xenomorph/xeno_ai_obstacle(mob/living/carbon/xenomorph/X, direction, turf/target)
. = ..()
if(!.)
return

return XENO_PENALTY

// VEHICLES
/obj/vehicle/xeno_ai_obstacle(mob/living/carbon/xenomorph/X, direction, turf/target)
. = ..()
Expand All @@ -122,11 +130,6 @@ At bare minimum, make sure the relevant checks from parent types gets copied in
return ..()
return WINDOW_FRAME_PENALTY

/obj/structure/window_frame/xeno_ai_act(mob/living/carbon/xenomorph/X)
. = ..()
if(!X.action_busy)
do_climb(X)

/obj/structure/barricade/handrail/xeno_ai_obstacle(mob/living/carbon/xenomorph/X, direction, turf/target)
. = ..()
if(!.)
Expand Down

0 comments on commit 5ee72fe

Please sign in to comment.