The Great Plateau barrier: Difference between revisions

no edit summary
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 1: Line 1:
The thing to know about the Great Plateau kill fog and box is that they both disappear after you get the paraglider. The corresponding flag is called <code>IsGet_PlayerStole2</code>.
'''The Great Plateau barrier''' prevents Link from leaving the Great Plateau before he has acquired the paraglider.


As it turns out, that GameData flag is only checked by 5 functions in the entire program. One of them is the [[AIDef:AI/PlayerNormal]] code which is responsible for handling events for the GameROMPlayer (Link) actor.
== Implementation ==
The barrier is implemented by two layers: one is a collision-based check (the voidout fog), another is hardcoded into Link's actor code.
 
The thing to know about the Great Plateau kill fog and box is that they both disappear after you get the paraglider. The corresponding GameData flag is called <code>IsGet_PlayerStole2</code>.
 
=== Fog ===
This one is simple: Link will void out as soon as he touches it. The fog is a regular [[map unit]] actor that spawns whenever IsGet_PlayerStole2 is not set.
 
=== Actor code ===
Even if the fog is removed or if the player manages to avoid the fog (by stasis launching for example), Link will still void out when he gets too far away from the Plateau.
 
As it turns out, IsGet_PlayerStole2 is also checked by the [[executable]]. More precisely, its value is queried by 5 functions in the entire program. One of them is the [[AIDef:AI/PlayerNormal]] code which is responsible for handling events for the GameROMPlayer (Link) actor.


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:
Anonymous user