![]() |
Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
|
Functions | |
void | bhv_pokey_body_part_update (void) |
Update function for pokey body part. More... | |
static void | pokey_act_uninitialized (void) |
When mario gets within range, spawn the 5 body parts and enter the wander action. More... | |
static void | pokey_act_wander (void) |
Wander around, replenishing body parts if they are killed. More... | |
static void | pokey_act_unload_parts (void) |
Move back to home and enter the uninitialized action. More... | |
void | bhv_pokey_update (void) |
Update function for pokey. More... | |
Variables | |
static struct ObjectHitbox | sPokeyBodyPartHitbox |
Behavior for bhvPokey and bhvPokeyBodyPart. More... | |
static u8 | sPokeyBodyPartAttackHandlers [] |
Attack handlers for pokey body part. More... | |
Update function for pokey body part.
The behavior parameter is the body part's index from 0 to 4, with 0 at the top.
It is possible to briefly get two body parts to have the same
This "else if" means that if a body part above the expanding
If you kill a body part as it's expanding, the body part that
Pausing causes jumps in offset angle
When mario gets within range, spawn the 5 body parts and enter the wander action.
Move back to home and enter the uninitialized action.
The pokey body parts check to see if pokey is in this action, and if so, unload themselves.
Wander around, replenishing body parts if they are killed.
When mario moves far away, enter the unload parts action. While wandering, if mario is within 2000 units, try to move toward him. But if mario gets too close, then shy away from him.
|
static |
Attack handlers for pokey body part.
|
static |
Behavior for bhvPokey and bhvPokeyBodyPart.
bhvPokey is responsible for the behavior of the pokey itself, as well as spawning the body parts. Pokey comes before its body parts in processing order, and the body parts are processed top to bottom. Hitbox for a single pokey body part.