SSBM Decomp
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef MELEE_FT_CHARA_FTNESS_TYPES_H
2#define MELEE_FT_CHARA_FTNESS_TYPES_H
3
4#include <platform.h>
5
6#include "ftNess/forward.h" // IWYU pragma: export
7
8#include "lb/types.h"
9
10#include <baselib/forward.h>
11
12#include <common_structs.h>
13#include <dolphin/mtx.h>
14
16 /* 0x222C */ HSD_GObj* yoyo_gobj;
17 /* 0x2230 */ Vec3 yoyo_hitbox_pos;
18 /* 0x223C */ float x223C;
19 /* 0x2240 */ HSD_GObj* pkflash_gobj;
20 /* 0x2244 */ HSD_GObj* pkthunder_gobj;
21 /* 0x2248 */ HSD_GObj* bat_gobj;
23 /* 0x224C */ u32 pkthunder_gfx;
24};
25
103
104// Special Attributes
105
106typedef struct ftNessAttributes {
107 // Neutral Special - PK Flash
115 float x1C_PKFLASH_LANDING_LAG; // If set to 0, Ness does not enter freefall
116 // after aerial PK Flash, but loses his
117 // double jump.
118 // Side Special - PK Fire
126 // Up Special - PK Thunder
133 // Up Special - PK Thunder 2 (Self-Hit)
137 float x60_PK_THUNDER_2_KNOCKDOWN_ANGLE; // Angle to determine whether to
138 // enter PK Thunder 2 or DownBound
139 // state (Ground Only)
140 float x64_PK_THUNDER_2_WALLHUG_ANGLE; // Surface angle to determine whether
141 // PK Thunder 2 wallhugs or bounces
143 float
144 x6C_PK_THUNDER_2_FREEFALL_ANIM_BLEND; // Amount of animation blend
145 // frames Ness goes through when
146 // entering FallSpecial through
147 // his SpecialHi Motion States
148 float x70_PK_THUNDER_2_LANDING_LAG; // If set to 0, Ness does not enter
149 // freefall after aerial PK Thunder,
150 // but loses his double jump.
151 // Down Special - PSI Magnet
152 float x74_PSI_MAGNET_RELEASE_LAG; // Auto lag frames after initializing PSI
153 // Magnet if B is not being held. PSI
154 // Magnet is immediately released with no
155 // lag once these frames have passed.
156 float x78_PSI_MAGNET_UNK1; // Note: Reminiscent of Fox and Falco's
157 // Reflector turn duration attribute? Unused.
158 float x7C_PSI_MAGNET_UNK2; // Note: Reminiscent of Fox and Falco's
159 // Reflector Unk1 attribute? Unused.
160 float x80_PSI_MAGNET_UNK3; // Unused.
164 float x90_PSI_MAGNET_UNK4; // Unused.
165 float x94_PSI_MAGNET_HEAL_MUL; // Multiplies projectile damage by this
166 // value and heals result
168 // Up/Down Smash - Yo-Yo
169 float xAC_YOYO_CHARGE_DURATION; // Amount of frames Yo-Yo can be charged
170 float
171 xB0_YOYO_DAMAGE_MUL; // Charged Yo-Yo damage multiplier; 350 by
172 // default, identical to the Smash Charge standard
173 float xB4_YOYO_REHIT_RATE; // Amount of frames needed for the Yo-Yo to hit
174 // again after colliding with a hurtbox
175 // Forward Smash - Baseball Bat
177
179
180#endif
Definition types.h:128
was using this to try and fix some matches, unsuccessfully
Definition gobj.h:26
Definition types.h:115
Definition types.h:106
AbsorbDesc x98_PSI_MAGNET_ABSORPTION
Definition types.h:167
ReflectDesc xB8_BASEBALL_BAT
Definition types.h:176
float x68_PK_THUNDER_2_UNK2
Definition types.h:142
float x3C_PK_THUNDER_UNK1
Definition types.h:127
float x34_PKFIRE_SPAWN_Y
Definition types.h:124
float x10_PKFLASH_UNK1
Definition types.h:112
float x50_PK_THUNDER_FALL_ACCEL
Definition types.h:132
s32 x8_PKFLASH_GRAVITY_DELAY
Definition types.h:110
s32 x4_PKFLASH_TIMER2_LOOPFRAMES
Definition types.h:109
float x4C_PK_THUNDER_UNK2
Definition types.h:131
float x80_PSI_MAGNET_UNK3
Definition types.h:160
u32 x44_PK_THUNDER_LOOP2
Definition types.h:129
float x2C_PKFIRE_GROUNDED_VELOCITY
Definition types.h:122
float x1C_PKFLASH_LANDING_LAG
Definition types.h:115
s32 x0_PKFLASH_TIMER1_LOOPFRAMES
Definition types.h:108
s32 x84_PSI_MAGNET_FRAMES_BEFORE_GRAVITY
Definition types.h:161
float x70_PK_THUNDER_2_LANDING_LAG
Definition types.h:148
float xB4_YOYO_REHIT_RATE
Definition types.h:173
float x30_PKFIRE_SPAWN_X
Definition types.h:123
float xB0_YOYO_DAMAGE_MUL
Definition types.h:171
float x38_PKFIRE_LANDING_LAG
Definition types.h:125
float x60_PK_THUNDER_2_KNOCKDOWN_ANGLE
Definition types.h:137
float x90_PSI_MAGNET_UNK4
Definition types.h:164
float x7C_PSI_MAGNET_UNK2
Definition types.h:158
float x58_PK_THUNDER_2_UNK1
Definition types.h:135
s32 xC_PKFLASH_MINCHARGEFRAMES
Definition types.h:111
float x64_PK_THUNDER_2_WALLHUG_ANGLE
Definition types.h:140
u32 x40_PK_THUNDER_LOOP1
Definition types.h:128
u32 x48_PK_THUNDER_GRAVITY_DELAY
Definition types.h:130
float x8C_PSI_MAGNET_FALL_ACCEL
Definition types.h:163
float x74_PSI_MAGNET_RELEASE_LAG
Definition types.h:152
float x14_PKFLASH_FALL_ACCEL
Definition types.h:113
float x20_PKFIRE_AERIAL_LAUNCH_TRAJECTORY
Definition types.h:119
float x88_PSI_MAGNET_MOMENTUM_PRESERVATION
Definition types.h:162
float x54_PK_THUNDER_2_MOMENTUM
Definition types.h:134
float x28_PKFIRE_GROUNDED_LAUNCH_TRAJECTORY
Definition types.h:121
float xAC_YOYO_CHARGE_DURATION
Definition types.h:169
float x94_PSI_MAGNET_HEAL_MUL
Definition types.h:165
float x18_PKFLASH_UNK2
Definition types.h:114
float x5C_PK_THUNDER_2_DECELERATION_RATE
Definition types.h:136
float x6C_PK_THUNDER_2_FREEFALL_ANIM_BLEND
Definition types.h:144
float x24_PKFIRE_AERIAL_VELOCITY
Definition types.h:120
float x78_PSI_MAGNET_UNK1
Definition types.h:156
Definition types.h:15
HSD_GObj * pkflash_gobj
Definition types.h:19
HSD_GObj * yoyo_gobj
Definition types.h:16
HSD_GObj * bat_gobj
Definition types.h:21
Vec3 yoyo_hitbox_pos
Definition types.h:17
HSD_GObj * pkthunder_gobj
Definition types.h:20
u32 pkthunder_gfx
bool for PK Thunder GFX?
Definition types.h:23
float x223C
Definition types.h:18
s32 thunderTimerLoop1
0x2344 - Number of frames Ness remains in the "control loop" animation after PK Thunder despawns
Definition types.h:61
s32 thunderColl
0x2340 - PK Thunder collision type? Used to check if PK Thunder is colliding with Ness
Definition types.h:58
float unkVar3
0x2388 - Set various times but never actually used?
Definition types.h:84
s32 gravityDelay
0x234C - Number of frames to pass before gravity takes effect
Definition types.h:66
float facingDir
0x2370 - Facing direction change frorm PK Thunder collision
Definition types.h:76
s32 thunderTimerLoop2
0x2348 - Number of extra frames Ness remains in the "control loop" animation after PK Thunder despawn...
Definition types.h:64
Vec3 collPos1
0x2350 - ???
Definition types.h:68
float aerialVel
0x2368 - Aerial velocity of PK Thunder 2 (Self-Hit)
Definition types.h:72
float fallAccel
0x2384 - Fall acceleration of PK Thunder 2 (Self-Hit)
Definition types.h:82
Vec3 collPos2
0x235C - ???
Definition types.h:70
float unkVar4
0x238C - Set various times but never actually used?
Definition types.h:86
float unkVar
0x236C - Set various times but never actually used?
Definition types.h:74
s32 jibakuGFX
0x2380 - bool used in a weird way to switch to PK Thunder 2 GFX
Definition types.h:80
Vec3 unkVector1
0x2374 through 0x237C - Unused vector
Definition types.h:78
s32 releaseLag
0x2340 - Auto lag frames after initializing PSI Magnet if B is not being held; PSI Magnet is immediat...
Definition types.h:93
s32 turnFrames
0x2344 - Unused turnaround timer
Definition types.h:95
bool isRelease
0x2348 - Check if Ness is no longer holding B
Definition types.h:97
s32 gravityDelay
0x234C - Number of frames to pass before gravity takes effect
Definition types.h:99
int charge_release_delay
0x234C - Minimum number of frames required to pass for PK Flash to auto-release if B is not being hel...
Definition types.h:52
int frames_to_loop_charge_ground
0x2340 - Number of frames Ness remains in the "charge loop" animation after releasing PK Flash
Definition types.h:44
int frames_to_loop_charge_air
0x2344 - Number of extra frames Ness remains in the "charge loop" animation after releasing PK Flash?
Definition types.h:47
int falling_acceleration_delay
0x2348 - Number of frames to pass before gravity takes effect
Definition types.h:49
s32 yoyoCurrentFrame
0x2340 - Current frame of Up/Down Smash animation as an integer
Definition types.h:29
bool isPosUpdateMod
0x234C - bool to indicate whether Yo-Yo hitbox position should update based on raw Vec3 input (false)...
Definition types.h:38
bool isChargeDisable
0x2348 - bool to indicate whether Ness can charge the Yo-Yo
Definition types.h:34
s32 yoyoRehitTimer
0x2344 - Frames until Up/Down Smash hitbox automatically refreshes; part of why the Yo-Yo Glitch occu...
Definition types.h:32
Definition types.h:26
struct ftNess_MotionVars::ftNess_SpecialLwVars speciallw
struct ftNess_MotionVars::ftNess_YoyoVars attacklw4
struct ftNess_MotionVars::ftNess_SpecialHiVars specialhi
struct ftNess_MotionVars::ftNess_SpecialNVars specialn
struct ftNess_MotionVars::ftNess_YoyoVars attackhi4