![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
Functions | |
void | bhv_ttc_moving_bar_init (void) |
Init function for bhvTTCMovingBar. More... | |
static void | ttc_moving_bar_act_wait (void) |
Wait a delay if necessary, then begin pulling back. More... | |
static void | ttc_moving_bar_act_pull_back (void) |
Pull back, possibly stop for a bit, then begin extending. More... | |
static void | ttc_moving_bar_reset (void) |
Reset and enter the wait action. More... | |
static void | ttc_moving_bar_act_extend (void) |
With 25% probability on random setting, stop at 0 and reset. More... | |
static void | ttc_moving_bar_act_retract (void) |
Wait a second, then retract back into the wall. More... | |
void | bhv_ttc_moving_bar_update (void) |
Update function for bhvTTCMovingBar. More... | |
Variables | |
static s16 | sTTCMovingBarDelays [] |
Behavior for bhvTTCMovingBar. More... | |
static s8 | sTTCMovingBarRandomDelays [] = { 1, 12, 55, 100 } |
The possible delays before each cycle while on random setting. More... | |
With 25% probability on random setting, stop at 0 and reset.
Otherwise, launch outward, oscillating and slowing down around 250, then begin retracting.
Pull back, possibly stop for a bit, then begin extending.
Wait a second, then retract back into the wall.
Wait a delay if necessary, then begin pulling back.
|
static |
Behavior for bhvTTCMovingBar.
The delay before each cycle on each setting. On random setting, this is overwritten with one of the below delays after the first cycle.
|
static |
The possible delays before each cycle while on random setting.