Hit and run

For AI and campaign script related discussions and questions
Post Reply
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Hit and run

Post by NoQ »

I think one single change can greatly improve the AI micromanagement:

Code: Select all

function eventDischarged(droid) 
{
    orderDroidLoc(droid,DORDER_MOVE,startPositions[me].x,startPositions[me].y);
}
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.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Hit and run

Post by aubergine »

Yup, this would indeed be a very useful event to have!
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Post Reply