Oh
I'm outa ideas, usage of that function seems fine compared to old Ai examples :<
Before starting this thread I checked Suron's decompiled C4 AI and find out that 90% uses of GetAbnormalLevel function looks like this:
i1 = myself::GetAbnormalLevel( speller, myself::Skill_GetAbnormalType( DeBuff1 ) );
if( i1 == -1 )
{
// some code
}
else if( i1 == 10 )
{
}
or like this:
if( myself::GetAbnormalLevel( myself.sm, myself::Skill_GetAbnormalType( SpecialSkill ) ) <= 0 )
{
// some code
}
It checks the negative value of function, and.. if the function always returns -1 then 90% of code works fine. :)
Soo.. I'm outa ideas too now :D
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-25-2009, 06:24 PM. Открыть источник.