Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 07.06.2007, 09:11   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by zcold View Post
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"
this is for Decompiled code? or for AI.obj original code?
HF is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 15:05.