ego() messes up stock AI - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: AI Scripting (https://lf-empire.de/forum/forumdisplay.php?fid=56) +--- Thread: ego() messes up stock AI (/showthread.php?tid=10939) |
ego() messes up stock AI - zort - 11-12-2018 The following AI script should have no effect on the AI: Code: int ego() { 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 RE: ego() messes up stock AI - mfc - 11-13-2018 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(){} (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;} Ref: https://www.lf-empire.de/forum/showthread.php?tid=7946 |