Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] loadtarget problem
#2
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:
    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.
Reply
Thanks given by:


Messages In This Thread
[solved] loadtarget problem - by bashscrazy - 05-22-2015, 12:01 AM
RE: loadtarget problem - by Som1Lse - 05-22-2015, 07:58 AM
RE: loadtarget problem - by bashscrazy - 05-22-2015, 12:47 PM
RE: loadtarget problem - by YinYin - 05-22-2015, 12:55 PM
RE: loadtarget problem - by Som1Lse - 05-22-2015, 01:03 PM



Users browsing this thread: 1 Guest(s)