Player AI Overhaul
I've laid out a plan to update our current AI infrastructure in order to accomplish the following:
- Make it easier for modders to adjust bot behavior
- Improve cross-compatibility between scripted AI, as well as allowing scripters to more easily interact with native behavior
- Improve native behavior and expand it to other characters and gametypes.
See the workdocument for details: https://docs.google.com/spreadsheets/d/1orM445lWQXWES5dUykXnULCwJ28EpGzB-6S4I5DPNrE/edit#gid=1770356730
Some elements of the document, particularly in regards to navigation and waypoints, require too much infrastructure at this time to invest energy in and should be ignored in the short term. What I would like to focus on are the following:
-
Production of C functions for the AI infrastructure -
Production of lua functions and hooks for greater AI modification -
Exposure of AI_
constants andplayer.botmem
fields to lua -
Freeslotting AI_
constants to allow modders to create additional AI thinkstates. -
Expanding native AI behavior for other characters and gametypes
I've assigned this project to myself, but I will need assistance, because I am not well-versed in the lua infrastructure of SRB2's hardcode. You can respond or contact me on Discord (CobaltBW#3338
) if you're interested in contributing.