Mario Kart 64
Loading...
Searching...
No Matches
spawn_players.c File Reference
#include <defines.h>
#include <mk64.h>
#include <stubs.h>
#include "networking/networking.h"
#include "spawn_players.h"
#include "code_800029B0.h"
#include "kart_attributes.h"
#include "memory.h"
#include "waypoints.h"
#include "buffers.h"
#include "kart_dma.h"
#include "camera.h"
#include "math_util.h"
#include "player_controller.h"
#include "code_80057C60.h"
#include "collision.h"
#include "render_courses.h"
#include "replays.h"
#include "code_80005FD0.h"
#include "render_player.h"
#include "podium_ceremony_actors.h"
#include "main.h"
#include "menus.h"
#include "menu_items.h"
#include "effects.h"
#include "decode.h"
#include "port/Game.h"
Include dependency graph for spawn_players.c:

Macros

#define calc_a(x, y, x2, y2)
 
#define calc_b(x, y, b)
 
#define calc(table, field)
 

Functions

void spawn_player (Player *player, s8 playerIndex, f32 startingRow, f32 startingColumn, f32 arg4, f32 arg5, u16 characterId, s16 playerType)
 
void func_80039AE4 (void)
 
void func_80039DA4 (void)
 
void spawn_players_gp_one_player (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_versus_one_player (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_gp_two_player (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_versus_two_player (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_2p_battle (f32 *arg0, f32 *arg1, f32 arg2)
 
void func_8003B318 (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_3p_battle (f32 *arg0, f32 *arg1, f32 arg2)
 
void func_8003B870 (f32 *arg0, f32 *arg1, f32 arg2)
 
void spawn_players_4p_battle (f32 *arg0, f32 *arg1, f32 arg2)
 
void func_8003BE30 (void)
 
void func_8003C0F0 (void)
 
void func_8003CD78 (void)
 
void func_8003CD98 (Player *player, Camera *camera, s8 playerId, s8 screenId)
 
void func_8003D080 (void)
 
void func_8003DB5C (void)
 

Variables

f32 D_80165210 [8]
 
f32 D_80165230 [8]
 
UNUSED f32 D_80165250 [8]
 
s16 D_80165270 [8]
 
f32 gPlayerCurrentSpeed [8]
 
f32 gPlayerWaterLevel [8]
 
s32 D_801652C0 [8]
 
s32 D_801652E0 [8]
 
s16 D_80165300 [8]
 
u16 gCopyPathIndexByPlayerId [8]
 
s16 gCopyNearestWaypointByPlayerId [8]
 
s16 D_80165330 [8]
 
s16 D_80165340
 
UNUSED s32 D_80165348 [29]
 
PlayerD_801653C0 [8]
 
bool gPlayerIsThrottleActive [8]
 
s32 gPlayerAButtonComboActiveThisFrame [8]
 
s32 gFrameSinceLastACombo [8]
 
s32 gCountASwitch [8]
 
bool gIsPlayerTripleAButtonCombo [8]
 
s32 gTimerBoostTripleACombo [8]
 
bool gPlayerIsBrakeActive [8]
 
s32 gPlayerBButtonComboActiveThisFrame [8]
 
s32 gFrameSinceLastBCombo [8]
 
s32 gCountBChangement [8]
 
bool gIsPlayerTripleBButtonCombo [8]
 
s32 gTimerBoostTripleBCombo [8]
 
s16 chooseCPUPlayers [7]
 
s16 D_8016556E
 
s16 D_80165570
 
s16 D_80165572
 
s16 D_80165574
 
s16 D_80165576
 
s16 D_80165578
 
s16 D_8016557A
 
s16 D_8016557C
 
s16 D_8016557E
 
s16 D_80165580
 
s16 D_80165582
 
UNUSED f32 D_800E43A0 = 1.0f
 
UNUSED s16 D_800E43A4 = 1
 
UNUSED s16 D_800E43A8 = 0
 

Macro Definition Documentation

◆ calc

#define calc ( table,
field )
Value:
a = calc_a(50, table[CC_50][player->characterId], 150, table[CC_150][player->characterId]); \
b = calc_b(50, table[CC_50][player->characterId], a); \
player->field = a * CVarGetFloat("gCustomCC", 150.0f) + b;
#define calc_a(x, y, x2, y2)
#define calc_b(x, y, b)
#define CC_50
Options for gCCSelection CC stands for cubic-centimetres. It measures engine displacement composed fr...
Definition defines.h:157
#define CC_150
Definition defines.h:159

◆ calc_a

#define calc_a ( x,
y,
x2,
y2 )
Value:
(y2 - y) / (x2 - x)

◆ calc_b

#define calc_b ( x,
y,
b )
Value:
y - (b * x)

Function Documentation

◆ func_80039AE4()

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

◆ func_80039DA4()

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

◆ func_8003B318()

void func_8003B318 ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8003B870()

void func_8003B870 ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8003BE30()

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

◆ func_8003C0F0()

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

◆ func_8003CD78()

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

◆ func_8003CD98()

void func_8003CD98 ( Player * player,
Camera * camera,
s8 playerId,
s8 screenId )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_8003D080()

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

◆ func_8003DB5C()

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

◆ spawn_player()

void spawn_player ( Player * player,
s8 playerIndex,
f32 startingRow,
f32 startingColumn,
f32 arg4,
f32 arg5,
u16 characterId,
s16 playerType )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_2p_battle()

void spawn_players_2p_battle ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_3p_battle()

void spawn_players_3p_battle ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_4p_battle()

void spawn_players_4p_battle ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_gp_one_player()

void spawn_players_gp_one_player ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_gp_two_player()

void spawn_players_gp_two_player ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_versus_one_player()

void spawn_players_versus_one_player ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spawn_players_versus_two_player()

void spawn_players_versus_two_player ( f32 * arg0,
f32 * arg1,
f32 arg2 )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ chooseCPUPlayers

s16 chooseCPUPlayers[7]

◆ D_800E43A0

UNUSED f32 D_800E43A0 = 1.0f

◆ D_800E43A4

UNUSED s16 D_800E43A4 = 1

◆ D_800E43A8

UNUSED s16 D_800E43A8 = 0

◆ D_80165210

f32 D_80165210[8]

◆ D_80165230

f32 D_80165230[8]

◆ D_80165250

UNUSED f32 D_80165250[8]

◆ D_80165270

s16 D_80165270[8]

◆ D_801652C0

s32 D_801652C0[8]

◆ D_801652E0

s32 D_801652E0[8]

◆ D_80165300

s16 D_80165300[8]

◆ D_80165330

s16 D_80165330[8]

◆ D_80165340

s16 D_80165340

◆ D_80165348

UNUSED s32 D_80165348[29]

◆ D_801653C0

Player* D_801653C0[8]

◆ D_8016556E

s16 D_8016556E

◆ D_80165570

s16 D_80165570

◆ D_80165572

s16 D_80165572

◆ D_80165574

s16 D_80165574

◆ D_80165576

s16 D_80165576

◆ D_80165578

s16 D_80165578

◆ D_8016557A

s16 D_8016557A

◆ D_8016557C

s16 D_8016557C

◆ D_8016557E

s16 D_8016557E

◆ D_80165580

s16 D_80165580

◆ D_80165582

s16 D_80165582

◆ gCopyNearestWaypointByPlayerId

s16 gCopyNearestWaypointByPlayerId[8]

◆ gCopyPathIndexByPlayerId

u16 gCopyPathIndexByPlayerId[8]

◆ gCountASwitch

s32 gCountASwitch[8]

◆ gCountBChangement

s32 gCountBChangement[8]

◆ gFrameSinceLastACombo

s32 gFrameSinceLastACombo[8]

◆ gFrameSinceLastBCombo

s32 gFrameSinceLastBCombo[8]

◆ gIsPlayerTripleAButtonCombo

bool gIsPlayerTripleAButtonCombo[8]

◆ gIsPlayerTripleBButtonCombo

bool gIsPlayerTripleBButtonCombo[8]

◆ gPlayerAButtonComboActiveThisFrame

s32 gPlayerAButtonComboActiveThisFrame[8]

◆ gPlayerBButtonComboActiveThisFrame

s32 gPlayerBButtonComboActiveThisFrame[8]

◆ gPlayerCurrentSpeed

f32 gPlayerCurrentSpeed[8]

◆ gPlayerIsBrakeActive

bool gPlayerIsBrakeActive[8]

◆ gPlayerIsThrottleActive

bool gPlayerIsThrottleActive[8]

◆ gPlayerWaterLevel

f32 gPlayerWaterLevel[8]

◆ gTimerBoostTripleACombo

s32 gTimerBoostTripleACombo[8]

◆ gTimerBoostTripleBCombo

s32 gTimerBoostTripleBCombo[8]