Editing enemy AI

Place to get help with not working mods / modding interface.
Nicksaurus
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu Aug 28, 2014 12:56 pm
Contact:

Editing enemy AI

Post by Nicksaurus »

Is there any way to make small changes to the way the enemies path towards the player/pollution-producing buildings or is it all hardcoded in the C++? I just want to make a simple mod that adds a higher pathing cost to areas where lots of biters have died in the past.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Editing enemy AI

Post by Adil »

Well, the current pathfinder doesn't take account on that (does it even use weights at all?), hence it'd be not a small change. You'd have to implement the tracker itself first.
Slight modifications would be alterations of expansion parameters and such, see "dynamic expansion" mod or relevant parts of "natural evolution" and "mizantrope".
Speaking of which, the latter seems to implement that, albeit along with other changes one might like or not.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”