The Great Plateau barrier: Difference between revisions
→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 ( !sForceEnableGlidingAndSurfingAndGiveRupees && !sIsDungeon ) | ||
{ | { | ||
if ( !getFlag_IsGet_PlayerStole2(false) && | if ( !getFlag_IsGet_PlayerStole2(false) && | ||
Line 25: | Line 25: | ||
} | } | ||
</source> | </source> | ||
A few notes: | |||
* 奈落開始待ち means (roughly) 'wait for abyss start'. It is the name of the [[AIDef:Action/PlayerHellStartWait]] action for the Player_Link aiprog. | |||
* sIsDungeon is set when [[GameScene]] [https://gist.github.com/leoetlino/c3e625367affc6a2dadffb9c92d73f6f generates a stage]. It is true if and only if: | |||
**the map type isn't any of the following type: MarioClubTestDungeon, CDungeon, MainFieldDungeon | |||
**'''and''' (the map type isn't GameTestDungeon) or the map name is ActorViewer or in debug mode{{check}}. | |||
* Essentially, 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: | |||
[[File:The_Great_Plateau_barrier.png|center]] | [[File:The_Great_Plateau_barrier.png|center]] |