I've come to the conclusion this whole module-based AI is way beyond my amateur coding skills. I'm pretty sure I've tracked down roughly the area I need to focus on but I don't know how to go about it tbh.
Lines 212 - 228 of module_combatcore.lua
if DistFromPath < 25 and VertDist < 95 and g_Time > ai_bot_pointtime[e] then
ai_bot_pointtime[e] = g_Time + 100
StartTimer(e)
if ai_bot_pointdirection[e] == 1 then
ai_bot_pointindex[e] = ai_bot_pointindex[e] + 1
if ai_bot_pointindex[e] > ai_bot_pointmax[e] then
ai_bot_pointindex[e] = ai_bot_pointmax[e] -1
ai_bot_pointdirection[e] = 0
end
else
ai_bot_pointindex[e] = ai_bot_pointindex[e] - 1
if ai_bot_pointindex[e] < 1 then
ai_bot_pointindex[e] = 2
ai_bot_pointdirection[e] = 1
end
end
end
Somewhere in here maybe?
AE