hey all!
everybody knows, that NC uses some "source code" to compile ai.obj
and not a secret, that they use some variables (multipliers) to tune it before production release.
in compilied ai it's looks like:
myself.AddTimerEx(1001, 10 * 60 * 1000);
or
if (myself.sm.hp < myself.sm.max_hp * 2.000000 / 4.000000) { }
The result of 10*60*1000 is always same. And result of 2/4 is always same.
So, why we need to do this calculations every time handler called?
Here is some tool to check your AI for things like that:
http://dev.blacksun.com.ua/download/bsaic.exe
In my AI, I found more than 9k of this "things to optimize".
This is alpha version of tool, so check your AI before sending to production.
Source file must be saved in ascii.
Sorry for "bad english"
