05-22-2015, 07:58 AM
Could you give a complete example?
You posted only a snippet of code, and I do not see any problems with it, so my guess is that your problem lies elsewhere.
Also, [code=ai] is a thing, and so are indentations:
You posted only a snippet of code, and I do not see any problems with it, so my guess is that your problem lies elsewhere.
Also, [code=ai] is a thing, and so are indentations:
AI-Code:
for (int i = 0; i < 400; ++i) { if (loadTarget(i) == 0 ) { if (target.id==74 && target.team == self.team) { //2 COMs if (i > 8 && target.id==74 && (abs(self.z-target.z) < 5) && abs(self.x-target.x) > 75 && abs(self.x-target.x) < 400 && difficulty==-1) { DdA(); } //Human + COM if (target.id == 74 && target.frame > 356 && target.frame < 369 && (abs(self.z-target.z) < 5) && abs(self.x-target.x) > 100 && abs(self.x-target.x) < 475) { DdA(); } } } } |
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.