mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
ovl_En_Knight
This commit is contained in:
+64
-2
@@ -216,6 +216,10 @@ void EffectSsFhgFlash_SpawnShock(PlayState* play, Actor* actor, Vec3f* pos, s16
|
||||
void EffectSsKFire_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scaleMax, u8 type);
|
||||
void EffectSsSolderSrchBall_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scale, s16* playerDetected, s16 flags);
|
||||
void EffectSsKakera_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* arg3, s16 gravity, s16 arg5, s16 arg6, s16 arg7, s16 arg8, s16 scale, s16 arg10, s16 arg11, s32 life, s16 colorIdx, s16 objectId, Gfx* dList);
|
||||
// void EffectSsFhgFlash_SpawnShock(UNK_TYPE4 uParm1, UNK_TYPE4 uParm2, Vec3f* pzParm3, UNK_TYPE2 uParm4, UNK_TYPE1 param_5);
|
||||
void EffectSsKFire_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scaleMax, u8 type);
|
||||
void EffectSsSolderSrchBall_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 unused, s16* linkDetected, s16 drawFlag);
|
||||
void EffectSsKakera_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* arg3, s16 gravity, s16 arg5, s16 arg6, s16 arg7, s16 arg8, s16 scale, s16 arg10, s16 arg11, s32 life, s16 colorIdx, s16 objId, Gfx* dList);
|
||||
// void EffectSsIcePiece_Spawn(UNK_TYPE4 uParm1, Vec3f* pzParm2, UNK_TYPE4 uParm3, Vec3f* pzParm4, Vec3f* param_5, UNK_TYPE4 param_6);
|
||||
void EffectSsIcePiece_SpawnBurst(PlayState* play, Vec3f* refPos, f32 scale);
|
||||
void func_800B2B44(PlayState* play, Actor* actor, Vec3f* pos, f32 scale);
|
||||
@@ -962,8 +966,6 @@ void Play_GetFloorSurface(PlayState* this, MtxF* mtx, Vec3f* pos);
|
||||
void* Play_LoadFile(PlayState* this, RomFile* entry);
|
||||
void Play_InitEnvironment(PlayState* this, s16 skyboxId);
|
||||
void Play_GetScreenPos(PlayState* this, Vec3f* worldPos, Vec3f* screenPos);
|
||||
s16 Play_CreateSubCamera(PlayState* this);
|
||||
s16 Play_GetActiveCamId(PlayState* this);
|
||||
s32 Play_ChangeCameraStatus(PlayState* this, s16 camId, s16 status);
|
||||
void Play_ClearCamera(PlayState* this, s16 camId);
|
||||
Camera* Play_GetCamera(PlayState* this, s16 camId);
|
||||
@@ -988,6 +990,66 @@ s32 Play_CamIsNotFixed(GameState* thisx);
|
||||
s32 FrameAdvance_IsEnabled(GameState* thisx);
|
||||
s32 func_8016A02C(GameState* thisx, Actor* actor, s16* yaw);
|
||||
s32 Play_IsUnderwater(PlayState* this, Vec3f* pos);
|
||||
// void func_80165460(void);
|
||||
// void func_80165608(void);
|
||||
// void func_80165630(void);
|
||||
void func_80165658(u32 arg0);
|
||||
void func_8016566C(u32 arg0);
|
||||
void func_80165690(void);
|
||||
// void func_801656A4(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6, UNK_TYPE4 param_7, UNK_TYPE4 param_8);
|
||||
// void func_80165DCC(void);
|
||||
// void func_80165DF0(void);
|
||||
// void func_80165E1C(void);
|
||||
// void func_80165E7C(void);
|
||||
// void func_80165EC0(void);
|
||||
// void func_80166060(void);
|
||||
Gfx* func_801660B8(PlayState* play, Gfx* gfx);
|
||||
void Play_Fini(GameState* thisx);
|
||||
// void func_801663C4(void);
|
||||
// void func_80166644(void);
|
||||
// void func_801668B4(void);
|
||||
void func_80166968(PlayState* play, Camera* camera);
|
||||
void func_80166B30(PlayState* play);
|
||||
void func_80167814(PlayState* play);
|
||||
void func_80167DE4(PlayState* play);
|
||||
// void func_80167F0C(void);
|
||||
void Play_Draw(PlayState* play);
|
||||
void func_80168DAC(PlayState* play);
|
||||
void Play_Update(PlayState* play);
|
||||
s32 Play_InCsMode(PlayState* play);
|
||||
f32 func_80169100(PlayState* play, MtxF* mtx, CollisionPoly** arg2, s32* arg3, Vec3f* feetPosPtr);
|
||||
// void func_801691F0(void);
|
||||
void* Play_LoadScene(PlayState* play, RomFile* entry);
|
||||
void func_8016927C(PlayState* play, s16 sParm2);
|
||||
// void func_801692C4(PlayState* play, UNK_TYPE1 uParm2);
|
||||
// void Play_SceneInit(PlayState* play, s32 sceneIndex, UNK_TYPE1 param_3);
|
||||
UNK_RET func_80169474(PlayState* play, Vec3f* v1, Vec3f* v2);
|
||||
s16 Play_CreateSubCamera(PlayState* play);
|
||||
s16 Play_GetActiveCamId(PlayState* play);
|
||||
void Play_CameraChangeStatus(PlayState* play, s16 camId, s16 status);
|
||||
void Play_ClearCamera(PlayState* play, s16 camId);
|
||||
Camera* Play_GetCamera(PlayState* play, s16 index);
|
||||
s32 Play_CameraSetAtEye(PlayState* play, s16 camId, Vec3f* at, Vec3f* eye);
|
||||
void Play_CameraSetAtEyeUp(PlayState* play, s16 camId, Vec3f* at, Vec3f* eye, Vec3f* up);
|
||||
s32 Play_CameraSetFov(PlayState* play, s16 camId, f32 fov);
|
||||
void Play_CameraSetRoll(PlayState* play, s16 camId, s16 roll);
|
||||
void Play_CopyCamera(PlayState* play, s16 dstCamId, s16 srcCamId);
|
||||
// void func_80169A50(void);
|
||||
void Play_CameraChangeSetting(PlayState* play, s16 camId, s16 setting);
|
||||
void func_80169AFC(PlayState* play, s16 camId, s16 arg2);
|
||||
s16 Play_GetCsCamDataSetting(PlayState* play, s32 camId);
|
||||
Vec3s* Play_GetCsCamDataVec3s(PlayState* play, s32 camId);
|
||||
s16 Play_GetOriginalSceneNumber(s16 sceneNum);
|
||||
void Play_SaveCycleSceneFlags(GameState* gameState);
|
||||
void Play_SetRespawnData(GameState* gameState, s32 respawnNumber, u16 sceneSetup, s32 roomIndex, s32 playerParams, Vec3f* pos, s16 yaw);
|
||||
void Play_SetupRespawnPoint(GameState* gameState, s32 respawnNumber, s32 playerParams);
|
||||
void func_80169EFC(GameState* gameState);
|
||||
void func_80169F78(GameState* gameState);
|
||||
void func_80169FDC(GameState* gameState);
|
||||
s32 func_80169FFC(GameState* gameState);
|
||||
s32 FrameAdvance_IsEnabled(GameState* gameState);
|
||||
s32 func_8016A02C(GameState* gameState, Actor* actor, s16* yaw);
|
||||
s32 Play_IsUnderwater(PlayState* play, Vec3f* pos);
|
||||
s32 Play_IsDebugCamEnabled(void);
|
||||
void Play_AssignPlayerCsIdsFromScene(GameState* thisx, s32 spawnCsId);
|
||||
void Play_FillScreen(GameState* thisx, s16 fillScreenOn, u8 red, u8 green, u8 blue, u8 alpha);
|
||||
|
||||
@@ -2176,9 +2176,7 @@ beginseg
|
||||
name "ovl_En_Knight"
|
||||
compress
|
||||
include "build/src/overlays/actors/ovl_En_Knight/z_en_knight.o"
|
||||
include "build/data/ovl_En_Knight/ovl_En_Knight.data.o"
|
||||
include "build/data/ovl_En_Knight/ovl_En_Knight.bss.o"
|
||||
include "build/data/ovl_En_Knight/ovl_En_Knight.reloc.o"
|
||||
include "build/src/overlays/actors/ovl_En_Knight/ovl_En_Knight_reloc.o"
|
||||
endseg
|
||||
|
||||
beginseg
|
||||
|
||||
@@ -267,7 +267,7 @@ void func_809F24C8(Boss06* this, PlayState* play) {
|
||||
this->subCamAt.z = 2860.0f;
|
||||
|
||||
if (this->unk_1CA == 75) {
|
||||
D_809F4970->unk_148 = 1;
|
||||
D_809F4970->unk148 = 1;
|
||||
}
|
||||
sp4E = 17;
|
||||
break;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,21 +9,106 @@ typedef void (*EnKnightActionFunc)(struct EnKnight*, PlayState*);
|
||||
|
||||
typedef struct EnKnight {
|
||||
/* 0x000 */ Actor actor;
|
||||
/* 0x144 */ s16 unk_144;
|
||||
/* 0x146 */ char unk_146[0x2];
|
||||
/* 0x148 */ s8 unk_148;
|
||||
/* 0x149 */ char unk_149[0x8];
|
||||
/* 0x151 */ s8 unk_151;
|
||||
/* 0x152 */ char unk_152[0x1];
|
||||
/* 0x144 */ u16 unk_144;
|
||||
/* 0x146 */ s16 unk146;
|
||||
/* 0x148 */ u8 unk148;
|
||||
/* 0x14A */ s16 unk14A[3];
|
||||
/* 0x150 */ char pad150[1];
|
||||
/* 0x151 */ u8 unk_151;
|
||||
/* 0x152 */ u8 unk152;
|
||||
/* 0x153 */ u8 unk_153;
|
||||
/* 0x154 */ u8 unk_154;
|
||||
/* 0x155 */ char unk_155[0x2CB];
|
||||
/* 0x156 */ s16 unk156;
|
||||
/* 0x158 */ s16 unk158;
|
||||
/* 0x15A */ s16 unk15A;
|
||||
/* 0x15C */ s16 unk15C;
|
||||
/* 0x15E */ s16 unk15E;
|
||||
/* 0x160 */ s16 unk160;
|
||||
/* 0x162 */ u8 unk162;
|
||||
/* 0x164 */ Vec3f unk164;
|
||||
/* 0x170 */ s16 unk170;
|
||||
/* 0x172 */ s16 unk172;
|
||||
/* 0x174 */ s16 unk174;
|
||||
/* 0x176 */ s16 unk176;
|
||||
/* 0x178 */ s16 unk178;
|
||||
/* 0x17A */ s16 unk17A;
|
||||
/* 0x17C */ f32 unk17C;
|
||||
/* 0x180 */ f32 unk180;
|
||||
/* 0x184 */ s16 unk184;
|
||||
/* 0x186 */ s16 unk186;
|
||||
/* 0x188 */ s16 unk188;
|
||||
/* 0x18A */ s16 unk18A;
|
||||
/* 0x18C */ s16 unk18C;
|
||||
/* 0x18E */ s16 unk18E;
|
||||
/* 0x190 */ u8 unk190;
|
||||
/* 0x191 */ u8 unk191;
|
||||
/* 0x192 */ u8 unk192;
|
||||
/* 0x193 */ u8 unk193;
|
||||
/* 0x194 */ SkelAnime unk194;
|
||||
/* 0x1D8 */ f32 unk1D8;
|
||||
/* 0x1DC */ Vec3f unk1DC[15];
|
||||
/* 0x290 */ u8 unk290;
|
||||
/* 0x291 */ u8 unk291;
|
||||
/* 0x292 */ u8 unk292;
|
||||
/* 0x294 */ f32 unk294;
|
||||
/* 0x298 */ f32 unk298;
|
||||
/* 0x29C */ f32 unk29C;
|
||||
/* 0x2A0 */ u8 unk2A0;
|
||||
/* 0x2A1 */ u8 unk2A1;
|
||||
/* 0x2A2 */ s16 unk2A2;
|
||||
/* 0x2A4 */ f32 unk2A4;
|
||||
/* 0x2A8 */ f32 unk2A8;
|
||||
/* 0x2AC */ Vec3f unk2AC[2];
|
||||
/* 0x2C4 */ Vec3s unk2C4[29];
|
||||
/* 0x372 */ Vec3s unk372[29];
|
||||
/* 0x420 */ EnKnightActionFunc actionFunc;
|
||||
/* 0x424 */ char unk_424[0x25C];
|
||||
/* 0x424 */ EnKnightActionFunc unk424;
|
||||
/* 0x428 */ s16 unk428;
|
||||
/* 0x42C */ f32 unk42C;
|
||||
/* 0x430 */ f32 unk430;
|
||||
/* 0x434 */ Vec3f unk434;
|
||||
/* 0x440 */ Vec3f unk440;
|
||||
/* 0x44C */ u8 unk44C;
|
||||
/* 0x450 */ f32 unk450;
|
||||
/* 0x454 */ f32 unk454;
|
||||
/* 0x458 */ f32 unk458;
|
||||
/* 0x45C */ f32 unk45C;
|
||||
/* 0x460 */ f32 unk460;
|
||||
/* 0x464 */ f32 unk464;
|
||||
/* 0x468 */ f32 unk468;
|
||||
/* 0x46C */ f32 unk46C;
|
||||
/* 0x470 */ f32 unk470;
|
||||
/* 0x474 */ f32 unk474;
|
||||
/* 0x478 */ s16 unk478;
|
||||
/* 0x47C */ Vec3f unk47C;
|
||||
/* 0x488 */ ColliderCylinder unk488;
|
||||
/* 0x4D4 */ ColliderJntSph unk4D4;
|
||||
/* 0x4F4 */ ColliderJntSphElement unk4F4[1];
|
||||
/* 0x534 */ ColliderJntSph unk534;
|
||||
/* 0x554 */ ColliderJntSphElement unk554[1];
|
||||
/* 0x594 */ ColliderJntSph unk594;
|
||||
/* 0x5B4 */ ColliderJntSphElement unk5B4[2];
|
||||
/* 0x634 */ ColliderCylinder unk634;
|
||||
/* 0x680 */ u8 unk_680;
|
||||
/* 0x681 */ char unk_681[0x9];
|
||||
/* 0x684 */ u32 unk684;
|
||||
/* 0x688 */ s16 unk688;
|
||||
/* 0x68A */ s16 unk_68A;
|
||||
/* 0x68C */ char pad68C[0x48];
|
||||
/* 0x68C */ Vec3f unk68C;
|
||||
/* 0x698 */ Vec3f unk698;
|
||||
/* 0x6A4 */ f32 unk6A4;
|
||||
/* 0x6A8 */ char pad6A8[4];
|
||||
/* 0x6AC */ s16 unk6AC;
|
||||
/* 0x6B0 */ f32 unk6B0;
|
||||
/* 0x6B4 */ u16 unk6B4;
|
||||
/* 0x6B6 */ u16 unk6B6;
|
||||
/* 0x6B8 */ u16 unk6B8;
|
||||
/* 0x6BA */ char pad6BA[2];
|
||||
/* 0x6BC */ u16 unk6BC;
|
||||
/* 0x6BE */ u16 unk6BE;
|
||||
/* 0x6C0 */ u16 unk6C0;
|
||||
/* 0x6C2 */ u16 unk6C2;
|
||||
/* 0x6C4 */ u8 unk6C4;
|
||||
/* 0x6C8 */ Vec3f unk6C8;
|
||||
} EnKnight; // size = 0x6D4
|
||||
|
||||
#endif // Z_EN_KNIGHT_H
|
||||
|
||||
+2
-6
@@ -75,13 +75,9 @@ def custom_replacements(output):
|
||||
def import_c_file(in_file) -> str:
|
||||
in_file = os.path.relpath(in_file, root_dir)
|
||||
|
||||
cpp_command = ["gcc", "-E", "-P", "-undef", "-dM", *CPP_FLAGS, in_file]
|
||||
cpp_command2 = ["gcc", "-E", "-P", "-undef", *CPP_FLAGS, in_file]
|
||||
cpp_command = ["gcc", "-E", "-P", "-Iinclude", "-Iassets", "-Isrc", "-undef", "-D__sgi", "-D_LANGUAGE_C",
|
||||
"-DNON_MATCHING", "-DM2CTX", "-D_Static_assert(x, y)=", "-D__attribute__(x)=", in_file]
|
||||
|
||||
with tempfile.NamedTemporaryFile(suffix=".c") as tmp:
|
||||
stock_macros = subprocess.check_output(["gcc", "-E", "-P", "-undef", "-dM", tmp.name], cwd=root_dir, encoding="utf-8")
|
||||
|
||||
out_text = ""
|
||||
try:
|
||||
out_text += subprocess.check_output(cpp_command, cwd=root_dir, encoding="utf-8")
|
||||
out_text += subprocess.check_output(cpp_command2, cwd=root_dir, encoding="utf-8")
|
||||
|
||||
@@ -51,6 +51,8 @@ def lookup_sfx(idnum, repo):
|
||||
else:
|
||||
id = idnum
|
||||
idfix,sfxFlag = fix_sfx_flag(id)
|
||||
if idfix is None:
|
||||
return id
|
||||
with open(repo + os.sep + 'include' + os.sep + 'sfx.h','r') as sfxfile:
|
||||
for line in sfxfile:
|
||||
if(line.count(idfix)):
|
||||
@@ -63,6 +65,10 @@ def fix_sfx_flag(id):
|
||||
return splitdata[0].strip(), ' -' + splitdata[1]
|
||||
if id.endswith("U"):
|
||||
id = id[:-1]
|
||||
try:
|
||||
id_hex = int(id, 16)
|
||||
except ValueError:
|
||||
return None,None
|
||||
if not(int(id, 16) & 0x800):
|
||||
newid = '0x' + format(int(id,16) + 0x800,'X')
|
||||
sfxFlag = ' - SFX_FLAG'
|
||||
|
||||
Reference in New Issue
Block a user