Decompile explosionCreateComplex

This commit is contained in:
Ryan Dwyer
2020-06-11 23:15:52 +10:00
parent e49c317a9e
commit 3670dc8478
14 changed files with 87 additions and 171 deletions
+4
View File
@@ -553,6 +553,10 @@
#define ENTITYTYPE_DONTTURN 0x0040 // don't do a shooting animation that would change the chr's direction
#define ENTITYTYPE_TARGET 0x0200 // aim/shoot at whatever is in the chr's `target` field
#define EXPLOSIONTYPE_0 0
#define EXPLOSIONTYPE_3 3
#define EXPLOSIONTYPE_8 8
#define EYESPYMODE_CAMSPY 0
#define EYESPYMODE_DRUGSPY 1
#define EYESPYMODE_BOMBSPY 2
@@ -1,15 +1,15 @@
#ifndef IN_GAME_GAME_129900_H
#define IN_GAME_GAME_129900_H
#ifndef IN_GAME_EXPLOSION_H
#define IN_GAME_EXPLOSION_H
#include <ultra64.h>
#include "types.h"
bool func0f129900(struct prop *prop, struct coord *pos, s16 *room, s16 arg3, s32 playernum);
u32 func0f129940(void);
bool explosionCreateSimple(struct prop *prop, struct coord *pos, s16 *rooms, s16 type, s32 playernum);
bool explosionCreateComplex(struct prop *prop, struct coord *pos, s16 *rooms, s16 type, s32 playernum);
u32 func0f129b08(void);
u32 func0f129ba4(void);
u32 func0f129c08(void);
void alertNearbyChrsToNoise(f32 *radius, struct coord *noisepos);
bool explosionCreate(struct prop *prop, struct coord *pos, s16 *room, s16 arg3, s32 playernum, u32 arg5, u32 arg6, u32 arg7, u32 arg8);
bool explosionCreate(struct prop *prop, struct coord *pos, s16 *rooms, s16 type, s32 playernum, bool arg5, struct coord *arg6, s16 arg7, struct coord *arg8);
u32 func0f12acec(void);
u32 func0f12af5c(void);
u32 func0f12b0e0(void);
+1 -1
View File
@@ -83,7 +83,7 @@ f32 func0002a36c(struct coord *coord, s16 *rooms, u16 *floorcol, s32 arg3);
u32 func0002a400(void);
u32 func0002a440(void);
u32 func0002a4d0(void);
u32 func0002a564(void);
s32 func0002a564(struct coord *pos, s16 *rooms, f32 *arg2, u32 arg3, struct coord *arg4, bool *arg5);
u32 func0002a5e4(void);
bool func0002a684(struct coord *pos, f32 width, s16 *rooms, s32 arg3, s32 arg4, f32 arg5, f32 arg6);
u32 func0002a6fc(void);
+13 -13
View File
@@ -4514,19 +4514,19 @@ struct mppreset {
};
struct explosiontype {
f32 rangeh;
f32 rangev;
f32 changerateh;
f32 changeratev;
f32 innersize;
f32 blastradius;
f32 damageradius;
u16 duration;
u16 propagationrate;
f32 flarespeed;
u8 smoketype;
u16 sound;
f32 damage;
/*0x00*/ f32 rangeh;
/*0x04*/ f32 rangev;
/*0x08*/ f32 changerateh;
/*0x0c*/ f32 changeratev;
/*0x10*/ f32 innersize;
/*0x14*/ f32 blastradius;
/*0x18*/ f32 damageradius;
/*0x1c*/ s16 duration;
/*0x1e*/ u16 propagationrate;
/*0x20*/ f32 flarespeed;
/*0x24*/ u8 smoketype;
/*0x26*/ u16 sound;
/*0x28*/ f32 damage;
};
struct smoketype {