Mario Kart 64
Loading...
Searching...
No Matches
ceremony_and_credits.h File Reference
#include "common_structs.h"
#include "camera.h"
Include dependency graph for ceremony_and_credits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  struct_80283431
 
struct  struct_80283430
 
struct  credits_data_1FA0
 
struct  CinematicCamera
 
struct  struct_80282C40
 
struct  struct_80285D80
 
struct  struct_80286A04
 
struct  CutsceneSplinePoint
 
struct  Cutscene
 

Functions

void init_cinematic_camera (void)
 
s32 func_80283648 (Camera *)
 
void vec3f_set_dupe (Vec3f, f32, f32, f32)
 
void vec3s_set_dupe (Vec3s, s16, s16, s16)
 
void vec3f_clear (Vec3f)
 
void vec3s_clear (Vec3s)
 
void vec3f_copy_return_dupe (Vec3f, Vec3f)
 
void vec3s_copy_dupe (Vec3s, Vec3s)
 
void func_80282040 (void)
 
void func_80282048 (void)
 
void func_80282050 (Vec3f, Vec3f, s16)
 
void func_802820F8 (Vec3f, Vec3f, s16)
 
s32 f32_lerp (f32 *, f32, f32)
 
s32 func_80282200 (s16 *, s16, s16)
 
s32 set_transition_colour_fade_alpha_ending (f32 *, f32, f32)
 
s32 func_80282364 (s16 *, s16, s16)
 
void reset_spline (void)
 
void func_80282434 (struct CinematicCamera *)
 
void func_80282454 (Vec3f, Vec3f, f32 *, s16 *, s16 *)
 
void func_80282504 (Vec3f, Vec3f, f32, s16, s16)
 
void func_802825C8 (Vec3f, Vec3f, Vec3f, Vec3s)
 
void func_80282700 (f32, Vec3f, f32 *, f32[], f32[], f32[], f32[])
 
s32 move_point_along_spline (Vec3f, f32 *, struct struct_80283430[], s16 *, f32 *)
 
void func_80282BE4 (struct struct_80283430 *, s8, u8, s8, Vec3s, s32)
 
void func_80282C40 (struct struct_80283430 *, struct struct_80282C40 *, s32)
 
s32 func_80282D90 (struct CinematicCamera *, struct struct_80286A04 *, struct struct_80286A04 *, s32)
 
void func_80282E58 (struct CinematicCamera *, struct struct_80282C40 *, s32)
 
void func_80282EAC (s32, struct CinematicCamera *, s16, s16, s16)
 
void func_80282F00 (s16 *, s16)
 
void func_80282F44 (s32, struct CinematicCamera *, Camera *)
 
void func_802830B4 (struct CinematicCamera *, s16, s16, s16)
 
void func_80283100 (struct CinematicCamera *, f32 *)
 
void func_80283240 (s16)
 
s32 cutscene_event (CameraEvent event, struct CinematicCamera *, s16, s16)
 
s32 func_80283330 (s32)
 
s32 func_8028336C (struct CinematicCamera *, Camera *)
 
s32 func_80283428 (void)
 
void func_80283968 (struct CinematicCamera *)
 
void func_80283994 (struct CinematicCamera *)
 
void func_802839B4 (struct CinematicCamera *)
 
void func_802839CC (struct CinematicCamera *)
 
void func_802839E0 (struct CinematicCamera *)
 
void play_sound_welcome (struct CinematicCamera *)
 
void func_80283A34 (struct CinematicCamera *)
 
void play_sound_congratulation (struct CinematicCamera *)
 
void play_sound_balloon_pop (struct CinematicCamera *)
 
void play_sound_fish (struct CinematicCamera *)
 
void play_sound_fish_2 (struct CinematicCamera *)
 
void play_sound_shoot_trophy (struct CinematicCamera *)
 
void play_sound_podium (struct CinematicCamera *)
 
void play_sound_trophy (struct CinematicCamera *)
 
void func_80283A54 (struct CinematicCamera *)
 
void func_80283A7C (struct CinematicCamera *)
 
void func_80283B6C (struct CinematicCamera *)
 
void func_80283BA4 (struct CinematicCamera *)
 
void func_80283BF0 (struct CinematicCamera *)
 
void func_80283C14 (struct CinematicCamera *)
 
void func_80283C38 (struct CinematicCamera *)
 
void func_80283C58 (struct CinematicCamera *)
 
void func_80283C78 (struct CinematicCamera *)
 
void func_80283CA8 (struct CinematicCamera *)
 
void func_80283CD0 (struct CinematicCamera *)
 
void play_sound_farewell (struct CinematicCamera *)
 
void func_80283D2C (struct CinematicCamera *)
 
void func_80283EA0 (struct CinematicCamera *)
 
void func_80283ED0 (struct CinematicCamera *)
 
void func_80283EF8 (struct CinematicCamera *)
 
void func_80283F6C (struct CinematicCamera *)
 
void func_80283FCC (struct CinematicCamera *)
 
void func_80283FF4 (struct CinematicCamera *)
 
void func_80284068 (struct CinematicCamera *)
 
void func_802840C8 (struct CinematicCamera *)
 
void func_80284154 (struct CinematicCamera *)
 
void func_80284184 (struct CinematicCamera *)
 
void func_802841E8 (struct CinematicCamera *)
 
void func_8028422C (struct CinematicCamera *)
 
void func_802842A8 (struct CinematicCamera *)
 
void func_802842D8 (struct CinematicCamera *)
 
void func_80284308 (struct CinematicCamera *)
 
void func_80284418 (struct CinematicCamera *)
 
void func_80284494 (struct CinematicCamera *)
 
void func_802844FC (struct CinematicCamera *)
 
void func_8028454C (struct CinematicCamera *)
 
void func_802845EC (struct CinematicCamera *)
 
void func_8028461C (struct CinematicCamera *)
 
void func_80284648 (struct CinematicCamera *)
 
void func_802846AC (void)
 
void func_802846B4 (struct CinematicCamera *)
 
void func_802846E4 (struct CinematicCamera *)
 
void func_802847CC (struct CinematicCamera *)
 
void play_cutscene (struct CinematicCamera *)
 
void transition_sliding_borders (void)
 

Variables

s32 D_80283FCC
 
s32 D_80283FF4
 
f32 D_802856B0
 
f32 D_802856B4
 
f32 D_802856B8
 
f32 D_802856BC
 
f32 D_802856C0
 
s32 D_802856C4
 
s32 D_802856C8 []
 
s16 sCutsceneShot
 
s16 gCutsceneShotTimer
 
s32 D_802876D4
 
s32 D_802876D8
 
s32 D_802876DC
 
struct CinematicCamera D_802876E0
 
struct struct_80283431 D_80287750 []
 
struct struct_80283430 D_80287818 []
 
struct struct_80283430 D_80287998 []
 
f32 sCutsceneSplineSegmentProgress
 
s16 sCutsceneSplineSegment
 
s16 D_80287B1E
 
s8 D_80287B20
 
struct struct_80282C40 D_802856DC []
 
struct struct_80282C40 D_80285718 []
 
struct struct_80282C40 D_80285754 []
 
struct struct_80282C40 D_80285784 []
 
struct struct_80282C40 D_802857B4 []
 
struct struct_80282C40 D_802857CC []
 
struct struct_80282C40 D_802857F0 []
 
struct struct_80282C40 D_80285850 []
 
struct struct_80282C40 D_802858B0 []
 
struct struct_80282C40 D_802858C8 []
 
struct struct_80282C40 D_80285910 []
 
struct struct_80282C40 D_80285928 []
 
struct struct_80282C40 D_80285940 []
 
struct struct_80282C40 D_80285A10 []
 
struct struct_80282C40 D_80285A4C []
 
struct struct_80282C40 D_80285A88 []
 
struct struct_80282C40 D_80285AB8 []
 
struct struct_80282C40 D_80285AE8 []
 
struct struct_80282C40 D_80285B00 []
 
struct struct_80282C40 D_80285B18 []
 
struct struct_80282C40 D_80285B54 []
 
struct struct_80282C40 D_80285B90 []
 
struct struct_80282C40 D_80285BA8 []
 
struct struct_80282C40 D_80285C38 []
 
struct struct_80282C40 D_80285C74 []
 
struct Cutscene D_80285D10 []
 
s16 D_80285D14
 

Function Documentation

◆ cutscene_event()

s32 cutscene_event ( CameraEvent event,
struct CinematicCamera * camera,
s16 start,
s16 end )

Call the event while start <= gCutsceneShotTimer <= end If end is -1, call for the rest of the shot.

Here is the caller graph for this function:

◆ f32_lerp()

s32 f32_lerp ( f32 * dest,
f32 src,
f32 lerp )

Target f32 at given rate. Used for targeting playerTwo and playerThree. Also targets the trophy.

Here is the caller graph for this function:

◆ func_80282040()

void func_80282040 ( void )

◆ func_80282048()

void func_80282048 ( void )

◆ func_80282050()

void func_80282050 ( Vec3f dest,
Vec3f src,
s16 angle )
Here is the call graph for this function:

◆ func_802820F8()

void func_802820F8 ( Vec3f ,
Vec3f ,
s16  )

◆ func_80282200()

s32 func_80282200 ( s16 * ,
s16 ,
s16  )

◆ func_80282364()

s32 func_80282364 ( s16 * arg0,
s16 arg1,
s16 arg2 )
Here is the caller graph for this function:

◆ func_80282434()

void func_80282434 ( struct CinematicCamera * )

◆ func_80282454()

void func_80282454 ( Vec3f arg0,
Vec3f arg1,
f32 * distance,
s16 * arg3,
s16 * arg4 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80282504()

void func_80282504 ( Vec3f arg0,
Vec3f arg1,
f32 arg2,
s16 arg3,
s16 arg4 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_802825C8()

void func_802825C8 ( Vec3f arg0,
Vec3f arg1,
Vec3f arg2,
Vec3s arg3 )
Here is the call graph for this function:

◆ func_80282700()

void func_80282700 ( f32 arg0,
Vec3f arg1,
f32 * arg2,
f32 arg3[],
f32 arg4[],
f32 arg5[],
f32 arg6[] )
Here is the caller graph for this function:

◆ func_80282BE4()

void func_80282BE4 ( struct struct_80283430 * arg0,
s8 arg1,
u8 arg2,
s8 arg3,
Vec3s arg4,
s32 arg5 )
Here is the caller graph for this function:

◆ func_80282C40()

void func_80282C40 ( struct struct_80283430 * arg0,
struct struct_80282C40 * arg1,
s32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80282D90()

s32 func_80282D90 ( struct CinematicCamera * camera,
struct struct_80286A04 * arg1,
struct struct_80286A04 * arg2,
s32 arg3 )
Todo
Cast to normal Camera? Or from CinematicCamera?
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80282E58()

void func_80282E58 ( struct CinematicCamera * camera,
struct struct_80282C40 * arg1,
s32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80282EAC()

void func_80282EAC ( s32 arg0,
struct CinematicCamera * arg1,
s16 arg2,
s16 arg3,
s16 arg4 )
Here is the caller graph for this function:

◆ func_80282F00()

void func_80282F00 ( s16 * arg0,
s16 arg1 )
Here is the caller graph for this function:

◆ func_80282F44()

void func_80282F44 ( s32 arg0,
struct CinematicCamera * arg1,
Camera * camera )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_802830B4()

void func_802830B4 ( struct CinematicCamera * arg0,
s16 arg1,
s16 arg2,
s16 arg3 )
Here is the caller graph for this function:

◆ func_80283100()

void func_80283100 ( struct CinematicCamera * arg0,
f32 * arg1 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283240()

void func_80283240 ( s16 arg0)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283330()

s32 func_80283330 ( s32 arg0)
Here is the caller graph for this function:

◆ func_8028336C()

s32 func_8028336C ( struct CinematicCamera * ,
Camera *  )

◆ func_80283428()

s32 func_80283428 ( void )
Here is the caller graph for this function:

◆ func_80283648()

s32 func_80283648 ( Camera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283968()

void func_80283968 ( struct CinematicCamera * )

◆ func_80283994()

void func_80283994 ( struct CinematicCamera * )

◆ func_802839B4()

void func_802839B4 ( struct CinematicCamera * )

◆ func_802839CC()

void func_802839CC ( struct CinematicCamera * )

◆ func_802839E0()

void func_802839E0 ( struct CinematicCamera * )

◆ func_80283A34()

void func_80283A34 ( struct CinematicCamera * )

◆ func_80283A54()

void func_80283A54 ( struct CinematicCamera * )

◆ func_80283A7C()

void func_80283A7C ( struct CinematicCamera * )

◆ func_80283B6C()

void func_80283B6C ( struct CinematicCamera * )

◆ func_80283BA4()

void func_80283BA4 ( struct CinematicCamera * )

◆ func_80283BF0()

void func_80283BF0 ( struct CinematicCamera * )

◆ func_80283C14()

void func_80283C14 ( struct CinematicCamera * )

◆ func_80283C38()

void func_80283C38 ( struct CinematicCamera * )

◆ func_80283C58()

void func_80283C58 ( struct CinematicCamera * )

◆ func_80283C78()

void func_80283C78 ( struct CinematicCamera * )

◆ func_80283CA8()

void func_80283CA8 ( struct CinematicCamera * )

◆ func_80283CD0()

void func_80283CD0 ( struct CinematicCamera * )

◆ func_80283D2C()

void func_80283D2C ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80283EA0()

void func_80283EA0 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283ED0()

void func_80283ED0 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283EF8()

void func_80283EF8 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283F6C()

void func_80283F6C ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283FCC()

void func_80283FCC ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80283FF4()

void func_80283FF4 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80284068()

void func_80284068 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_802840C8()

void func_802840C8 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80284154()

void func_80284154 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80284184()

void func_80284184 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_802841E8()

void func_802841E8 ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8028422C()

void func_8028422C ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802842A8()

void func_802842A8 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802842D8()

void func_802842D8 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80284308()

void func_80284308 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80284418()

void func_80284418 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_80284494()

void func_80284494 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802844FC()

void func_802844FC ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_8028454C()

void func_8028454C ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802845EC()

void func_802845EC ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8028461C()

void func_8028461C ( struct CinematicCamera * camera)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80284648()

void func_80284648 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802846AC()

void func_802846AC ( void )

◆ func_802846B4()

void func_802846B4 ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ func_802846E4()

void func_802846E4 ( struct CinematicCamera * camera)
Todo
What does this even do?
Here is the call graph for this function:

◆ func_802847CC()

void func_802847CC ( struct CinematicCamera * camera)
Here is the call graph for this function:

◆ init_cinematic_camera()

void init_cinematic_camera ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ move_point_along_spline()

s32 move_point_along_spline ( Vec3f p,
f32 * arg1,
struct struct_80283430 spline[],
s16 * splineSegment,
f32 * progress )

Computes the point that is progress percent of the way through segment splineSegment of spline, and stores the result in p. progress and splineSegment are updated if progress becomes >= 1.0.

When neither of the next two points' speeds == 0, the number of frames is between 1 and 255. Otherwise it's infinite.

To calculate the number of frames it will take to progress through a spline segment: If the next two speeds are the same and nonzero, it's 1.0 / firstSpeed.

s1 and s2 are short hand for first/secondSpeed. The progress at any frame n is defined by a recurrency relation: p(n+1) = (s2 - s1 + 1) * p(n) + s1 Which can be written as p(n) = (s2 * ((s2 - s1 + 1)^(n) - 1)) / (s2 - s1)

Solving for the number of frames: n = log(((s2 - s1) / s1) + 1) / log(s2 - s1 + 1)

Returns
1 if the point has reached the end of the spline, when progress reaches 1.0 or greater, and the 4th CutsceneSplinePoint in the current segment away from spline[splineSegment] has an index of -1.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ play_cutscene()

void play_cutscene ( struct CinematicCamera * camera)

Play the current cutscene until either gCutsceneShotTimer reaches the max time, or c->cutscene is set to 0

Here is the call graph for this function:
Here is the caller graph for this function:

◆ play_sound_balloon_pop()

void play_sound_balloon_pop ( struct CinematicCamera * )

◆ play_sound_congratulation()

void play_sound_congratulation ( struct CinematicCamera * )

◆ play_sound_farewell()

void play_sound_farewell ( struct CinematicCamera * )

◆ play_sound_fish()

void play_sound_fish ( struct CinematicCamera * )

◆ play_sound_fish_2()

void play_sound_fish_2 ( struct CinematicCamera * )

◆ play_sound_podium()

void play_sound_podium ( struct CinematicCamera * )

◆ play_sound_shoot_trophy()

void play_sound_shoot_trophy ( struct CinematicCamera * )

◆ play_sound_trophy()

void play_sound_trophy ( struct CinematicCamera * )

◆ play_sound_welcome()

void play_sound_welcome ( struct CinematicCamera * )

◆ reset_spline()

void reset_spline ( void )
Here is the caller graph for this function:

◆ set_transition_colour_fade_alpha_ending()

s32 set_transition_colour_fade_alpha_ending ( f32 * arg0,
f32 arg1,
f32 arg2 )
Here is the caller graph for this function:

◆ transition_sliding_borders()

void transition_sliding_borders ( void )

Scene transition

Sliding black borders that open horizontally to display scene. Used at the beginning of award ceremony and throughout credits.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vec3f_clear()

void vec3f_clear ( Vec3f arg0)
Here is the caller graph for this function:

◆ vec3f_copy_return_dupe()

void vec3f_copy_return_dupe ( Vec3f dest,
Vec3f src )
Here is the caller graph for this function:

◆ vec3f_set_dupe()

void vec3f_set_dupe ( Vec3f dest,
f32 arg1,
f32 arg2,
f32 arg3 )
Here is the caller graph for this function:

◆ vec3s_clear()

void vec3s_clear ( Vec3s arg0)
Here is the caller graph for this function:

◆ vec3s_copy_dupe()

void vec3s_copy_dupe ( Vec3s dest,
Vec3s src )

◆ vec3s_set_dupe()

void vec3s_set_dupe ( Vec3s dest,
s16 arg1,
s16 arg2,
s16 arg3 )

Variable Documentation

◆ D_80283FCC

s32 D_80283FCC
extern

◆ D_80283FF4

s32 D_80283FF4
extern

◆ D_802856B0

f32 D_802856B0
extern

◆ D_802856B4

f32 D_802856B4
extern

◆ D_802856B8

f32 D_802856B8
extern

◆ D_802856BC

f32 D_802856BC
extern

◆ D_802856C0

f32 D_802856C0
extern

◆ D_802856C4

s32 D_802856C4
extern

◆ D_802856C8

s32 D_802856C8[]
extern

◆ D_802856DC

struct struct_80282C40 D_802856DC[]
extern

◆ D_80285718

struct struct_80282C40 D_80285718[]
extern

◆ D_80285754

struct struct_80282C40 D_80285754[]
extern

◆ D_80285784

struct struct_80282C40 D_80285784[]
extern

◆ D_802857B4

struct struct_80282C40 D_802857B4[]
extern

◆ D_802857CC

struct struct_80282C40 D_802857CC[]
extern

◆ D_802857F0

struct struct_80282C40 D_802857F0[]
extern

◆ D_80285850

struct struct_80282C40 D_80285850[]
extern

◆ D_802858B0

struct struct_80282C40 D_802858B0[]
extern

◆ D_802858C8

struct struct_80282C40 D_802858C8[]
extern

◆ D_80285910

struct struct_80282C40 D_80285910[]
extern

◆ D_80285928

struct struct_80282C40 D_80285928[]
extern

◆ D_80285940

struct struct_80282C40 D_80285940[]
extern

◆ D_80285A10

struct struct_80282C40 D_80285A10[]
extern

◆ D_80285A4C

struct struct_80282C40 D_80285A4C[]
extern

◆ D_80285A88

struct struct_80282C40 D_80285A88[]
extern

◆ D_80285AB8

struct struct_80282C40 D_80285AB8[]
extern

◆ D_80285AE8

struct struct_80282C40 D_80285AE8[]
extern

◆ D_80285B00

struct struct_80282C40 D_80285B00[]
extern

◆ D_80285B18

struct struct_80282C40 D_80285B18[]
extern

◆ D_80285B54

struct struct_80282C40 D_80285B54[]
extern

◆ D_80285B90

struct struct_80282C40 D_80285B90[]
extern

◆ D_80285BA8

struct struct_80282C40 D_80285BA8[]
extern

◆ D_80285C38

struct struct_80282C40 D_80285C38[]
extern

◆ D_80285C74

struct struct_80282C40 D_80285C74[]
extern

◆ D_80285D10

struct Cutscene D_80285D10[]
extern

◆ D_80285D14

s16 D_80285D14
extern

◆ D_802876D4

s32 D_802876D4
extern

◆ D_802876D8

s32 D_802876D8
extern

◆ D_802876DC

s32 D_802876DC
extern

◆ D_802876E0

struct CinematicCamera D_802876E0
extern

◆ D_80287750

struct struct_80283431 D_80287750[]
extern

◆ D_80287818

struct struct_80283430 D_80287818[]
extern

◆ D_80287998

struct struct_80283430 D_80287998[]
extern

◆ D_80287B1E

s16 D_80287B1E
extern

◆ D_80287B20

s8 D_80287B20
extern

◆ gCutsceneShotTimer

s16 gCutsceneShotTimer
extern

◆ sCutsceneShot

s16 sCutsceneShot
extern

◆ sCutsceneSplineSegment

s16 sCutsceneSplineSegment
extern

◆ sCutsceneSplineSegmentProgress

f32 sCutsceneSplineSegmentProgress
extern