![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
Functions | |
void | bhv_purple_switch_loop (void) |
Behavior for bhvFloorSwitchHardcodedModel, bhvFloorSwitchGrills, and bhvFloorSwitchAnimatesObject. More... | |
Behavior for bhvFloorSwitchHardcodedModel, bhvFloorSwitchGrills, and bhvFloorSwitchAnimatesObject.
This controls the purple switches that Mario can step on to affect parts of the environment.
Set the switch's model and scale. If Mario is standing near the switch's middle section, transition to the pressed state.
Collapse the switch downward, play a sound, and shake the screen. Immediately transition to the ticking state.
Play a continuous ticking sound that gets faster when time is almost up. When time is up, move to a waiting-while-pressed state.
Make the switch look unpressed again, and transition back to the idle state.
Mario is standing on the switch, but time has expired. Wait for him to get off the switch, and when he does so, transition to the unpressed state.