Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions | Variables
mario_actions_object.c File Reference
#include <ultra64.h>
#include "sm64.h"
#include "mario_actions_object.h"
#include "types.h"
#include "mario_step.h"
#include "mario.h"
#include "audio/external.h"
#include "interaction.h"
#include "audio_defines.h"
#include "engine/math_util.h"

Functions

void animated_stationary_ground_step (struct MarioState *m, s32 animation, u32 endAction)
 
s32 mario_update_punch_sequence (struct MarioState *m)
 
s32 act_punching (struct MarioState *m)
 
s32 act_picking_up (struct MarioState *m)
 
s32 act_dive_picking_up (struct MarioState *m)
 
s32 act_placing_down (struct MarioState *m)
 
s32 act_throwing (struct MarioState *m)
 
s32 act_heavy_throw (struct MarioState *m)
 
s32 act_stomach_slide_stop (struct MarioState *m)
 
s32 act_picking_up_bowser (struct MarioState *m)
 
s32 act_holding_bowser (struct MarioState *m)
 
s32 act_releasing_bowser (struct MarioState *m)
 
s32 check_common_object_cancels (struct MarioState *m)
 
s32 mario_execute_object_action (struct MarioState *m)
 

Variables

s8 sPunchingForwardVelocities [8] = { 0, 1, 1, 2, 3, 5, 7, 10 }
 Used by act_punching() to determine Mario's forward velocity during each animation frame. More...
 

Function Documentation

◆ act_dive_picking_up()

s32 act_dive_picking_up ( struct MarioState m)

◆ act_heavy_throw()

s32 act_heavy_throw ( struct MarioState m)

◆ act_holding_bowser()

s32 act_holding_bowser ( struct MarioState m)

◆ act_picking_up()

s32 act_picking_up ( struct MarioState m)

While the animation is playing, it is possible for the used object

◆ act_picking_up_bowser()

s32 act_picking_up_bowser ( struct MarioState m)

◆ act_placing_down()

s32 act_placing_down ( struct MarioState m)

◆ act_punching()

s32 act_punching ( struct MarioState m)

◆ act_releasing_bowser()

s32 act_releasing_bowser ( struct MarioState m)

◆ act_stomach_slide_stop()

s32 act_stomach_slide_stop ( struct MarioState m)

◆ act_throwing()

s32 act_throwing ( struct MarioState m)

◆ animated_stationary_ground_step()

void animated_stationary_ground_step ( struct MarioState m,
s32  animation,
u32  endAction 
)

◆ check_common_object_cancels()

s32 check_common_object_cancels ( struct MarioState m)

◆ mario_execute_object_action()

s32 mario_execute_object_action ( struct MarioState m)

◆ mario_update_punch_sequence()

s32 mario_update_punch_sequence ( struct MarioState m)

Variable Documentation

◆ sPunchingForwardVelocities

s8 sPunchingForwardVelocities[8] = { 0, 1, 1, 2, 3, 5, 7, 10 }

Used by act_punching() to determine Mario's forward velocity during each animation frame.