The Great Plateau barrier: Difference between revisions
Jump to navigation
Jump to search
→Actor code
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 ( ! | if ( !sIsDebug1 && !sIsDebug2 ) | ||
{ | { | ||
if ( ! | 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) ) | ||
{ | { | ||
... | ... | ||
return AI_AIBase::changeState(this, "奈落開始待ち", 0); | |||
return changeState( | |||
} | } | ||
</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: | ||