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

Code:
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:

https://my.mixtape.moe/zbazcy.mp4

For reference here's how he behaves normally:

https://my.mixtape.moe/akfnzo.mp4

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.
Reply
Thanks given by:
#2
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.

Code:
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.
Code:
int ego(){return 0;}
Template/Bandit ai.

Ref: https://www.lf-empire.de/forum/showthread.php?tid=7946
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)