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#include <course.h>
7
8#define NUM_BOMB_KARTS_MAX 7
9#define NUM_BOMB_KARTS_VERSUS 7
10#define NUM_BOMB_KARTS_BATTLE 4
11
12#define BOMB_STATE_INACTIVE 0
13#define BOMB_STATE_CCW 1
14#define BOMB_STATE_CW 2
15#define BOMB_STATE_STATIONARY 3 // Paused?
16#define BOMB_STATE_EXPLODED 4 // Or maybe exploding?
17#define BOMB_STATE_UNKNOWN 5
18
19typedef struct {
20 /* 0x00 */ u16 pathPointIndex;
21 /* 0x02 */ u16 startingState;
22 /* 0x04 */ f32 unk_04; // Used to set the value of unk_3C in BombKart
23 /* 0x08 */ f32 startingXPos;
24 /* 0x0C */ f32 startingZPos;
29 /* 0x10 */ f32 unk_10;
30 /* 0x14 */ f32 unk_14;
31} BombKartSpawn; // size = 0x18
32
33typedef struct {
39 /* 0x00 */ Vec3f bombPos;
40 /* 0x0C */ Vec3f wheel1Pos;
41 /* 0x18 */ Vec3f wheel2Pos;
42 /* 0x24 */ Vec3f wheel3Pos;
43 /* 0x30 */ Vec3f wheel4Pos;
44 /* 0x3C */ f32 unk_3C;
45 /* 0x40 */ u16 someRot; // seems like an angle of some variety, can't figure out its purpose
46 /* 0x42 */ u16 pathPointIndex; // probably the pathPoint that the bomb circles
47 /* 0x44 */ u16 state;
48 /* 0x46 */ u16 bounceTimer; // timer? state? height?
49 /* 0x48 */ u16 circleTimer; // timer? state? Somehow controls how it circles around
50 /* 0x4A */ u16 unk_4A;
51 /* 0x4C */ s16 unk_4C;
52 /* 0x4E */ // s16 compilerPadding;
53 /* 0x50 */ f32 yPos; // Y position of the center of the circle
54} BombKart; // size = 0x54
55
58
61
62// data/data_0DD0A0_1.s
64
65#endif
#define NUM_BOMB_KARTS_MAX
Definition bomb_kart.h:8
Collision D_80164038[NUM_BOMB_KARTS_MAX]
Definition cpu_vehicles_camera_path.c:150
s32 gIndexObjectBombKart[NUM_BOMB_KARTS_MAX]
Indexes for the objects associated with the Bomb Karts.
Definition code_80057C60.c:241
BombKartSpawn gBombKartSpawns[NUM_COURSES][NUM_BOMB_KARTS_MAX]
Definition path_spawn_metadata.c:67
BombKart gBombKarts[NUM_BOMB_KARTS_MAX]
Definition cpu_vehicles_camera_path.c:149
f32 Vec3f[3]
Definition common_structs.h:6
@ NUM_COURSES
Definition course.h:52
Definition bomb_kart.h:19
u16 startingState
Definition bomb_kart.h:21
u16 pathPointIndex
Definition bomb_kart.h:20
f32 unk_04
Definition bomb_kart.h:22
f32 unk_14
Definition bomb_kart.h:30
f32 startingZPos
Definition bomb_kart.h:24
f32 startingXPos
Definition bomb_kart.h:23
f32 unk_10
Definition bomb_kart.h:29
Definition bomb_kart.h:33
Vec3f wheel3Pos
Definition bomb_kart.h:42
u16 circleTimer
Definition bomb_kart.h:49
Vec3f wheel1Pos
Definition bomb_kart.h:40
Vec3f wheel2Pos
Definition bomb_kart.h:41
Vec3f wheel4Pos
Definition bomb_kart.h:43
u16 someRot
Definition bomb_kart.h:45
s16 unk_4C
Definition bomb_kart.h:51
u16 state
Definition bomb_kart.h:47
u16 bounceTimer
Definition bomb_kart.h:48
f32 yPos
Definition bomb_kart.h:53
f32 unk_3C
Definition bomb_kart.h:44
Vec3f bombPos
Definition bomb_kart.h:39
u16 pathPointIndex
Definition bomb_kart.h:46
u16 unk_4A
Definition bomb_kart.h:50
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