Mario Kart 64
Loading...
Searching...
No Matches
waypoints.h
Go to the documentation of this file.
1#ifndef WAYPOINTS_H
2#define WAYPOINTS_H
3
4typedef struct {
5 /* 0x00 */ s16 posX;
6 /* 0x02 */ s16 posY;
7 /* 0x04 */ s16 posZ;
8 /* 0x06 */ u16 trackSegment;
9} TrackWaypoint; // size = 0x08
10
20
25// Waypoint types?
26extern s16 *D_80164580[];
27// Based on func_80010DBC this may be angles between waypoints
28// D_80164590[i] = atan2(waypoint_i, waypoint_i+1)?
29extern s16 *D_80164590[];
30// No idea. Adjacency list?
31extern s16 *D_801645A0[];
32
38// Shadows values from gNearestWaypointByPlayerId
39extern s16 D_80162FCE;
40// Shadows values from gPathIndexByPlayerId
41extern s32 D_80163448;
42// Shadows values from D_80164560
44// Shadows values from D_80164570
46// Shadows values from D_80164580
47extern s16 *D_801631D8;
48// Shadows values from D_80164590
49extern s16 *D_801631DC;
50// Shadowd values from gWaypointCountByPathIndex
51extern u16 D_80164430;
52// Shadows values from D_80164550
54// Shadows values from D_801645A0
55extern s16 *D_801645E0;
56
57
58extern u16 gNearestWaypointByPlayerId[]; // D_80164438
59// Total waypoints passed by playerId?
60extern s32 D_80164450[];
61extern u16 gPathIndexByPlayerId[]; // D_801645B0
62extern u16 gWaypointCountByPathIndex[]; // D_801645C8
63// These values are only used when the camera is in "cinematic" mode
64extern s16 gNearestWaypointByCameraId[]; // D_80164668
65
71// Tracks something on a per-player basis, no idea what though
72extern f32 D_80163068[];
73// Track segment by playerId, although it curiously does NOT track values for human players
74// So, in 2 Player Grand Prix, the first 2 entries are always 0
75extern u16 D_80163318[];
76// Seems to be a per-path overcount of the waypoint count
77extern s32 D_80163368[];
78// Seemingly the Z position of the 1st waypoint in the 0th path?
79extern f32 D_8016344C;
80// These seem to track whether a player has entered or exited the "unknown" zone in yoshi's valley
81// See func_80009000 and func_800090F0
82// Is 1 when a player is in the "unknown" zone in yoshi's valley
83extern s16 D_80163490[];
84// Is 1 when a player leaves the "unknown" zone in yoshi's valley
85extern s16 D_801634A8[];
86// Tracks whether a given player is in the "unknown" zone of yoshi's valley
87extern s16 D_801644F8[];
88
89#endif
Definition waypoints.h:4
u16 trackSegment
Definition waypoints.h:8
s16 posZ
Definition waypoints.h:7
s16 posY
Definition waypoints.h:6
s16 posX
Definition waypoints.h:5
signed int s32
Definition ultratypes.h:15
signed short int s16
Definition ultratypes.h:13
float f32
Definition ultratypes.h:33
unsigned short int u16
Definition ultratypes.h:14
s16 D_80163490[]
Definition code_80005FD0.c:128
TrackWaypoint * D_80164550[]
Definition code_80005FD0.c:172
TrackWaypoint * D_80164560[]
Definition code_80005FD0.c:173
TrackWaypoint * D_801631D4
Definition code_80005FD0.c:81
TrackWaypoint * D_80164490
Definition code_80005FD0.c:165
s16 * D_80164580[]
Definition code_80005FD0.c:175
s16 D_801644F8[]
Definition code_80005FD0.c:169
u16 gNearestWaypointByPlayerId[]
Definition code_80005FD0.c:161
s32 D_80163448
Definition code_80005FD0.c:117
s16 gNearestWaypointByCameraId[]
Definition code_80005FD0.c:190
u16 D_80163318[]
Definition code_80005FD0.c:98
s16 * D_801631DC
Definition code_80005FD0.c:83
f32 D_8016344C
Definition code_80005FD0.c:118
s16 * D_801631D8
Definition code_80005FD0.c:82
s16 * D_801645E0
Definition code_80005FD0.c:181
TrackWaypoint * D_801631D0
Definition code_80005FD0.c:80
s16 * D_80164590[]
Definition code_80005FD0.c:176
u16 gPathIndexByPlayerId[]
Definition code_80005FD0.c:178
s16 * D_801645A0[]
Definition code_80005FD0.c:177
TrackWaypoint * D_80164570[]
Definition code_80005FD0.c:174
s16 D_801634A8[]
Definition code_80005FD0.c:129
s32 D_80163368[]
Definition code_80005FD0.c:104
s16 D_80162FCE
Definition code_80005FD0.c:53
s32 D_80164450[]
Definition code_80005FD0.c:162
u16 gWaypointCountByPathIndex[]
Definition code_80005FD0.c:179
f32 D_80163068[]
Definition code_80005FD0.c:66
u16 D_80164430
Definition code_80005FD0.c:160