Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ego() messes up stock AI
The following AI script should have no effect on the AI:

int ego() {
    return 0;

However, it completely changes the AI. It's most noticeable with Julian (and other locked characters, though I only tested Justin), because he doesn't use any special moves. It's like he's using Bandit's AI. Here's how he behaves with the above script:

For reference here's how he behaves normally:

I'm using ddraw.dll version 2.2
I get a lot of e-mails that kick off by saying, I"I want to be zort's best bud' but who cares, so do lots of people, you have to more than just want it.
Thanks given by:
Afaik there is no way to build upon an existing AI.

You either have to rewrite everything based over template AI or a blank ai. Or use stock AI for that character.

(06-11-2012, 01:42 PM)YinYin Wrote:  The id() function - this replaces all the characters AI and gives you control over everything it does.

void id(){}
Always static.

(06-11-2012, 01:42 PM)YinYin Wrote:  The ego() function - this function will be called by the original basic AI in case you do not use an id() function.
int ego(){return 0;}
Template/Bandit ai.

[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Thanks given by:

Users browsing this thread: 1 Guest(s)