To get a units CURRENT hp? (as in for a particular unit not a unittype?)
As i said it can be worked but takes extra processing not needed since the engine already has those values...
I just think its better to let the AIs have all the information a human can have without needing to calculate it again (the stuff i mentioned is all chewed up in the engine, all it needs is a call to it)...
My AI aint ahead, because all the unit attacking, defending, construction, defence building, builder management, scouting, teamworking (eg defending allies, coordinating attacks), flanking, resource sharing, resource management, radar construction and usage, porcing etc was all coded in about 150 lines, for testing purposes, which is extremely unflexible and unoptimized!
It will be completely replaced by about 6k-12k lines of real code when im back, so technically im behind with just a skeleton while you all have working AIs...
Dont worry about KAI beating even star ranked players on 2v2s with no handicap, number of wins doesnt mean anything when it only runs 100% never crashing on metal maps and only builds vehicles, plus the humans underestimate the AI and slack, thats what happens... NTAI and AAI are still a lot better and more complete...
So yeah im still behind, wait for me instead of being sad and working over xmas (plleeeaasseee)!
merry xmas!
And devs, ill be counting on you lot
