DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
shot_effect.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
7#include "character.hpp"
8#include "dataalloc_fwd.hpp"
9
10// Forward declarations for the types these declarations name. The skeleton
11// headers are generated from the retail symbol table, which knows the type
12// names but not where they live.
13#include "bt_shot_effect.hpp"
14
19public:
23 sceVu0FVECTOR velocity[8];
24 s16 source_id[8];
25 s32 phase_delay[8];
26 s16 phase[8];
27 s16 active[8];
28 s32 damage[8];
30 s16 user_id[8];
31 s16 user_id_2[8];
32 s32 user_sub_id[8];
33 char *vs_monster[8];
34 s32 loop[8];
35 float random_rate[8];
36 s32 life_time[8];
38 char no_sound[8];
39 char wait[8];
40 char wait_state[8];
41 s32 status;
45 u8 unk_A158[8];
46
54 void Draw();
55
64 void Step();
65
73 void EndEffect();
74
82 void OffEffect(int slot);
83
92 int Entry(BT_SHOT_EFFECT *description, unsigned int *pack, int tex_block, CDataAlloc2<1> *allocator, int slots);
93
102 int Entry2(BT_SHOT_EFFECT *description, unsigned int *pack, int tex_block, CDataAlloc2<1> *allocator, int slots);
103
112 int ReEntry(BT_SHOT_EFFECT *description, CDataAlloc2<1> *allocator);
113
121 void SetLoop(int loop);
122
131 int Set(float *position, float *target, int owner, int sub_id, int source, CFrame *parent, int initial_phase);
132
140 void SetWait(int wait);
141
149 void SetNoSound();
150
158 void SetRandomRate(float rate);
159
167 void SetLifeTime(int life_time);
168
176 void SetEnemyAttr(int attribute);
177
185 void SetDmg(int damage);
186
194 void SetAttribute(int attribute);
195
203 void SetWepStatus(int status);
204
212 void SetVsMonster(char *effectiveness);
213
221 void SetUserID2(int id);
222
230 void Initialize();
231} __attribute__((aligned(16)));
232
233STATIC_ASSERT(sizeof(CSHOT_EFFECT) == 0xA160);
234
235class CSHOT {
236public:
237 u8 unk_000[0x40];
238 sceVu0FVECTOR pos[12];
239 sceVu0FVECTOR unk_100[12];
240 sceVu0FVECTOR vector[12];
241 s32 halted[12];
242 s32 life[12];
243 s32 damage[12];
244 float size[12];
245 s32 unk_340[12];
246 s32 unk_370[12];
247 s32 start_flag[12];
248 s32 used[12];
257 void draw();
258
266 void step();
267};
268
269STATIC_ASSERT(sizeof(CSHOT) == 0x400);
270
272public:
273 float position[16][4];
274 float velocity[16][4];
275 s32 damage[16];
276 s32 element[16];
277 s32 age[16];
286 int Set(float *origin, float *direction, int damage, int element);
287
295 void Step();
296};
297
298STATIC_ASSERT(sizeof(CSHOT_MACHINGUN) == 0x2C0);
s32 phase_delay[8]
void SetVsMonster(char *effectiveness)
CCharacter chara[8]
void SetWepStatus(int status)
BT_SHOT_EFFECT * effect_data
char * vs_monster[8]
int ReEntry(BT_SHOT_EFFECT *description, CDataAlloc2< 1 > *allocator)
float random_rate[8]
void SetEnemyAttr(int attribute)
void SetDmg(int damage)
s32 weapon_status[8]
void OffEffect(int slot)
char wait_state[8]
void SetUserID2(int id)
int Entry(BT_SHOT_EFFECT *description, unsigned int *pack, int tex_block, CDataAlloc2< 1 > *allocator, int slots)
void SetRandomRate(float rate)
void SetLifeTime(int life_time)
void SetWait(int wait)
CCharacter template_chara
s32 user_sub_id[8]
void SetLoop(int loop)
int Entry2(BT_SHOT_EFFECT *description, unsigned int *pack, int tex_block, CDataAlloc2< 1 > *allocator, int slots)
s32 enemy_attribute[8]
char no_sound[8]
void SetAttribute(int attribute)
sceVu0FVECTOR velocity[8]
int Set(float *position, float *target, int owner, int sub_id, int source, CFrame *parent, int initial_phase)
float position[16][4]
float velocity[16][4]
int Set(float *origin, float *direction, int damage, int element)
void step()
s32 damage[12]
float size[12]
void draw()
s32 halted[12]
s32 used[12]
s32 life[12]
sceVu0FVECTOR vector[12]
sceVu0FVECTOR pos[12]
s32 start_flag[12]