Does this mean the hold/guard/persue modes have been completely removed? I regularly change the setting depending on what I want my droids to do...
https://github.com/Warzone2100/warzone2 ... 5a85e178ba :
Why not use '.' (a 'full stop') as the shortcut to stop units doing whatever they are doing?
https://github.com/Warzone2100/warzone2 ... 3849fd5d01 :
It would be great if this could be moved to rules.js so that custom situation reporting could be implemented. For example, on eventObjectSeen() we could choose which audio file to play (male or female voice, etc) depending on whether the resource was spotted by a droid or a structure.
https://github.com/Warzone2100/warzone2 ... 75052c9716 :
The eventAttacked() situation reporting should live in rules.js IMHO. Once it matures, we could probably put the Enhanced SitRep mod in there to get really nice situation reporting throughout the entire campaign.
https://github.com/Warzone2100/warzone2 ... bfe12b592d :
Would it be possible to differentiate between BUILDING and SKY_SCRAPER? Reason: Sky scrapers provide better cover for units, especially against ripples.
https://github.com/Warzone2100/warzone2 ... 0be90590cd :
IMHO 1200 would be better -- prevents rush but at least lets you get the basic base structures up, including a tower or two if facing ultimate scav choppers.
https://github.com/Warzone2100/warzone2 ... 9aab53e633 :
Would it not be better to return an array of all labels associated with the object (or an empty array if no labels)? That way the script can decide what to do with the results.
For example:
Code: Select all
if (getLabel(someObj).indexOf("someLabel") != -1) {
// that obj has the label
}
Code: Select all
getLabel(someObj).forEach( function(label) {
// do stuff with label, eg. via a switch statement or whatever
} );
https://github.com/Warzone2100/warzone2 ... 1933d7fbc6 :
Would it be possible to also get a getPowerModifier() function? rules.js might setPowerModifier() but unless there's a getPowerModifier() there's no way for AI scripts to know if they are getting the power boost (and if so how much). They could make assumptions based on their difficulty setting, but those assumptions could be wrong if rules.js is modded.
When there is a setWhatever() function there should ideally be an accompanying getWhatever() function IMHO.

