Mario Kart 64
Loading...
Searching...
No Matches
bomb_kart.h
Go to the documentation of this file.
1#ifndef BOMB_KART_H
2#define BOMB_KART_H
3
4#include <common_structs.h>
5#include <mk64.h>
6
7#define NUM_BOMB_KARTS_MAX 7
8#define NUM_BOMB_KARTS_VERSUS 7
9#define NUM_BOMB_KARTS_BATTLE 4
10
11#define BOMB_STATE_INACTIVE 0
12#define BOMB_STATE_CCW 1
13#define BOMB_STATE_CW 2
14#define BOMB_STATE_STATIONARY 3 // Paused?
15#define BOMB_STATE_EXPLODED 4 // Or maybe exploding?
16#define BOMB_STATE_UNKNOWN 5
17
18typedef struct {
19 /* 0x00 */ u16 waypointIndex;
20 /* 0x02 */ u16 startingState;
21 /* 0x04 */ f32 unk_04; // Used to set the value of unk_3C in BombKart
22 /* 0x08 */ f32 startingXPos;
23 /* 0x0C */ f32 startingZPos;
28 /* 0x10 */ f32 unk_10;
29 /* 0x14 */ f32 unk_14;
30} BombKartSpawn; // size = 0x18
31
32typedef struct {
38 /* 0x00 */ Vec3f bombPos;
39 /* 0x0C */ Vec3f wheel1Pos;
40 /* 0x18 */ Vec3f wheel2Pos;
41 /* 0x24 */ Vec3f wheel3Pos;
42 /* 0x30 */ Vec3f wheel4Pos;
43 /* 0x3C */ f32 unk_3C;
44 /* 0x40 */ u16 someRot; // seems like an angle of some variety, can't figure out its purpose
45 /* 0x42 */ u16 waypointIndex; // probably the waypoint that the bomb circles
46 /* 0x44 */ u16 state;
47 /* 0x46 */ u16 bounceTimer; // timer? state? height?
48 /* 0x48 */ u16 circleTimer; // timer? state? Somehow controls how it circles around
49 /* 0x4A */ u16 unk_4A;
50 /* 0x4C */ s16 unk_4C;
51 /* 0x4E */ // s16 compilerPadding;
52 /* 0x50 */ f32 yPos; // Y position of the center of the circle
53} BombKart; // size = 0x54
54
57
60
61// data/data_0DD0A0_1.s
63
64#endif
#define NUM_BOMB_KARTS_MAX
Definition bomb_kart.h:7
Collision D_80164038[NUM_BOMB_KARTS_MAX]
Definition code_80005FD0.c:149
s32 gIndexObjectBombKart[NUM_BOMB_KARTS_MAX]
Indexes for the objects associated with the Bomb Karts.
Definition code_80057C60.c:240
BombKartSpawn gBombKartSpawns[NUM_COURSES][NUM_BOMB_KARTS_MAX]
Definition path_spawn_metadata.c:59
BombKart gBombKarts[NUM_BOMB_KARTS_MAX]
Definition code_80005FD0.c:148
f32 Vec3f[3]
Definition common_structs.h:6
@ NUM_COURSES
Definition mk64.h:48
Definition bomb_kart.h:18
u16 waypointIndex
Definition bomb_kart.h:19
u16 startingState
Definition bomb_kart.h:20
f32 unk_04
Definition bomb_kart.h:21
f32 unk_14
Definition bomb_kart.h:29
f32 startingZPos
Definition bomb_kart.h:23
f32 startingXPos
Definition bomb_kart.h:22
f32 unk_10
Definition bomb_kart.h:28
Definition bomb_kart.h:32
Vec3f wheel3Pos
Definition bomb_kart.h:41
u16 circleTimer
Definition bomb_kart.h:48
Vec3f wheel1Pos
Definition bomb_kart.h:39
Vec3f wheel2Pos
Definition bomb_kart.h:40
Vec3f wheel4Pos
Definition bomb_kart.h:42
u16 waypointIndex
Definition bomb_kart.h:45
u16 someRot
Definition bomb_kart.h:44
s16 unk_4C
Definition bomb_kart.h:50
u16 state
Definition bomb_kart.h:46
u16 bounceTimer
Definition bomb_kart.h:47
f32 yPos
Definition bomb_kart.h:52
f32 unk_3C
Definition bomb_kart.h:43
Vec3f bombPos
Definition bomb_kart.h:38
u16 unk_4A
Definition bomb_kart.h:49
Definition common_structs.h:132
signed int s32
Definition ultratypes.h:15
signed short int s16
Definition ultratypes.h:13
float f32
Definition ultratypes.h:34
unsigned short int u16
Definition ultratypes.h:14