DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
COLLISION_HIT Struct Reference

#include <collisiondata.hpp>

Public Attributes

sceVu0FVECTOR pos
 
sceVu0FVECTOR base_point
 
sceVu0FVECTOR velocity
 
u8 unk_30 [4]
 
s32 damage
 
float scale_rate
 
float radius
 
float unk_40
 
s32 life
 
s32 target_mask
 
s32 kind
 
s32 flags
 
s32 attribute
 
s32 owner
 
s32 monster_no
 
s32 attack_no
 
char * vs_monster
 
s32 target_kind
 
s32 weapon_flags
 
s32 phase
 
s32 ready_phase
 
u8 unk_78 [8]
 
sceVu0FVECTOR knockback_origin
 
float knockback_speed
 
float knockback_decay
 
s32 knockback_mode
 
u8 unk_9C [4]
 

Detailed Description

Records one hit that the collision test found.

Definition at line 64 of file collisiondata.hpp.

Member Data Documentation

◆ pos

sceVu0FVECTOR COLLISION_HIT::pos

Where the hit landed.

Definition at line 65 of file collisiondata.hpp.

◆ base_point

sceVu0FVECTOR COLLISION_HIT::base_point

Homogeneous point reset to the origin when the hit is recorded.

Definition at line 66 of file collisiondata.hpp.

◆ velocity

sceVu0FVECTOR COLLISION_HIT::velocity

The way the hit throws what it hit.

Definition at line 67 of file collisiondata.hpp.

◆ unk_30

u8 COLLISION_HIT::unk_30[4]

Definition at line 68 of file collisiondata.hpp.

◆ damage

s32 COLLISION_HIT::damage

What the hit takes off.

Definition at line 69 of file collisiondata.hpp.

◆ scale_rate

float COLLISION_HIT::scale_rate

Scale factor the hit was recorded with.

Definition at line 70 of file collisiondata.hpp.

◆ radius

float COLLISION_HIT::radius

How far from its position the hit reaches.

Definition at line 71 of file collisiondata.hpp.

◆ unk_40

float COLLISION_HIT::unk_40

Definition at line 72 of file collisiondata.hpp.

◆ life

s32 COLLISION_HIT::life

Steps the hit still tests for.

Definition at line 73 of file collisiondata.hpp.

◆ target_mask

s32 COLLISION_HIT::target_mask

Sides the hit can strike: 1 the player, 2 monsters.

Definition at line 74 of file collisiondata.hpp.

◆ kind

s32 COLLISION_HIT::kind

2 for a small hit, 3 for a blow, 4 for a heavy blow.

Definition at line 75 of file collisiondata.hpp.

◆ flags

s32 COLLISION_HIT::flags

What the hit does besides damage.

Definition at line 76 of file collisiondata.hpp.

◆ attribute

s32 COLLISION_HIT::attribute

Attribute value the hit was recorded with.

Definition at line 77 of file collisiondata.hpp.

◆ owner

s32 COLLISION_HIT::owner

Identifies what dealt the hit, or -1.

Definition at line 78 of file collisiondata.hpp.

◆ monster_no

s32 COLLISION_HIT::monster_no

Monster that dealt the hit, or -1.

Definition at line 79 of file collisiondata.hpp.

◆ attack_no

s32 COLLISION_HIT::attack_no

Which of its owner's attacks dealt the hit, or -1.

Definition at line 80 of file collisiondata.hpp.

◆ vs_monster

char* COLLISION_HIT::vs_monster

The attacker's monster-effectiveness table.

Definition at line 81 of file collisiondata.hpp.

◆ target_kind

s32 COLLISION_HIT::target_kind

Attachment family the hit only harms, or -1.

Definition at line 82 of file collisiondata.hpp.

◆ weapon_flags

s32 COLLISION_HIT::weapon_flags

Flags of the weapon that dealt the hit.

Definition at line 83 of file collisiondata.hpp.

◆ phase

s32 COLLISION_HIT::phase

The hit tests only while this equals ready_phase.

Definition at line 84 of file collisiondata.hpp.

◆ ready_phase

s32 COLLISION_HIT::ready_phase

Value phase has to reach before the hit tests.

Definition at line 85 of file collisiondata.hpp.

◆ unk_78

u8 COLLISION_HIT::unk_78[8]

Definition at line 86 of file collisiondata.hpp.

◆ knockback_origin

sceVu0FVECTOR COLLISION_HIT::knockback_origin

Point the hit pushes what it hit away from.

Definition at line 87 of file collisiondata.hpp.

◆ knockback_speed

float COLLISION_HIT::knockback_speed

Distance the push moves each step at first.

Definition at line 88 of file collisiondata.hpp.

◆ knockback_decay

float COLLISION_HIT::knockback_decay

Amount the push slows by each step.

Definition at line 89 of file collisiondata.hpp.

◆ knockback_mode

s32 COLLISION_HIT::knockback_mode

2 for a hit that pushes what it hit.

Definition at line 90 of file collisiondata.hpp.

◆ unk_9C

u8 COLLISION_HIT::unk_9C[4]

Definition at line 91 of file collisiondata.hpp.