Hit and run
Posted: 30 Mar 2012, 11:24
I think one single change can greatly improve the AI micromanagement:
I'm asking to make eventDischarged(droid), that is called every time the droid's white charge bar gets empty.
This is not called for weapons like machineguns that don't have white charge bar.
It's up to me to improve this code to decide wether a certain weapon needs this sort of behaviour or not.
The main thing is that this event shouldn't be throttled.
Code: Select all
function eventDischarged(droid)
{
orderDroidLoc(droid,DORDER_MOVE,startPositions[me].x,startPositions[me].y);
}This is not called for weapons like machineguns that don't have white charge bar.
It's up to me to improve this code to decide wether a certain weapon needs this sort of behaviour or not.
The main thing is that this event shouldn't be throttled.