Created
October 1, 2020 16:59
-
-
Save leoetlino/01019ce56b4a2fd133e01210bba9a063 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __cdecl AI_Query_Check100EnemyActiveTiming::doQuery(__int64 x0_0) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
v1 = j_getCurrentMapType(); | |
v1->vptr->assureTermination(v1); | |
v1->vptr->assureTermination(v1); | |
v2 = v1->cstr; | |
if ( v2 != "MainField" ) | |
{ | |
v3 = 0LL; | |
do | |
{ | |
v4 = (unsigned __int8)v2[v3]; | |
if ( v4 != (unsigned __int8)aMainfield[v3] ) | |
break; | |
if ( v4 == (unsigned __int8)sead::SafeStringBase<char>::cNullChar ) | |
goto LABEL_7; | |
++v3; | |
} | |
while ( v3 <= 0x80000 ); | |
return 0; | |
} | |
LABEL_7: | |
if ( aocManager::sInstance->version < 0x200 ) | |
return 0; | |
v5 = getFlag_100enemy_Activated(0); | |
result = 0; | |
if ( v5 ) | |
return result; | |
v7 = getFlag_IsGet_Weapon_Sword_070(0); | |
result = 0; | |
if ( !v7 ) | |
return result; | |
v8 = getFlag_IsPlayed_Demo146_0(0); | |
result = 0; | |
if ( v8 ) | |
return result; | |
a2 = 0.0; | |
*(_QWORD *)a1 = 0LL; | |
if ( !(ActorSystem::getPlayerPosition(ActorSystem::sInstance, (Vec3 *)a1) & 1) ) | |
return 0; | |
if ( eco::getCurrentAreaNum(a1[0], a2, Ecosystem::sInstance, &Ecosystem::sInstance->fieldMapArea) == 14 ) | |
result = 2; | |
else | |
result = 1; | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment