Turrets Shoot Hunting Predators

If you liked this item, please rate it up on Steam Workshop page.

Author: Archie

Last revision: 8 Sep, 2025 at 19:15 UTC (1)

File size: 450.87 KB

On Steam Workshop

Description:

Something that I feel should always have been vanilla behavior. Turrets now target predators hunting your pawns.

As of 1.6, Hugslib is NO LONGER required.
For versions below 1.6, Hugslib is still required!!!

How it works:

The mod now directly uses a harmony postfix patch to change the TryFindNewTarget method for turrets, adding an operation at the very end of the line if there is already not a valid target, in order to maximize compatibility with other mods.

After that, it gets animal pawns that pass basic checks when turrets are looking for targets and checks if they have the predator hunt job, then checks for a few more things such as visibility, fog, etc before giving the go ahead.

This mod ALSO fixes the error of a turret firing at an animal causing an ideology instigation error, a vanilla problem.

Incompatibility List

Animals Logic (Has logic to handle this already, but I felt it didn’t work at times, which is why I made this patch.)
Their function to shoot hunting predators can be disabled in their mod options, so you can still use all the logic from it alongside this as long as you disable that.
https://steamcommunity.com/sharedfiles/filedetails/?id=1098354593

Combat Extended Drastically changes targeting checks. As this hooks into vanilla checks to do what it does, this mod ceases to function.
https://steamcommunity.com/workshop/filedetails/?id=2890901044

Any mod that replaces the vanilla turret TryFindNewTarget functions entirely instead of patching them

Credits: Baal Evan from Turret Auto Hunt for idea and code snippet I started developing this on.

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.