The Great Plateau barrier: Difference between revisions

Jump to navigation Jump to search
imported>Leoetlino
imported>Leoetlino
Line 16: Line 16:
In that large AI function, the following piece of code can be seen:
In that large AI function, the following piece of code can be seen:
<source lang="c++">
<source lang="c++">
if ( !isDebug1 && !isDebug2 )
if ( !sIsDebug1 && !sIsDebug2 )
{
{
   if ( !hasParaglider(0) &&
   if ( !getFlag_IsGet_PlayerStole2(false) &&
       (x < -1600.0 || x > -350.0 || z < 1400.0 || z > 2400.0) )
       (x < -1600.0 || x > -350.0 || z < 1400.0 || z > 2400.0) )
   {
   {
     ...
     ...
    // 奈落開始待ち means 'wait for abyss start' (= voidout)
     return AI_AIBase::changeState(this, "奈落開始待ち", 0);
     return changeState(v1, "奈落開始待ち", 0);
   }
   }
}
</source>
</source>
(奈落開始待ち means (roughly) 'wait for abyss start'. It is the name of the [[AIDef:Action/PlayerHellStartWait]] action for the Player_Link aiprog.)
What this piece of code does is force Link to void out if (a) debug flags aren't set, (b) he doesn't have the paraglider, (c) Link's coordinates are not inside this rectangle:
What this piece of code does is force Link to void out if (a) debug flags aren't set, (b) he doesn't have the paraglider, (c) Link's coordinates are not inside this rectangle:


Anonymous user

Navigation menu