[ZScript] Popguy12's enemy AI library
Posted: Fri Jun 10, 2022 2:30 pm
What is it?
This is a free to use enemy AI library, fit for your enemy coding needs, and all in ZScript.
I've been working on this the past couple months, in part due to messing around with redoing
the enemy functions in my own mod, and helping out with enemies in another mod as well.
At its core its Project Brutality's AI redo from around 2019/2020, with some tweaks, added features,
and large tweaks to the custom A_Chase function, in part fixing the target memory and wandering feature.
All neatly bundled into 336 lines of a base monster class, and another 9 lines for a math function.
Features
- More organic movement when the player is visible
- Highly aggressive
- Toggleable dodge movements
- Toggleable ZSDuke leaping, with properties for limiting the range and height
- Losing track of the player
- Wandering around after forgetting about the player
- An A_SmartPain function, for if you want a different sound at low health
- On the fly LOF check right before firing to prevent friendly fire
A lot of this can be customized, and a demonstration Zombieman has been included
to show off what this library can do, and also function as a baseline for whats needed
in an enemy's code to function correctly with the library.
A couple placeholder sprites have also been included purely for the demonstration Zombieman
[youtube]https://youtu.be/sOmm8x0nIv0[/youtube]
If you have any questions or issues, please try and reach me on Discord first, im more active there than on here.
Credits:
- uhh, Mark i guess for those zombieman roll sprites
- PB team for the dolphin dive zombieman sprites, alongside being the original code base
- "Jewalky" on GitHub for making ZSDuke, which the leaping code is from
This is a free to use enemy AI library, fit for your enemy coding needs, and all in ZScript.
I've been working on this the past couple months, in part due to messing around with redoing
the enemy functions in my own mod, and helping out with enemies in another mod as well.
At its core its Project Brutality's AI redo from around 2019/2020, with some tweaks, added features,
and large tweaks to the custom A_Chase function, in part fixing the target memory and wandering feature.
All neatly bundled into 336 lines of a base monster class, and another 9 lines for a math function.
Features
- More organic movement when the player is visible
- Highly aggressive
- Toggleable dodge movements
- Toggleable ZSDuke leaping, with properties for limiting the range and height
- Losing track of the player
- Wandering around after forgetting about the player
- An A_SmartPain function, for if you want a different sound at low health
- On the fly LOF check right before firing to prevent friendly fire
A lot of this can be customized, and a demonstration Zombieman has been included
to show off what this library can do, and also function as a baseline for whats needed
in an enemy's code to function correctly with the library.
A couple placeholder sprites have also been included purely for the demonstration Zombieman
[youtube]https://youtu.be/sOmm8x0nIv0[/youtube]
If you have any questions or issues, please try and reach me on Discord first, im more active there than on here.
Credits:
- uhh, Mark i guess for those zombieman roll sprites
- PB team for the dolphin dive zombieman sprites, alongside being the original code base
- "Jewalky" on GitHub for making ZSDuke, which the leaping code is from