|
SSBM Decomp
|
Go to the source code of this file.
Variables | |
| ItemStateTable | it_803F5850 [] |
Spawn a box accessory item that follows the parent item.
Returns the spawned gobj, or NULL if parent is invalid.
| void itBox_Logic1_Spawned | ( | Item_GObj * | gobj | ) |
| void itBox_Logic1_Destroyed | ( | Item_GObj * | gobj | ) |
Spawn item(s) from box based on weighted random roll.
arg1/arg2/arg3 are spawn weights, arg4 is additional weight for special roll.
Check if box bounced off a surface nearly upright.
If the bounce angle relative to vertical is below threshold, clear velocity vectors and set ground flag.
| void fn_80286480 | ( | Item_GObj * | gobj | ) |
| void itBox_UnkMotion0_Phys | ( | Item_GObj * | gobj | ) |
| void it_8028655C | ( | Item_GObj * | gobj | ) |
| void itBox_UnkMotion1_Phys | ( | Item_GObj * | gobj | ) |
Physics for thrown box motion.
Applies gravity and updates rotation based on stored rotation velocities (wobble effect when thrown).
| void itBox_Logic1_PickedUp | ( | Item_GObj * | gobj | ) |
| void itBox_UnkMotion2_Phys | ( | Item_GObj * | gobj | ) |
| void itBox_Logic1_Thrown | ( | Item_GObj * | gobj | ) |
| void itBox_UnkMotion4_Phys | ( | Item_GObj * | gobj | ) |
Collision handler for dropped box. Opens on ground/wall contact.
| void itBox_Logic1_Dropped | ( | Item_GObj * | gobj | ) |
Collision handler for thrown box in air.
Checks if landed hard enough to break, otherwise bounces.
| void it_80286AA4 | ( | Item_GObj * | gobj | ) |
Box opens empty (no items spawned).
Clears velocity, sets opened flag, spawns smoke effect (0x78), and transitions to state 6.
| void itBox_UnkMotion6_Phys | ( | Item_GObj * | gobj | ) |
| void it_80286BA0 | ( | Item_GObj * | gobj | ) |
Box opens and spawns items.
Plays sound, triggers camera, spawns items, sets opened flag, and transitions to state 7.
| void itBox_UnkMotion7_Phys | ( | Item_GObj * | gobj | ) |
Handle damage received by box.
When accumulated damage reaches threshold, box breaks open. Weighted random roll determines if items spawn or box is empty. Effect 0x427 is the box breaking visual effect.
| void itBox_Logic1_EnteredAir | ( | Item_GObj * | gobj | ) |
| void itBox_UnkMotion5_Phys | ( | Item_GObj * | gobj | ) |
| void it_802870A4 | ( | Item_GObj * | gobj | ) |
Transition box to state 8 and set accessory callback.
| void itBox_UnkMotion8_Phys | ( | Item_GObj * | gobj | ) |
Physics for floating box (state 8).
Randomly adjusts rotation velocities each frame and applies rotation around X and Y axes.
| void it_8028733C | ( | Item_GObj * | gobj | ) |
Accessory callback - makes item follow its spawned parent item.
Updates position and velocity to track the parent's JObj position.
|
extern |