mirror of https://github.com/zeldaret/oot.git
Merge branch 'main' into macroify_and_doc_restriction_flags
This commit is contained in:
commit
b47ff0f811
|
@ -0,0 +1,52 @@
|
|||
#include "object_tp.h"
|
||||
#include "gfx.h"
|
||||
|
||||
Gfx gTailpasaranTailSegmentDL[14] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranTailSegmentDL.inc.c"
|
||||
};
|
||||
|
||||
Vtx gTailpasaranTailSegmentVtx[] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranTailSegmentVtx.inc.c"
|
||||
};
|
||||
|
||||
Vtx gTailpasaranHeadClawVtx[] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadClawVtx.inc.c"
|
||||
};
|
||||
|
||||
Vtx gTailpasaranHeadMouthpartsVtx[] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadMouthpartsVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTailpasaranHeadClawDL[54] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadClawDL.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTailpasaranHeadMouthpartsDL[18] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadMouthpartsDL.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTailpasaranHeadDL[3] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadDL.inc.c"
|
||||
};
|
||||
|
||||
u64 gTailpasaranHeadRearTex[TEX_LEN(u64, gTailpasaranHeadRearTex_WIDTH, gTailpasaranHeadRearTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadRearTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u64 gTailpasaranHeadClawBaseTex[TEX_LEN(u64, gTailpasaranHeadClawBaseTex_WIDTH, gTailpasaranHeadClawBaseTex_HEIGHT,
|
||||
16)] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadClawBaseTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u64 gTailpasaranHeadClawTex[TEX_LEN(u64, gTailpasaranHeadClawTex_WIDTH, gTailpasaranHeadClawTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadClawTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u64 gTailpasaranTailSegmentTex[TEX_LEN(u64, gTailpasaranTailSegmentTex_WIDTH, gTailpasaranTailSegmentTex_HEIGHT, 8)] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranTailSegmentTex.ia8.inc.c"
|
||||
};
|
||||
|
||||
u64 gTailpasaranHeadMouthpartsTex[TEX_LEN(u64, gTailpasaranHeadMouthpartsTex_WIDTH,
|
||||
gTailpasaranHeadMouthpartsTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_tp/gTailpasaranHeadMouthpartsTex.rgba16.inc.c"
|
||||
};
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef OBJECT_TP_H
|
||||
#define OBJECT_TP_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
extern Gfx gTailpasaranTailSegmentDL[14];
|
||||
extern Vtx gTailpasaranTailSegmentVtx[];
|
||||
|
||||
extern Gfx gTailpasaranHeadClawDL[54];
|
||||
extern Gfx gTailpasaranHeadMouthpartsDL[18];
|
||||
extern Gfx gTailpasaranHeadDL[3];
|
||||
|
||||
#define gTailpasaranHeadRearTex_WIDTH 8
|
||||
#define gTailpasaranHeadRearTex_HEIGHT 16
|
||||
extern u64 gTailpasaranHeadRearTex[TEX_LEN(u64, gTailpasaranHeadRearTex_WIDTH, gTailpasaranHeadRearTex_HEIGHT, 16)];
|
||||
|
||||
#define gTailpasaranHeadClawBaseTex_WIDTH 8
|
||||
#define gTailpasaranHeadClawBaseTex_HEIGHT 8
|
||||
extern u64 gTailpasaranHeadClawBaseTex[TEX_LEN(u64, gTailpasaranHeadClawBaseTex_WIDTH, gTailpasaranHeadClawBaseTex_HEIGHT, 16)];
|
||||
|
||||
#define gTailpasaranHeadClawTex_WIDTH 16
|
||||
#define gTailpasaranHeadClawTex_HEIGHT 16
|
||||
extern u64 gTailpasaranHeadClawTex[TEX_LEN(u64, gTailpasaranHeadClawTex_WIDTH, gTailpasaranHeadClawTex_HEIGHT, 16)];
|
||||
|
||||
#define gTailpasaranTailSegmentTex_WIDTH 64
|
||||
#define gTailpasaranTailSegmentTex_HEIGHT 64
|
||||
extern u64 gTailpasaranTailSegmentTex[TEX_LEN(u64, gTailpasaranTailSegmentTex_WIDTH, gTailpasaranTailSegmentTex_HEIGHT, 8)];
|
||||
|
||||
#define gTailpasaranHeadMouthpartsTex_WIDTH 8
|
||||
#define gTailpasaranHeadMouthpartsTex_HEIGHT 8
|
||||
extern u64 gTailpasaranHeadMouthpartsTex[TEX_LEN(u64, gTailpasaranHeadMouthpartsTex_WIDTH, gTailpasaranHeadMouthpartsTex_HEIGHT, 16)];
|
||||
|
||||
#endif
|
|
@ -0,0 +1,30 @@
|
|||
#include "object_triforce_spot.h"
|
||||
#include "gfx.h"
|
||||
|
||||
Vtx gTriforceVtx[] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceVtx.inc.c"
|
||||
};
|
||||
|
||||
Vtx gTriforceLightColumnVtx[] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceLightColumnVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTriforceDL[72] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceDL.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTriforceLightColumnDL[26] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceLightColumnDL.inc.c"
|
||||
};
|
||||
|
||||
u64 gTriforceTex[TEX_LEN(u64, gTriforceTex_WIDTH, gTriforceTex_HEIGHT, 8)] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceTex.i8.inc.c"
|
||||
};
|
||||
|
||||
u64 gTriforceColumnSide1Tex[TEX_LEN(u64, gTriforceColumnSide1Tex_WIDTH, gTriforceColumnSide1Tex_HEIGHT, 8)] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceColumnSide1Tex.i8.inc.c"
|
||||
};
|
||||
|
||||
u64 gTriforceColumnSide2Tex[TEX_LEN(u64, gTriforceColumnSide2Tex_WIDTH, gTriforceColumnSide2Tex_HEIGHT, 8)] = {
|
||||
#include "assets/objects/object_triforce_spot/gTriforceColumnSide2Tex.i8.inc.c"
|
||||
};
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef OBJECT_TRIFORCE_SPOT_H
|
||||
#define OBJECT_TRIFORCE_SPOT_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
extern Vtx gTriforceVtx[];
|
||||
extern Gfx gTriforceDL[72];
|
||||
|
||||
extern Gfx gTriforceLightColumnDL[26];
|
||||
|
||||
#define gTriforceTex_WIDTH 64
|
||||
#define gTriforceTex_HEIGHT 64
|
||||
extern u64 gTriforceTex[TEX_LEN(u64, gTriforceTex_WIDTH, gTriforceTex_HEIGHT, 8)];
|
||||
|
||||
#define gTriforceColumnSide1Tex_WIDTH 64
|
||||
#define gTriforceColumnSide1Tex_HEIGHT 32
|
||||
extern u64 gTriforceColumnSide1Tex[TEX_LEN(u64, gTriforceColumnSide1Tex_WIDTH, gTriforceColumnSide1Tex_HEIGHT, 8)];
|
||||
|
||||
#define gTriforceColumnSide2Tex_WIDTH 64
|
||||
#define gTriforceColumnSide2Tex_HEIGHT 32
|
||||
extern u64 gTriforceColumnSide2Tex[TEX_LEN(u64, gTriforceColumnSide2Tex_WIDTH, gTriforceColumnSide2Tex_HEIGHT, 8)];
|
||||
|
||||
#endif
|
|
@ -0,0 +1,24 @@
|
|||
#include "object_umajump.h"
|
||||
#include "array_count.h"
|
||||
#include "camera.h"
|
||||
#include "z_math.h"
|
||||
|
||||
BgCamInfo gJumpableHorseFenceBgCamList[] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceBgCamList.inc.c"
|
||||
};
|
||||
|
||||
SurfaceType gJumpableHorseFenceSurfaceTypes[] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceSurfaceTypes.inc.c"
|
||||
};
|
||||
|
||||
CollisionPoly gJumpableHorseFencePolyList[] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFencePolyList.inc.c"
|
||||
};
|
||||
|
||||
Vec3s gJumpableHorseFenceVtxList[] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceVtxList.inc.c"
|
||||
};
|
||||
|
||||
CollisionHeader gJumpableHorseFenceCol = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceCol.inc.c"
|
||||
};
|
|
@ -0,0 +1,25 @@
|
|||
#include "object_umajump.h"
|
||||
#include "gfx.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
#define gJumpableHorseFenceBrickTex_WIDTH 16
|
||||
#define gJumpableHorseFenceBrickTex_HEIGHT 64
|
||||
u64 gJumpableHorseFenceBrickTex[TEX_LEN(u64, gJumpableHorseFenceBrickTex_WIDTH, gJumpableHorseFenceBrickTex_HEIGHT,
|
||||
16)] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceBrickTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
#define gJumpableHorseFenceMetalBarTex_WIDTH 16
|
||||
#define gJumpableHorseFenceMetalBarTex_HEIGHT 64
|
||||
u64 gJumpableHorseFenceMetalBarTex[TEX_LEN(u64, gJumpableHorseFenceMetalBarTex_WIDTH,
|
||||
gJumpableHorseFenceMetalBarTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceMetalBarTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
Vtx gJumpableHorseFenceVtx[] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gJumpableHorseFenceDL[37] = {
|
||||
#include "assets/objects/object_umajump/gJumpableHorseFenceDL.inc.c"
|
||||
};
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef OBJECT_UMAJUMP_H
|
||||
#define OBJECT_UMAJUMP_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "bgcheck.h"
|
||||
|
||||
extern Gfx gJumpableHorseFenceDL[37];
|
||||
extern CollisionHeader gJumpableHorseFenceCol;
|
||||
|
||||
#endif
|
|
@ -0,0 +1,18 @@
|
|||
#include "object_vase.h"
|
||||
#include "gfx.h"
|
||||
|
||||
Gfx gUnusedVaseDL[52] = {
|
||||
#include "assets/objects/object_vase/gUnusedVaseDL.inc.c"
|
||||
};
|
||||
|
||||
Vtx gUnusedVaseVtx[] = {
|
||||
#include "assets/objects/object_vase/gUnusedVaseVtx.inc.c"
|
||||
};
|
||||
|
||||
u64 gUnusedVaseBodyTex[TEX_LEN(u64, gUnusedVaseBodyTex_WIDTH, gUnusedVaseBodyTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_vase/gUnusedVaseBodyTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u64 gUnusedVaseTopTex[TEX_LEN(u64, gUnusedVaseTopTex_WIDTH, gUnusedVaseTopTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_vase/gUnusedVaseTopTex.rgba16.inc.c"
|
||||
};
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef OBJECT_VASE_H
|
||||
#define OBJECT_VASE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
extern Gfx gUnusedVaseDL[52];
|
||||
|
||||
extern Vtx gUnusedVaseVtx[];
|
||||
|
||||
#define gUnusedVaseBodyTex_WIDTH 32
|
||||
#define gUnusedVaseBodyTex_HEIGHT 32
|
||||
extern u64 gUnusedVaseBodyTex[TEX_LEN(u64, gUnusedVaseBodyTex_WIDTH, gUnusedVaseBodyTex_HEIGHT, 16)];
|
||||
|
||||
#define gUnusedVaseTopTex_WIDTH 32
|
||||
#define gUnusedVaseTopTex_HEIGHT 32
|
||||
extern u64 gUnusedVaseTopTex[TEX_LEN(u64, gUnusedVaseTopTex_WIDTH, gUnusedVaseTopTex_HEIGHT, 16)];
|
||||
|
||||
#endif
|
|
@ -0,0 +1,14 @@
|
|||
#include "object_yukabyun.h"
|
||||
#include "gfx.h"
|
||||
|
||||
u64 gFloorTileEnemyBottomTex[TEX_LEN(u64, gFloorTileEnemyBottomTex_WIDTH, gFloorTileEnemyBottomTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyBottomTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
Vtx gFloorTileEnemyVtx[] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gFloorTileEnemyDL[23] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyDL.inc.c"
|
||||
};
|
|
@ -0,0 +1,19 @@
|
|||
#include "object_yukabyun.h"
|
||||
#include "gfx.h"
|
||||
|
||||
Vtx gFloorTileEnemyFragmentVtx[] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyFragmentVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gFloorTileEnemyFragmentDL[18] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyFragmentDL.inc.c"
|
||||
};
|
||||
|
||||
u64 gFloorTileEnemyTopTex[TEX_LEN(u64, gFloorTileEnemyTopTex_WIDTH, gFloorTileEnemyTopTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyTopTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
u64 gFloorTileEnemyFragmentTex[TEX_LEN(u64, gFloorTileEnemyFragmentTex_WIDTH, gFloorTileEnemyFragmentTex_HEIGHT,
|
||||
16)] = {
|
||||
#include "assets/objects/object_yukabyun/gFloorTileEnemyFragmentTex.rgba16.inc.c"
|
||||
};
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef OBJECT_YUKABYUN_H
|
||||
#define OBJECT_YUKABYUN_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
#define gFloorTileEnemyBottomTex_WIDTH 32
|
||||
#define gFloorTileEnemyBottomTex_HEIGHT 32
|
||||
extern u64 gFloorTileEnemyBottomTex[TEX_LEN(u64, gFloorTileEnemyBottomTex_WIDTH, gFloorTileEnemyBottomTex_HEIGHT, 16)];
|
||||
|
||||
extern Gfx gFloorTileEnemyDL[23];
|
||||
|
||||
extern Gfx gFloorTileEnemyFragmentDL[18];
|
||||
|
||||
#define gFloorTileEnemyTopTex_WIDTH 32
|
||||
#define gFloorTileEnemyTopTex_HEIGHT 32
|
||||
extern u64 gFloorTileEnemyTopTex[TEX_LEN(u64, gFloorTileEnemyTopTex_WIDTH, gFloorTileEnemyTopTex_HEIGHT, 16)];
|
||||
|
||||
#define gFloorTileEnemyFragmentTex_WIDTH 16
|
||||
#define gFloorTileEnemyFragmentTex_HEIGHT 16
|
||||
extern u64 gFloorTileEnemyFragmentTex[TEX_LEN(u64, gFloorTileEnemyFragmentTex_WIDTH, gFloorTileEnemyFragmentTex_HEIGHT, 16)];
|
||||
|
||||
#endif
|
|
@ -0,0 +1,24 @@
|
|||
#include "object_zg.h"
|
||||
#include "array_count.h"
|
||||
#include "camera.h"
|
||||
#include "z_math.h"
|
||||
|
||||
BgCamInfo gTowerCollapseBarsBgCamList[] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsBgCamList.inc.c"
|
||||
};
|
||||
|
||||
SurfaceType gTowerCollapseBarsSurfaceTypes[] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsSurfaceTypes.inc.c"
|
||||
};
|
||||
|
||||
CollisionPoly gTowerCollapseBarsPolyList[] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsPolyList.inc.c"
|
||||
};
|
||||
|
||||
Vec3s gTowerCollapseBarsVtxList[] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsVtxList.inc.c"
|
||||
};
|
||||
|
||||
CollisionHeader gTowerCollapseBarsCol = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsCol.inc.c"
|
||||
};
|
|
@ -0,0 +1,23 @@
|
|||
#include "object_zg.h"
|
||||
#include "gfx.h"
|
||||
#include "tex_len.h"
|
||||
|
||||
#define gTowerCollapseBarMetalTex_WIDTH 32
|
||||
#define gTowerCollapseBarMetalTex_HEIGHT 32
|
||||
u64 gTowerCollapseBarMetalTex[TEX_LEN(u64, gTowerCollapseBarMetalTex_WIDTH, gTowerCollapseBarMetalTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarMetalTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
#define gTowerCollapseBarFlameTex_WIDTH 32
|
||||
#define gTowerCollapseBarFlameTex_HEIGHT 32
|
||||
u64 gTowerCollapseBarFlameTex[TEX_LEN(u64, gTowerCollapseBarFlameTex_WIDTH, gTowerCollapseBarFlameTex_HEIGHT, 16)] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarFlameTex.rgba16.inc.c"
|
||||
};
|
||||
|
||||
Vtx gTowerCollapseBarsVtx[] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsVtx.inc.c"
|
||||
};
|
||||
|
||||
Gfx gTowerCollapseBarsDL[28] = {
|
||||
#include "assets/objects/object_zg/gTowerCollapseBarsDL.inc.c"
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef OBJECT_ZG_H
|
||||
#define OBJECT_ZG_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "bgcheck.h"
|
||||
|
||||
extern Gfx gTowerCollapseBarsDL[28];
|
||||
|
||||
extern CollisionHeader gTowerCollapseBarsCol;
|
||||
|
||||
#endif
|
|
@ -710,16 +710,16 @@ u64 gCBtnSymbolsTex[TEX_LEN(u64, gCBtnSymbolsTex_WIDTH, gCBtnSymbolsTex_HEIGHT,
|
|||
#include "assets/textures/icon_item_static/gCBtnSymbolsTex.ia8.inc.c"
|
||||
};
|
||||
|
||||
#define gNamePanelLeftTex_WIDTH 72
|
||||
#define gNamePanelLeftTex_HEIGHT 24
|
||||
u64 gNamePanelLeftTex[TEX_LEN(u64, gNamePanelLeftTex_WIDTH, gNamePanelLeftTex_HEIGHT, 8)] = {
|
||||
#include "assets/textures/icon_item_static/gNamePanelLeftTex.ia8.inc.c"
|
||||
#define gInfoPanelBgLeftTex_WIDTH 72
|
||||
#define gInfoPanelBgLeftTex_HEIGHT 24
|
||||
u64 gInfoPanelBgLeftTex[TEX_LEN(u64, gInfoPanelBgLeftTex_WIDTH, gInfoPanelBgLeftTex_HEIGHT, 8)] = {
|
||||
#include "assets/textures/icon_item_static/gInfoPanelBgLeftTex.ia8.inc.c"
|
||||
};
|
||||
|
||||
#define gNamePanelRightTex_WIDTH 72
|
||||
#define gNamePanelRightTex_HEIGHT 24
|
||||
u64 gNamePanelRightTex[TEX_LEN(u64, gNamePanelRightTex_WIDTH, gNamePanelRightTex_HEIGHT, 8)] = {
|
||||
#include "assets/textures/icon_item_static/gNamePanelRightTex.ia8.inc.c"
|
||||
#define gInfoPanelBgRightTex_WIDTH 72
|
||||
#define gInfoPanelBgRightTex_HEIGHT 24
|
||||
u64 gInfoPanelBgRightTex[TEX_LEN(u64, gInfoPanelBgRightTex_WIDTH, gInfoPanelBgRightTex_HEIGHT, 8)] = {
|
||||
#include "assets/textures/icon_item_static/gInfoPanelBgRightTex.ia8.inc.c"
|
||||
};
|
||||
|
||||
#define gLButtonTex_WIDTH 24
|
||||
|
@ -748,8 +748,8 @@ u64 gMagicArrowEquipEffectTex[TEX_LEN(u64, gMagicArrowEquipEffectTex_WIDTH, gMag
|
|||
#include "assets/textures/icon_item_static/gMagicArrowEquipEffectTex.ia8.inc.c"
|
||||
};
|
||||
|
||||
Gfx gItemNamePanelDL[18] = {
|
||||
#include "assets/textures/icon_item_static/gItemNamePanelDL.inc.c"
|
||||
Gfx gInfoPanelBgDL[18] = {
|
||||
#include "assets/textures/icon_item_static/gInfoPanelBgDL.inc.c"
|
||||
};
|
||||
|
||||
Gfx gLButtonIconDL[10] = {
|
||||
|
|
|
@ -193,7 +193,7 @@ extern u64 gSongNoteTex[TEX_LEN(u64, gSongNoteTex_WIDTH, gSongNoteTex_HEIGHT, 8)
|
|||
#define gMagicArrowEquipEffectTex_HEIGHT gMagicArrowEquipEffectTex_SIZE
|
||||
extern u64 gMagicArrowEquipEffectTex[TEX_LEN(u64, gMagicArrowEquipEffectTex_WIDTH, gMagicArrowEquipEffectTex_HEIGHT, 8)];
|
||||
|
||||
extern Gfx gItemNamePanelDL[18];
|
||||
extern Gfx gInfoPanelBgDL[18];
|
||||
extern Gfx gLButtonIconDL[10];
|
||||
extern Gfx gRButtonIconDL[10];
|
||||
extern Gfx gCButtonIconsDL[11];
|
||||
|
|
|
@ -169,14 +169,14 @@
|
|||
<Texture Name="gABtnSymbolTex" Format="ia8" Width="24" Height="16" Offset="0x861C0"/>
|
||||
<Texture Name="gBBtnSymbolTex" Format="ia8" Width="24" Height="16" Offset="0x86340"/>
|
||||
<Texture Name="gCBtnSymbolsTex" Format="ia8" Width="48" Height="16" Offset="0x864C0"/>
|
||||
<Texture Name="gNamePanelLeftTex" Format="ia8" Width="72" Height="24" Offset="0x867C0"/>
|
||||
<Texture Name="gNamePanelRightTex" Format="ia8" Width="72" Height="24" Offset="0x86E80"/>
|
||||
<Texture Name="gInfoPanelBgLeftTex" Format="ia8" Width="72" Height="24" Offset="0x867C0"/>
|
||||
<Texture Name="gInfoPanelBgRightTex" Format="ia8" Width="72" Height="24" Offset="0x86E80"/>
|
||||
<Texture Name="gLButtonTex" Format="ia8" Width="24" Height="32" Offset="0x87540"/>
|
||||
<Texture Name="gRButtonTex" Format="ia8" Width="24" Height="32" Offset="0x87840"/>
|
||||
<Texture Name="gUnknownJPNTex" Format="ia8" Width="80" Height="16" Offset="0x87B40"/>
|
||||
<Texture Name="gSongNoteTex" Format="ia8" Width="16" Height="24" Offset="0x88040"/>
|
||||
<Texture Name="gMagicArrowEquipEffectTex" Format="ia8" Width="32" Height="32" Offset="0x881C0"/>
|
||||
<DList Name="gItemNamePanelDL" Offset="0x885C0"/>
|
||||
<DList Name="gInfoPanelBgDL" Offset="0x885C0"/>
|
||||
<DList Name="gLButtonIconDL" Offset="0x88650"/>
|
||||
<DList Name="gRButtonIconDL" Offset="0x886A0"/>
|
||||
<DList Name="gCButtonIconsDL" Offset="0x886F0"/>
|
||||
|
|
|
@ -171,14 +171,14 @@
|
|||
<Texture Name="gABtnSymbolTex" Format="ia8" Width="24" Height="16" Offset="0x875C0"/>
|
||||
<Texture Name="gBBtnSymbolTex" Format="ia8" Width="24" Height="16" Offset="0x87740"/>
|
||||
<Texture Name="gCBtnSymbolsTex" Format="ia8" Width="48" Height="16" Offset="0x878C0"/>
|
||||
<Texture Name="gNamePanelLeftTex" Format="ia8" Width="72" Height="24" Offset="0x87BC0"/>
|
||||
<Texture Name="gNamePanelRightTex" Format="ia8" Width="72" Height="24" Offset="0x88280"/>
|
||||
<Texture Name="gInfoPanelBgLeftTex" Format="ia8" Width="72" Height="24" Offset="0x87BC0"/>
|
||||
<Texture Name="gInfoPanelBgRightTex" Format="ia8" Width="72" Height="24" Offset="0x88280"/>
|
||||
<Texture Name="gLButtonTex" Format="ia8" Width="24" Height="32" Offset="0x88940"/>
|
||||
<Texture Name="gRButtonTex" Format="ia8" Width="24" Height="32" Offset="0x88C40"/>
|
||||
<Texture Name="gUnknownJPNTex" Format="ia8" Width="80" Height="16" Offset="0x88F40"/>
|
||||
<Texture Name="gSongNoteTex" Format="ia8" Width="16" Height="24" Offset="0x89440"/>
|
||||
<Texture Name="gMagicArrowEquipEffectTex" Format="ia8" Width="32" Height="32" Offset="0x895C0"/>
|
||||
<DList Name="gItemNamePanelDL" Offset="0x899C0"/>
|
||||
<DList Name="gInfoPanelBgDL" Offset="0x899C0"/>
|
||||
<DList Name="gLButtonIconDL" Offset="0x89A50"/>
|
||||
<DList Name="gRButtonIconDL" Offset="0x89AA0"/>
|
||||
<DList Name="gCButtonIconsDL" Offset="0x89AF0"/>
|
||||
|
|
|
@ -334,7 +334,7 @@ typedef enum CameraDataType {
|
|||
/* 0x13 */ CAM_DATA_AT_OFFSET_X,
|
||||
/* 0x14 */ CAM_DATA_AT_OFFSET_Y,
|
||||
/* 0x15 */ CAM_DATA_AT_OFFSET_Z,
|
||||
/* 0x16 */ CAM_DATA_UNK_22,
|
||||
/* 0x16 */ CAM_DATA_INIT_TIMER,
|
||||
/* 0x17 */ CAM_DATA_UNK_23,
|
||||
/* 0x18 */ CAM_DATA_FOV_SCALE,
|
||||
/* 0x19 */ CAM_DATA_YAW_SCALE,
|
||||
|
@ -846,15 +846,15 @@ typedef struct KeepOn3 {
|
|||
{ interfaceField, CAM_DATA_INTERFACE_FIELD }
|
||||
|
||||
typedef struct KeepOn4ReadOnlyData {
|
||||
/* 0x00 */ f32 unk_00;
|
||||
/* 0x04 */ f32 unk_04;
|
||||
/* 0x08 */ f32 unk_08;
|
||||
/* 0x0C */ f32 unk_0C;
|
||||
/* 0x10 */ f32 unk_10;
|
||||
/* 0x14 */ f32 unk_14;
|
||||
/* 0x18 */ f32 unk_18;
|
||||
/* 0x00 */ f32 yOffset;
|
||||
/* 0x04 */ f32 eyeDist;
|
||||
/* 0x08 */ f32 pitchTarget; // degrees
|
||||
/* 0x0C */ f32 yawTarget; // degrees
|
||||
/* 0x10 */ f32 atOffsetPlayerForwards; // distance to offset `at` by, in the player's forwards direction
|
||||
/* 0x14 */ f32 unk_14; // scale for stepping yaw and pitch of "at to eye" to target
|
||||
/* 0x18 */ f32 fovTarget;
|
||||
/* 0x1C */ s16 interfaceField;
|
||||
/* 0x1E */ s16 unk_1E;
|
||||
/* 0x1E */ s16 initTimer;
|
||||
} KeepOn4ReadOnlyData; // size = 0x20
|
||||
|
||||
typedef enum CameraItemType {
|
||||
|
@ -874,14 +874,14 @@ typedef enum CameraItemType {
|
|||
} CameraItemType;
|
||||
|
||||
typedef struct KeepOn4ReadWriteData {
|
||||
/* 0x00 */ f32 unk_00;
|
||||
/* 0x04 */ f32 unk_04;
|
||||
/* 0x08 */ f32 unk_08;
|
||||
/* 0x0C */ s16 unk_0C;
|
||||
/* 0x0E */ s16 unk_0E;
|
||||
/* 0x10 */ s16 unk_10;
|
||||
/* 0x12 */ s16 unk_12;
|
||||
/* 0x14 */ s16 unk_14;
|
||||
/* 0x00 */ f32 atToEyeTargetStepYaw; // binang
|
||||
/* 0x04 */ f32 atToEyeTargetStepPitch; // binang
|
||||
/* 0x08 */ f32 unk_08; // set but unused
|
||||
/* 0x0C */ s16 atToEyeTargetYaw;
|
||||
/* 0x0E */ s16 atToEyeTargetPitch;
|
||||
/* 0x10 */ s16 animTimer;
|
||||
/* 0x12 */ s16 unk_12; // set but unused
|
||||
/* 0x14 */ s16 itemType;
|
||||
} KeepOn4ReadWriteData; // size = 0x18
|
||||
|
||||
typedef struct KeepOn4 {
|
||||
|
@ -898,16 +898,16 @@ typedef struct KeepOn4 {
|
|||
#define KEEPON4_FLAG_6 (1 << 6)
|
||||
#define KEEPON4_FLAG_7 (1 << 7)
|
||||
|
||||
#define CAM_FUNCDATA_KEEP4(yOffset, eyeDist, pitchTarget, yawTarget, atOffsetZ, fov, interfaceField, yawUpdateRateTarget, unk_22) \
|
||||
#define CAM_FUNCDATA_KEEP4(yOffset, eyeDist, pitchTarget, yawTarget, atOffsetPlayerForwards, fov, interfaceField, unk_14, initTimer) \
|
||||
{ yOffset, CAM_DATA_Y_OFFSET }, \
|
||||
{ eyeDist, CAM_DATA_EYE_DIST }, \
|
||||
{ pitchTarget, CAM_DATA_PITCH_TARGET }, \
|
||||
{ yawTarget, CAM_DATA_YAW_TARGET }, \
|
||||
{ atOffsetZ, CAM_DATA_AT_OFFSET_Z }, \
|
||||
{ atOffsetPlayerForwards, CAM_DATA_AT_OFFSET_Z }, \
|
||||
{ fov, CAM_DATA_FOV }, \
|
||||
{ interfaceField, CAM_DATA_INTERFACE_FIELD }, \
|
||||
{ yawUpdateRateTarget, CAM_DATA_YAW_UPDATE_RATE_TARGET }, \
|
||||
{ unk_22, CAM_DATA_UNK_22 }
|
||||
{ unk_14, CAM_DATA_YAW_UPDATE_RATE_TARGET }, \
|
||||
{ initTimer, CAM_DATA_INIT_TIMER }
|
||||
|
||||
typedef struct KeepOn0ReadOnlyData {
|
||||
/* 0x00 */ f32 fovScale;
|
||||
|
@ -1463,7 +1463,7 @@ typedef struct Special5 {
|
|||
{ yOffset, CAM_DATA_Y_OFFSET }, \
|
||||
{ eyeDist, CAM_DATA_EYE_DIST }, \
|
||||
{ eyeDistNext, CAM_DATA_EYE_DIST_NEXT }, \
|
||||
{ unk_22, CAM_DATA_UNK_22 }, \
|
||||
{ unk_22, CAM_DATA_INIT_TIMER }, \
|
||||
{ pitchTarget, CAM_DATA_PITCH_TARGET }, \
|
||||
{ fov, CAM_DATA_FOV }, \
|
||||
{ atLerpStepScale, CAM_DATA_AT_LERP_STEP_SCALE }, \
|
||||
|
@ -1477,7 +1477,7 @@ typedef struct Special5 {
|
|||
{ pitchTarget, CAM_DATA_PITCH_TARGET }, \
|
||||
{ fov, CAM_DATA_FOV }, \
|
||||
{ atLerpStepScale, CAM_DATA_AT_LERP_STEP_SCALE }, \
|
||||
{ unk_22, CAM_DATA_UNK_22 }, \
|
||||
{ unk_22, CAM_DATA_INIT_TIMER }, \
|
||||
{ interfaceField, CAM_DATA_INTERFACE_FIELD }
|
||||
|
||||
typedef struct Special7ReadWriteData {
|
||||
|
|
|
@ -168,7 +168,7 @@ typedef struct PauseContext {
|
|||
/* 0x0148 */ Vtx* equipPageVtx;
|
||||
/* 0x014C */ Vtx* mapPageVtx;
|
||||
/* 0x0150 */ Vtx* questPageVtx;
|
||||
/* 0x0154 */ Vtx* infoPanelVtx;
|
||||
/* 0x0154 */ Vtx* uiOverlayVtx;
|
||||
/* 0x0158 */ Vtx* itemVtx;
|
||||
/* 0x015C */ Vtx* equipVtx;
|
||||
/* 0x0160 */ char unk_160[0x04];
|
||||
|
|
|
@ -647,16 +647,16 @@ typedef enum PlayerKnockbackType {
|
|||
/* 0 */ PLAYER_KNOCKBACK_NONE, // No knockback
|
||||
/* 1 */ PLAYER_KNOCKBACK_SMALL, // A small hop, remains standing up
|
||||
/* 2 */ PLAYER_KNOCKBACK_LARGE, // Sent flying in the air and lands laying down on the floor
|
||||
/* 3 */ PLAYER_KNOCKBACK_LARGE_SHOCK // Same as`PLAYER_KNOCKBACK_LARGE` with a shock effect
|
||||
/* 3 */ PLAYER_KNOCKBACK_LARGE_ELECTRIFIED // Same as`PLAYER_KNOCKBACK_LARGE` with a shock effect
|
||||
} PlayerKnockbackType;
|
||||
|
||||
typedef enum PlayerDamageResponseType {
|
||||
typedef enum PlayerHitResponseType {
|
||||
/* 0 */ PLAYER_HIT_RESPONSE_NONE,
|
||||
/* 1 */ PLAYER_HIT_RESPONSE_KNOCKBACK_LARGE,
|
||||
/* 2 */ PLAYER_HIT_RESPONSE_KNOCKBACK_SMALL,
|
||||
/* 3 */ PLAYER_HIT_RESPONSE_ICE_TRAP,
|
||||
/* 4 */ PLAYER_HIT_RESPONSE_ELECTRIC_SHOCK
|
||||
} PlayerDamageResponseType;
|
||||
/* 3 */ PLAYER_HIT_RESPONSE_FROZEN,
|
||||
/* 4 */ PLAYER_HIT_RESPONSE_ELECTRIFIED
|
||||
} PlayerHitResponseType;
|
||||
|
||||
typedef struct PlayerAgeProperties {
|
||||
/* 0x00 */ f32 ceilingCheckHeight;
|
||||
|
|
11
spec/spec
11
spec/spec
|
@ -1707,7 +1707,8 @@ beginseg
|
|||
name "object_yukabyun"
|
||||
compress
|
||||
romalign 0x1000
|
||||
include "$(BUILD_DIR)/assets/objects/object_yukabyun/object_yukabyun.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_yukabyun/gFloorTileEnemyDL.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_yukabyun/gFloorTileEnemyFragmentDL.o"
|
||||
number 6
|
||||
endseg
|
||||
|
||||
|
@ -1923,7 +1924,7 @@ beginseg
|
|||
name "object_vase"
|
||||
compress
|
||||
romalign 0x1000
|
||||
include "$(BUILD_DIR)/assets/objects/object_vase/object_vase.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_vase/gUnusedVaseDL.o"
|
||||
number 6
|
||||
endseg
|
||||
|
||||
|
@ -2883,7 +2884,8 @@ beginseg
|
|||
name "object_umajump"
|
||||
compress
|
||||
romalign 0x1000
|
||||
include "$(BUILD_DIR)/assets/objects/object_umajump/object_umajump.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_umajump/gJumpableHorseFenceDL.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_umajump/gJumpableHorseFenceCol.o"
|
||||
number 6
|
||||
endseg
|
||||
|
||||
|
@ -3555,7 +3557,8 @@ beginseg
|
|||
name "object_zg"
|
||||
compress
|
||||
romalign 0x1000
|
||||
include "$(BUILD_DIR)/assets/objects/object_zg/object_zg.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_zg/gTowerCollapseBarsDL.o"
|
||||
include "$(BUILD_DIR)/assets/objects/object_zg/gTowerCollapseBarsCol.o"
|
||||
number 6
|
||||
endseg
|
||||
|
||||
|
|
|
@ -3698,12 +3698,12 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
camera->play->view.unk_124 = camera->camId | 0x50;
|
||||
return 1;
|
||||
}
|
||||
rwData->unk_14 = *itemType;
|
||||
rwData->itemType = *itemType;
|
||||
camera->stateFlags &= ~CAM_STATE_LOCK_MODE;
|
||||
}
|
||||
|
||||
if (rwData->unk_14 != *itemType) {
|
||||
PRINTF(VT_COL(YELLOW, BLACK) "camera: item: item type changed %d -> %d\n" VT_RST, rwData->unk_14, *itemType);
|
||||
if (rwData->itemType != *itemType) {
|
||||
PRINTF(VT_COL(YELLOW, BLACK) "camera: item: item type changed %d -> %d\n" VT_RST, rwData->itemType, *itemType);
|
||||
camera->animState = 20;
|
||||
camera->stateFlags |= CAM_STATE_LOCK_MODE;
|
||||
camera->stateFlags &= ~(CAM_STATE_CHECK_WATER | CAM_STATE_CHECK_BG);
|
||||
|
@ -3717,115 +3717,115 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
CameraModeValue* values = sCameraSettings[camera->setting].cameraModes[camera->mode].values;
|
||||
f32 yNormal = 1.0f + t - (68.0f / playerHeight * t);
|
||||
|
||||
roData->unk_00 = GET_NEXT_SCALED_RO_DATA(values) * playerHeight * yNormal;
|
||||
roData->unk_04 = GET_NEXT_SCALED_RO_DATA(values) * playerHeight * yNormal;
|
||||
roData->unk_08 = GET_NEXT_RO_DATA(values);
|
||||
roData->unk_0C = GET_NEXT_RO_DATA(values);
|
||||
roData->unk_10 = GET_NEXT_RO_DATA(values);
|
||||
roData->unk_18 = GET_NEXT_RO_DATA(values);
|
||||
roData->yOffset = GET_NEXT_SCALED_RO_DATA(values) * playerHeight * yNormal;
|
||||
roData->eyeDist = GET_NEXT_SCALED_RO_DATA(values) * playerHeight * yNormal;
|
||||
roData->pitchTarget = GET_NEXT_RO_DATA(values);
|
||||
roData->yawTarget = GET_NEXT_RO_DATA(values);
|
||||
roData->atOffsetPlayerForwards = GET_NEXT_RO_DATA(values);
|
||||
roData->fovTarget = GET_NEXT_RO_DATA(values);
|
||||
roData->interfaceField = GET_NEXT_RO_DATA(values);
|
||||
roData->unk_14 = GET_NEXT_SCALED_RO_DATA(values);
|
||||
roData->unk_1E = GET_NEXT_RO_DATA(values);
|
||||
roData->initTimer = GET_NEXT_RO_DATA(values);
|
||||
PRINTF("camera: item: type %d\n", *itemType);
|
||||
switch (*itemType) {
|
||||
case CAM_ITEM_TYPE_1:
|
||||
roData->unk_00 = playerHeight * -0.6f * yNormal;
|
||||
roData->unk_04 = playerHeight * 2.0f * yNormal;
|
||||
roData->unk_08 = 10.0f;
|
||||
roData->yOffset = playerHeight * -0.6f * yNormal;
|
||||
roData->eyeDist = playerHeight * 2.0f * yNormal;
|
||||
roData->pitchTarget = 10.0f;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_2:
|
||||
case CAM_ITEM_TYPE_3:
|
||||
roData->unk_08 = -20.0f;
|
||||
roData->unk_18 = 80.0f;
|
||||
roData->pitchTarget = -20.0f;
|
||||
roData->fovTarget = 80.0f;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_4:
|
||||
roData->unk_00 = playerHeight * -0.2f * yNormal;
|
||||
roData->unk_08 = 25.0f;
|
||||
roData->yOffset = playerHeight * -0.2f * yNormal;
|
||||
roData->pitchTarget = 25.0f;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_8:
|
||||
roData->unk_00 = playerHeight * -0.2f * yNormal;
|
||||
roData->unk_04 = playerHeight * 0.8f * yNormal;
|
||||
roData->unk_08 = 50.0f;
|
||||
roData->unk_18 = 70.0f;
|
||||
roData->yOffset = playerHeight * -0.2f * yNormal;
|
||||
roData->eyeDist = playerHeight * 0.8f * yNormal;
|
||||
roData->pitchTarget = 50.0f;
|
||||
roData->fovTarget = 70.0f;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_9:
|
||||
roData->unk_00 = playerHeight * 0.1f * yNormal;
|
||||
roData->unk_04 = playerHeight * 0.5f * yNormal;
|
||||
roData->unk_08 = -20.0f;
|
||||
roData->unk_0C = 0.0f;
|
||||
roData->yOffset = playerHeight * 0.1f * yNormal;
|
||||
roData->eyeDist = playerHeight * 0.5f * yNormal;
|
||||
roData->pitchTarget = -20.0f;
|
||||
roData->yawTarget = 0.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_A_HEARTS_MAGIC_FORCE, KEEPON4_FLAG_6);
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_5:
|
||||
roData->unk_00 = playerHeight * -0.4f * yNormal;
|
||||
roData->unk_08 = -10.0f;
|
||||
roData->unk_0C = 45.0f;
|
||||
roData->yOffset = playerHeight * -0.4f * yNormal;
|
||||
roData->pitchTarget = -10.0f;
|
||||
roData->yawTarget = 45.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_ALL, KEEPON4_FLAG_1);
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_10:
|
||||
roData->unk_00 = playerHeight * -0.5f * yNormal;
|
||||
roData->unk_04 = playerHeight * 1.5f * yNormal;
|
||||
roData->unk_08 = -15.0f;
|
||||
roData->unk_0C = 175.0f;
|
||||
roData->unk_18 = 70.0f;
|
||||
roData->yOffset = playerHeight * -0.5f * yNormal;
|
||||
roData->eyeDist = playerHeight * 1.5f * yNormal;
|
||||
roData->pitchTarget = -15.0f;
|
||||
roData->yawTarget = 175.0f;
|
||||
roData->fovTarget = 70.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_NOTHING_ALT, KEEPON4_FLAG_1);
|
||||
roData->unk_1E = 0x3C;
|
||||
roData->initTimer = 0x3C;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_12:
|
||||
roData->unk_00 = playerHeight * -0.6f * yNormal;
|
||||
roData->unk_04 = playerHeight * 1.6f * yNormal;
|
||||
roData->unk_08 = -2.0f;
|
||||
roData->unk_0C = 120.0f;
|
||||
roData->unk_10 = player->stateFlags1 & PLAYER_STATE1_27 ? 0.0f : 20.0f;
|
||||
roData->yOffset = playerHeight * -0.6f * yNormal;
|
||||
roData->eyeDist = playerHeight * 1.6f * yNormal;
|
||||
roData->pitchTarget = -2.0f;
|
||||
roData->yawTarget = 120.0f;
|
||||
roData->atOffsetPlayerForwards = player->stateFlags1 & PLAYER_STATE1_27 ? 0.0f : 20.0f;
|
||||
roData->interfaceField = CAM_INTERFACE_FIELD(CAM_LETTERBOX_LARGE, CAM_HUD_VISIBILITY_NOTHING_ALT,
|
||||
KEEPON4_FLAG_4 | KEEPON4_FLAG_1);
|
||||
roData->unk_1E = 0x1E;
|
||||
roData->unk_18 = 50.0f;
|
||||
roData->initTimer = 0x1E;
|
||||
roData->fovTarget = 50.0f;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_90:
|
||||
roData->unk_00 = playerHeight * -0.3f * yNormal;
|
||||
roData->unk_18 = 45.0f;
|
||||
roData->yOffset = playerHeight * -0.3f * yNormal;
|
||||
roData->fovTarget = 45.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_IGNORE, KEEPON4_FLAG_1);
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_91:
|
||||
roData->unk_00 = playerHeight * -0.1f * yNormal;
|
||||
roData->unk_04 = playerHeight * 1.5f * yNormal;
|
||||
roData->unk_08 = -3.0f;
|
||||
roData->unk_0C = 10.0f;
|
||||
roData->unk_18 = 55.0f;
|
||||
roData->yOffset = playerHeight * -0.1f * yNormal;
|
||||
roData->eyeDist = playerHeight * 1.5f * yNormal;
|
||||
roData->pitchTarget = -3.0f;
|
||||
roData->yawTarget = 10.0f;
|
||||
roData->fovTarget = 55.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_IGNORE, KEEPON4_FLAG_3);
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_81:
|
||||
roData->unk_00 = playerHeight * -0.3f * yNormal;
|
||||
roData->unk_04 = playerHeight * 1.5f * yNormal;
|
||||
roData->unk_08 = 2.0f;
|
||||
roData->unk_18 = 45.0f;
|
||||
roData->unk_0C = 20.0f;
|
||||
roData->unk_10 = 20.0f;
|
||||
roData->yOffset = playerHeight * -0.3f * yNormal;
|
||||
roData->eyeDist = playerHeight * 1.5f * yNormal;
|
||||
roData->pitchTarget = 2.0f;
|
||||
roData->fovTarget = 45.0f;
|
||||
roData->yawTarget = 20.0f;
|
||||
roData->atOffsetPlayerForwards = 20.0f;
|
||||
roData->interfaceField =
|
||||
CAM_INTERFACE_FIELD(CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_NOTHING_ALT, KEEPON4_FLAG_7);
|
||||
roData->unk_1E = 0x1E;
|
||||
roData->initTimer = 0x1E;
|
||||
break;
|
||||
|
||||
case CAM_ITEM_TYPE_11:
|
||||
roData->unk_00 = playerHeight * -0.19f * yNormal;
|
||||
roData->unk_04 = playerHeight * 0.7f * yNormal;
|
||||
roData->unk_0C = 130.0f;
|
||||
roData->unk_10 = 10.0f;
|
||||
roData->yOffset = playerHeight * -0.19f * yNormal;
|
||||
roData->eyeDist = playerHeight * 0.7f * yNormal;
|
||||
roData->yawTarget = 130.0f;
|
||||
roData->atOffsetPlayerForwards = 10.0f;
|
||||
roData->interfaceField = CAM_INTERFACE_FIELD(
|
||||
CAM_LETTERBOX_MEDIUM, CAM_HUD_VISIBILITY_A_HEARTS_MAGIC_FORCE, KEEPON4_FLAG_5 | KEEPON4_FLAG_1);
|
||||
break;
|
||||
|
@ -3844,10 +3844,10 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
sAtTarget = playerPosRot->pos;
|
||||
sAtTarget.y += playerHeight;
|
||||
temp_f0_2 = BgCheck_CameraRaycastDown2(&camera->play->colCtx, &spC0, &i, &sAtTarget);
|
||||
if (temp_f0_2 > (roData->unk_00 + sAtTarget.y)) {
|
||||
if (temp_f0_2 > (roData->yOffset + sAtTarget.y)) {
|
||||
sAtTarget.y = temp_f0_2 + 10.0f;
|
||||
} else {
|
||||
sAtTarget.y += roData->unk_00;
|
||||
sAtTarget.y += roData->yOffset;
|
||||
}
|
||||
|
||||
lineOCCheckNumExclusions = 0;
|
||||
|
@ -3858,38 +3858,38 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
lineOCCheckNumExclusions++;
|
||||
func_80043ABC(camera);
|
||||
camera->stateFlags &= ~(CAM_STATE_CHECK_WATER | CAM_STATE_CHECK_BG);
|
||||
rwData->unk_10 = roData->unk_1E;
|
||||
rwData->animTimer = roData->initTimer;
|
||||
rwData->unk_08 = playerPosRot->pos.y - camera->playerPosDelta.y;
|
||||
if (roData->interfaceField & KEEPON4_FLAG_1) {
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->unk_08);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->pitchTarget);
|
||||
atToEyeBaseYaw = (s16)((s16)(playerPosRot->rot.y - 0x7FFF) - atToEyeNextDir.yaw) > 0
|
||||
? (s16)(playerPosRot->rot.y - 0x7FFF) + CAM_DEG_TO_BINANG(roData->unk_0C)
|
||||
: (s16)(playerPosRot->rot.y - 0x7FFF) - CAM_DEG_TO_BINANG(roData->unk_0C);
|
||||
? (s16)(playerPosRot->rot.y - 0x7FFF) + CAM_DEG_TO_BINANG(roData->yawTarget)
|
||||
: (s16)(playerPosRot->rot.y - 0x7FFF) - CAM_DEG_TO_BINANG(roData->yawTarget);
|
||||
} else if (roData->interfaceField & KEEPON4_FLAG_2) {
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->unk_08);
|
||||
atToEyeBaseYaw = CAM_DEG_TO_BINANG(roData->unk_0C);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->pitchTarget);
|
||||
atToEyeBaseYaw = CAM_DEG_TO_BINANG(roData->yawTarget);
|
||||
} else if ((roData->interfaceField & KEEPON4_FLAG_3) && camera->target != NULL) {
|
||||
PosRot sp60;
|
||||
|
||||
sp60 = Actor_GetWorldPosShapeRot(camera->target);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->unk_08) - sp60.rot.x;
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->pitchTarget) - sp60.rot.x;
|
||||
atToEyeBaseYaw = (s16)((s16)(sp60.rot.y - 0x7FFF) - atToEyeNextDir.yaw) > 0
|
||||
? (s16)(sp60.rot.y - 0x7FFF) + CAM_DEG_TO_BINANG(roData->unk_0C)
|
||||
: (s16)(sp60.rot.y - 0x7FFF) - CAM_DEG_TO_BINANG(roData->unk_0C);
|
||||
? (s16)(sp60.rot.y - 0x7FFF) + CAM_DEG_TO_BINANG(roData->yawTarget)
|
||||
: (s16)(sp60.rot.y - 0x7FFF) - CAM_DEG_TO_BINANG(roData->yawTarget);
|
||||
lineOCCheckExclusions[1] = camera->target;
|
||||
lineOCCheckNumExclusions++;
|
||||
} else if ((roData->interfaceField & KEEPON4_FLAG_7) && camera->target != NULL) {
|
||||
PosRot sp4C;
|
||||
|
||||
sp4C = Actor_GetWorld(camera->target);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->unk_08);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->pitchTarget);
|
||||
sp9E = Camera_XZAngle(&sp4C.pos, &playerPosRot->pos);
|
||||
atToEyeBaseYaw = ((s16)(sp9E - atToEyeNextDir.yaw) > 0) ? sp9E + CAM_DEG_TO_BINANG(roData->unk_0C)
|
||||
: sp9E - CAM_DEG_TO_BINANG(roData->unk_0C);
|
||||
atToEyeBaseYaw = ((s16)(sp9E - atToEyeNextDir.yaw) > 0) ? sp9E + CAM_DEG_TO_BINANG(roData->yawTarget)
|
||||
: sp9E - CAM_DEG_TO_BINANG(roData->yawTarget);
|
||||
lineOCCheckExclusions[1] = camera->target;
|
||||
lineOCCheckNumExclusions++;
|
||||
} else if (roData->interfaceField & KEEPON4_FLAG_6) {
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->unk_08);
|
||||
atToEyeBasePitch = CAM_DEG_TO_BINANG(roData->pitchTarget);
|
||||
atToEyeBaseYaw = atToEyeNextDir.yaw;
|
||||
} else {
|
||||
atToEyeBasePitch = atToEyeNextDir.pitch;
|
||||
|
@ -3898,7 +3898,7 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
|
||||
vecGeo.pitch = atToEyeBasePitch;
|
||||
vecGeo.yaw = atToEyeBaseYaw;
|
||||
vecGeo.r = roData->unk_04;
|
||||
vecGeo.r = roData->eyeDist;
|
||||
sEyeCandidate = Camera_AddVecGeoToVec3f(&sAtTarget, &vecGeo);
|
||||
if (!(roData->interfaceField & KEEPON4_FLAG_0)) {
|
||||
angleCnt = ARRAY_COUNT(sCamCheckAroundOffsetsYaw);
|
||||
|
@ -3916,10 +3916,10 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
PRINTF("camera: item: BG&collision check %d time(s)\n", i);
|
||||
#endif
|
||||
}
|
||||
rwData->unk_04 = (s16)(vecGeo.pitch - atToEyeNextDir.pitch) / (f32)rwData->unk_10;
|
||||
rwData->unk_00 = (s16)(vecGeo.yaw - atToEyeNextDir.yaw) / (f32)rwData->unk_10;
|
||||
rwData->unk_0C = atToEyeNextDir.yaw;
|
||||
rwData->unk_0E = atToEyeNextDir.pitch;
|
||||
rwData->atToEyeTargetStepPitch = (s16)(vecGeo.pitch - atToEyeNextDir.pitch) / (f32)rwData->animTimer;
|
||||
rwData->atToEyeTargetStepYaw = (s16)(vecGeo.yaw - atToEyeNextDir.yaw) / (f32)rwData->animTimer;
|
||||
rwData->atToEyeTargetYaw = atToEyeNextDir.yaw;
|
||||
rwData->atToEyeTargetPitch = atToEyeNextDir.pitch;
|
||||
camera->animState++;
|
||||
rwData->unk_12 = 1;
|
||||
break;
|
||||
|
@ -3932,20 +3932,20 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
camera->yOffsetUpdateRate = 0.25f;
|
||||
camera->atLERPStepScale = 0.75f;
|
||||
Camera_LERPCeilVec3f(&sAtTarget, at, 0.5f, 0.5f, 0.2f);
|
||||
if (roData->unk_10 != 0.0f) {
|
||||
vecGeo.r = roData->unk_10;
|
||||
if (roData->atOffsetPlayerForwards != 0.0f) {
|
||||
vecGeo.r = roData->atOffsetPlayerForwards;
|
||||
vecGeo.pitch = 0;
|
||||
vecGeo.yaw = playerPosRot->rot.y;
|
||||
*at = Camera_AddVecGeoToVec3f(at, &vecGeo);
|
||||
}
|
||||
camera->atLERPStepScale = 0.0f;
|
||||
camera->dist = Camera_LERPCeilF(roData->unk_04, camera->dist, 0.25f, 2.0f);
|
||||
camera->dist = Camera_LERPCeilF(roData->eyeDist, camera->dist, 0.25f, 2.0f);
|
||||
vecGeo.r = camera->dist;
|
||||
if (rwData->unk_10 != 0) {
|
||||
if (rwData->animTimer != 0) {
|
||||
camera->stateFlags |= CAM_STATE_LOCK_MODE;
|
||||
rwData->unk_0C += (s16)rwData->unk_00;
|
||||
rwData->unk_0E += (s16)rwData->unk_04;
|
||||
rwData->unk_10--;
|
||||
rwData->atToEyeTargetYaw += (s16)rwData->atToEyeTargetStepYaw;
|
||||
rwData->atToEyeTargetPitch += (s16)rwData->atToEyeTargetStepPitch;
|
||||
rwData->animTimer--;
|
||||
} else if (roData->interfaceField & KEEPON4_FLAG_4) {
|
||||
camera->stateFlags |= (CAM_STATE_CAM_FUNC_FINISH | CAM_STATE_BLOCK_BG);
|
||||
camera->stateFlags |= (CAM_STATE_CHECK_WATER | CAM_STATE_CHECK_BG);
|
||||
|
@ -3967,12 +3967,12 @@ s32 Camera_KeepOn4(Camera* camera) {
|
|||
}
|
||||
}
|
||||
}
|
||||
vecGeo.yaw = Camera_LERPCeilS(rwData->unk_0C, atToEyeNextDir.yaw, roData->unk_14, 4);
|
||||
vecGeo.pitch = Camera_LERPCeilS(rwData->unk_0E, atToEyeNextDir.pitch, roData->unk_14, 4);
|
||||
vecGeo.yaw = Camera_LERPCeilS(rwData->atToEyeTargetYaw, atToEyeNextDir.yaw, roData->unk_14, 4);
|
||||
vecGeo.pitch = Camera_LERPCeilS(rwData->atToEyeTargetPitch, atToEyeNextDir.pitch, roData->unk_14, 4);
|
||||
*eyeNext = Camera_AddVecGeoToVec3f(at, &vecGeo);
|
||||
*eye = *eyeNext;
|
||||
Camera_BGCheck(camera, at, eye);
|
||||
camera->fov = Camera_LERPCeilF(roData->unk_18, camera->fov, camera->fovUpdateRate, 1.0f);
|
||||
camera->fov = Camera_LERPCeilF(roData->fovTarget, camera->fov, camera->fovUpdateRate, 1.0f);
|
||||
camera->roll = Camera_LERPCeilS(0, camera->roll, 0.5f, 0xA);
|
||||
//! @bug Missing return, but the return value is not used.
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ s16 sCamDataRegsInit[CAM_DATA_MAX] = {
|
|||
0, // CAM_DATA_AT_OFFSET_X
|
||||
0, // CAM_DATA_AT_OFFSET_Y
|
||||
0, // CAM_DATA_AT_OFFSET_Z
|
||||
6, // CAM_DATA_UNK_22
|
||||
6, // CAM_DATA_INIT_TIMER
|
||||
60, // CAM_DATA_UNK_23
|
||||
30, // CAM_DATA_FOV_SCALE
|
||||
0, // CAM_DATA_YAW_SCALE
|
||||
|
|
|
@ -86,7 +86,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_NONE,
|
||||
OCELEM_NONE,
|
||||
},
|
||||
{ 0x00BB, 0x0050, 0x0000, { 0 } },
|
||||
{ 187, 80, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static InitChainEntry sInitChain[] = {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_bdan_switch.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "one_point_cutscene.h"
|
||||
#include "printf.h"
|
||||
|
@ -89,7 +90,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_bombwall.h"
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "printf.h"
|
||||
#include "sfx.h"
|
||||
|
@ -28,7 +29,7 @@ void func_8086EDFC(BgBombwall* this, PlayState* play);
|
|||
void func_8086EE40(BgBombwall* this, PlayState* play);
|
||||
void func_8086EE94(BgBombwall* this, PlayState* play);
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[3] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -73,7 +74,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
3,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_haka_sgami.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "sfx.h"
|
||||
#include "z_lib.h"
|
||||
|
@ -46,7 +47,7 @@ ActorProfile Bg_Haka_Sgami_Profile = {
|
|||
/**/ NULL,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[4] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK2,
|
||||
|
@ -102,7 +103,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
4,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_haka_trap.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "rand.h"
|
||||
#include "sfx.h"
|
||||
|
@ -72,7 +73,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 30, 90, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -106,7 +107,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_bg_hidan_dalm.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "sfx.h"
|
||||
#include "sys_matrix.h"
|
||||
|
@ -39,7 +40,7 @@ ActorProfile Bg_Hidan_Dalm_Profile = {
|
|||
/**/ BgHidanDalm_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementInit[4] = {
|
||||
static ColliderTrisElementInit sTrisElementInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -95,7 +96,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
4,
|
||||
ARRAY_COUNT(sTrisElementInit),
|
||||
sTrisElementInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 30, 83, 0, { 0 } },
|
||||
{ 30, 83, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static CollisionCheckInfoInit sColChkInfoInit = { 1, 80, 100, MASS_IMMOVABLE };
|
||||
|
|
|
@ -41,7 +41,7 @@ static f32 sYPosOffsets[] = {
|
|||
-20.0f, -120.0f, -220.0f, -320.0f, -420.0f,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -75,7 +75,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_hidan_hrock.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "rumble.h"
|
||||
#include "sfx.h"
|
||||
|
@ -37,7 +38,7 @@ ActorProfile Bg_Hidan_Hrock_Profile = {
|
|||
/**/ BgHidanHrock_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -71,7 +72,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -53,7 +54,7 @@ static Gfx* sBreakableWallDLists[] = {
|
|||
gFireTempleLargeBombableWallDL,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -76,7 +77,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ ActorProfile Bg_Hidan_Rsekizou_Profile = {
|
|||
/**/ BgHidanRsekizou_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[6] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -115,7 +115,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
6,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ ActorProfile Bg_Hidan_Sekizou_Profile = {
|
|||
/**/ BgHidanSekizou_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[6] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -119,7 +119,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
6,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ ActorProfile Bg_Hidan_Sima_Profile = {
|
|||
/**/ BgHidanSima_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[2] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -40,7 +41,7 @@ ActorProfile Bg_Jya_Bombchuiwa_Profile = {
|
|||
/**/ BgJyaBombchuiwa_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -63,7 +64,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "printf.h"
|
||||
#include "sfx.h"
|
||||
|
@ -60,7 +61,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "z_bg_jya_goroiwa.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "sfx.h"
|
||||
#include "z_lib.h"
|
||||
|
@ -65,7 +66,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ ActorProfile Bg_Jya_Haheniron_Profile = {
|
|||
/**/ BgJyaHaheniron_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -66,7 +66,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_menkuri_eye.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -37,7 +38,7 @@ ActorProfile Bg_Menkuri_Eye_Profile = {
|
|||
|
||||
static s32 sNumEyesShot;
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK4,
|
||||
|
@ -60,7 +61,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ ActorProfile Bg_Mizu_Bwall_Profile = {
|
|||
/**/ BgMizuBwall_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInitFloor[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInitFloor[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -78,11 +78,11 @@ static ColliderTrisInit sTrisInitFloor = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInitFloor),
|
||||
sTrisElementsInitFloor,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInitRutoWall[1] = {
|
||||
static ColliderTrisElementInit sTrisElementsInitRutoWall[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -105,11 +105,11 @@ static ColliderTrisInit sTrisInitRutoWall = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sTrisElementsInitRutoWall),
|
||||
sTrisElementsInitRutoWall,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInitWall[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInitWall[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -143,7 +143,7 @@ static ColliderTrisInit sTrisInitUnusedWall = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInitWall),
|
||||
sTrisElementsInitWall,
|
||||
};
|
||||
|
||||
|
@ -156,7 +156,7 @@ static ColliderTrisInit sTrisInitStingerWall = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInitWall),
|
||||
sTrisElementsInitWall,
|
||||
};
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ ActorProfile Bg_Mori_Hashigo_Profile = {
|
|||
/**/ NULL,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK4,
|
||||
|
@ -70,7 +70,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_bg_po_event.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -55,7 +56,7 @@ ActorProfile Bg_Po_Event_Profile = {
|
|||
/**/ BgPoEvent_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK4,
|
||||
|
@ -89,7 +90,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_spot06_objects.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -70,7 +71,7 @@ ActorProfile Bg_Spot06_Objects_Profile = {
|
|||
/**/ BgSpot06Objects_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -93,7 +94,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
3,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ ActorProfile Bg_Spot18_Basket_Profile = {
|
|||
/**/ BgSpot18Basket_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[2] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -83,7 +83,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 10, 70, 0, { 0 } },
|
||||
{ 10, 70, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static CollisionCheckInfoInit sColChkInfoInit = { 10, 35, 100, MASS_IMMOVABLE };
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_bg_ydan_maruta.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "one_point_cutscene.h"
|
||||
#include "sfx.h"
|
||||
|
@ -39,7 +40,7 @@ ActorProfile Bg_Ydan_Maruta_Profile = {
|
|||
/**/ BgYdanMaruta_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -73,7 +74,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_bg_ydan_sp.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -51,7 +52,7 @@ ActorProfile Bg_Ydan_Sp_Profile = {
|
|||
/**/ BgYdanSp_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -85,7 +86,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "array_count.h"
|
||||
#include "collision_check.h"
|
||||
|
||||
static u8 D_808C7000[] = {
|
||||
|
@ -10,7 +11,7 @@ static u8 D_808C7000[] = {
|
|||
1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[19] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK3,
|
||||
|
@ -231,7 +232,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
19,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "collision_check.h"
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[19] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK3,
|
||||
|
@ -221,6 +221,6 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
19,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "collision_check.h"
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[9] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK3,
|
||||
|
@ -111,6 +111,6 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
9,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
|
|
@ -92,7 +92,7 @@ ActorProfile Boss_Goma_Profile = {
|
|||
/**/ BossGoma_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sColliderJntSphElementsInit[13] = {
|
||||
static ColliderJntSphElementInit sColliderJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK3,
|
||||
|
@ -247,7 +247,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
13,
|
||||
ARRAY_COUNT(sColliderJntSphElementsInit),
|
||||
sColliderJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "collision_check.h"
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[19] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK4,
|
||||
|
@ -221,7 +221,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
19,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "array_count.h"
|
||||
#include "collision_check.h"
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInitHand[11] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInitHand[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK1,
|
||||
|
@ -133,11 +134,11 @@ static ColliderJntSphInit sJntSphInitHand = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
11,
|
||||
ARRAY_COUNT(sJntSphElementsInitHand),
|
||||
sJntSphElementsInitHand,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInitHead[11] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInitHead[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK1,
|
||||
|
@ -270,7 +271,7 @@ static ColliderJntSphInit sJntSphInitHead = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
11,
|
||||
ARRAY_COUNT(sJntSphElementsInitHead),
|
||||
sJntSphElementsInitHead,
|
||||
};
|
||||
|
||||
|
|
|
@ -245,7 +245,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 85, 120, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInitSupport[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInitSupport[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -272,7 +272,7 @@ static ColliderJntSphInit sJntSphInitSupport = {
|
|||
sJntSphElementsInitSupport,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInitBari[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInitBari[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
|
|
@ -84,7 +84,14 @@ static ColliderCylinderInitType1 sCylinderInit = {
|
|||
OC1_ON | OC1_TYPE_PLAYER,
|
||||
COLSHAPE_CYLINDER,
|
||||
},
|
||||
{ 0x00, { 0x00000000, 0x00, 0x00 }, { 0x00000000, 0x00, 0x00 }, 0x00, 0x00, 0x01 },
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
ATELEM_NONE,
|
||||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 25, 80, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_ON,
|
||||
OCELEM_NONE,
|
||||
},
|
||||
{ 50, 10, 0, { 0 } },
|
||||
{ 50, 10, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static s16 sGrottoEntrances[] = {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_door_killer.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "printf.h"
|
||||
|
@ -73,7 +74,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 20, 100, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -96,7 +97,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_ON,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 30, 40, 0, { 0 } },
|
||||
{ 30, 40, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
void EnAni_SetupAction(EnAni* this, EnAniActionFunc actionFunc) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "z_en_ba.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -51,7 +52,7 @@ ActorProfile En_Ba_Profile = {
|
|||
|
||||
static Vec3f D_809B8080 = { 0.0f, 0.0f, 32.0f };
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[2] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_bb.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "attributes.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
|
@ -225,7 +226,7 @@ ActorProfile En_Bb_Profile = {
|
|||
/**/ EnBb_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -248,7 +249,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ ActorProfile En_Bigokuta_Profile = {
|
|||
/**/ EnBigokuta_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK1,
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_bom.h"
|
||||
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -62,7 +63,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 6, 11, 14, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_bombf.h"
|
||||
#include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "regs.h"
|
||||
|
@ -66,7 +67,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 9, 18, 10, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -89,7 +90,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "z_en_bubble.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "sfx.h"
|
||||
|
@ -36,7 +37,7 @@ ActorProfile En_Bubble_Profile = {
|
|||
/**/ EnBubble_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[2] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -70,7 +71,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/actors/ovl_En_Elf/z_en_elf.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -41,15 +42,17 @@ void EnButte_SetupWaitToDie(EnButte* this);
|
|||
void EnButte_WaitToDie(EnButte* this, PlayState* play);
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{ {
|
||||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0xFFCFFFFF, 0x000, 0x00 },
|
||||
ATELEM_NONE,
|
||||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 0, { { 0, 0, 0 }, 5 }, 100 } },
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0xFFCFFFFF, 0x00, 0x00 },
|
||||
ATELEM_NONE,
|
||||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 0, { { 0, 0, 0 }, 5 }, 100 },
|
||||
},
|
||||
};
|
||||
static ColliderJntSphInit sColliderJntSphInit = {
|
||||
{
|
||||
|
@ -60,7 +63,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "z_en_crow.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
#include "rand.h"
|
||||
|
@ -43,7 +44,7 @@ ActorProfile En_Crow_Profile = {
|
|||
/**/ EnCrow_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -66,7 +67,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ ActorProfile En_Dekubaba_Profile = {
|
|||
/**/ EnDekubaba_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[7] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -144,7 +144,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
7,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_dh.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "attributes.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
|
@ -90,7 +91,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 35, 70, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -113,7 +114,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/actors/ovl_En_Dh/z_en_dh.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -151,7 +152,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
5,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
ATELEM_NONE | ATELEM_SFX_NORMAL,
|
||||
ATELEM_NONE,
|
||||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "overlays/actors/ovl_En_Bombf/z_en_bombf.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -63,7 +64,7 @@ ActorProfile En_Dodongo_Profile = {
|
|||
/**/ EnDodongo_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sBodyElementsInit[6] = {
|
||||
static ColliderJntSphElementInit sBodyElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -141,11 +142,11 @@ static ColliderJntSphInit sBodyJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
6,
|
||||
ARRAY_COUNT(sBodyElementsInit),
|
||||
sBodyElementsInit,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sHardElementsInit[3] = {
|
||||
static ColliderTrisElementInit sHardElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK2,
|
||||
|
@ -190,7 +191,7 @@ static ColliderTrisInit sHardTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
3,
|
||||
ARRAY_COUNT(sHardElementsInit),
|
||||
sHardElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_ON,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 16, 20, 0, { 0 } },
|
||||
{ 16, 20, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static CollisionCheckInfoInit2 sColChkInfoInit = { 0, 0, 0, 0, 50 };
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "libc64/math64.h"
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "segmented_address.h"
|
||||
|
@ -62,7 +63,7 @@ ActorProfile En_Fd_Profile = {
|
|||
#define FLARE_DANCER_BODY_DMG 0x04
|
||||
#endif
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[12] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -206,7 +207,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
12,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ELEM_MATERIAL_UNK6,
|
||||
{ 0x00100700, 0x03, 0x20 },
|
||||
{ 0x0D900700, 0x00, 0x00 },
|
||||
ATELEM_ON,
|
||||
ATELEM_ON | ATELEM_SFX_NORMAL,
|
||||
ACELEM_ON,
|
||||
OCELEM_ON,
|
||||
},
|
||||
|
@ -550,7 +550,7 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) {
|
|||
Actor_PlaySfx(&this->actor, NA_SE_EN_FANTOM_LAUGH);
|
||||
}
|
||||
Actor_SetPlayerKnockback(play, &this->actor, 3.0f, this->actor.world.rot.y, 0.0f,
|
||||
PLAYER_KNOCKBACK_LARGE_SHOCK, 0x10);
|
||||
PLAYER_KNOCKBACK_LARGE_ELECTRIFIED, 0x10);
|
||||
}
|
||||
break;
|
||||
case FHGFIRE_LIGHT_BLUE:
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -62,7 +63,7 @@ ActorProfile En_Firefly_Profile = {
|
|||
/**/ EnFirefly_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -85,7 +86,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_fish.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -50,7 +51,7 @@ static Actor* D_80A17010 = NULL;
|
|||
static f32 D_80A17014 = 0.0f;
|
||||
static f32 D_80A17018 = 0.0f;
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -73,7 +74,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "libc64/math64.h"
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "segmented_address.h"
|
||||
|
@ -51,7 +52,7 @@ ActorProfile En_Fw_Profile = {
|
|||
/**/ EnFw_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -74,7 +75,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_geldb.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -119,7 +120,7 @@ static ColliderCylinderInit sBodyCylinderInit = {
|
|||
{ 20, 50, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sBlockTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sBlockTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK2,
|
||||
|
@ -153,7 +154,7 @@ static ColliderTrisInit sBlockTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sBlockTrisElementsInit),
|
||||
sBlockTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/effects/ovl_Effect_Ss_Kakera/z_eff_ss_kakera.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "ichain.h"
|
||||
#include "printf.h"
|
||||
#include "quake.h"
|
||||
|
@ -93,7 +94,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_2,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -54,7 +54,14 @@ static ColliderCylinderInitType1 sCylinderInit = {
|
|||
OC1_ON | OC1_TYPE_ALL,
|
||||
COLSHAPE_CYLINDER,
|
||||
},
|
||||
{ 0x00, { 0x00000000, 0x00, 0x00 }, { 0x00000000, 0x00, 0x00 }, 0x00, 0x00, 0x01 },
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
ATELEM_NONE,
|
||||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 10, 60, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0x00000080, 0x00, 0x00 },
|
||||
ATELEM_NONE | ATELEM_SFX_NORMAL,
|
||||
ATELEM_NONE,
|
||||
ACELEM_ON | ACELEM_HOOKABLE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_honotrap.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -76,7 +77,7 @@ ActorProfile En_Honotrap_Profile = {
|
|||
/**/ EnHonotrap_Draw,
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK4,
|
||||
|
@ -110,7 +111,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ static ColliderCylinderInit sCylinderInit2 = {
|
|||
{ 20, 70, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -166,7 +166,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1 | OC2_UNK1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_horse_ganon.h"
|
||||
|
||||
#include "libc64/math64.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -97,7 +98,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1 | OC2_UNK1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ static ColliderCylinderInitType1 sCylinderInit = {
|
|||
{ 20, 100, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -96,7 +96,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1 | OC2_UNK1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ static ColliderCylinderInitType1 sCylinderInit = {
|
|||
{ 40, 100, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sJntSphElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -88,7 +88,7 @@ static ColliderJntSphInit sJntSphInit = {
|
|||
OC2_TYPE_1 | OC2_UNK1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sJntSphElementsInit),
|
||||
sJntSphElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
{ 25, 80, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK2,
|
||||
|
@ -141,7 +141,7 @@ static ColliderTrisInit sTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sTrisElementsInit),
|
||||
sTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "overlays/actors/ovl_Obj_Makekinsuta/z_obj_makekinsuta.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -70,7 +71,7 @@ ActorProfile En_Insect_Profile = {
|
|||
/**/ EnInsect_Draw,
|
||||
};
|
||||
|
||||
static ColliderJntSphElementInit sColliderElementsInit[1] = {
|
||||
static ColliderJntSphElementInit sColliderElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
|
@ -93,7 +94,7 @@ static ColliderJntSphInit sColliderJntSphInit = {
|
|||
OC2_TYPE_1,
|
||||
COLSHAPE_JNTSPH,
|
||||
},
|
||||
1,
|
||||
ARRAY_COUNT(sColliderElementsInit),
|
||||
sColliderElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_NONE,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 40, 10, 0, { 0 } },
|
||||
{ 40, 10, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static CollisionCheckInfoInit2 sColChkInfoInit = { 0, 0, 0, 0, MASS_IMMOVABLE };
|
||||
|
|
|
@ -44,7 +44,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_NONE,
|
||||
OCELEM_NONE,
|
||||
},
|
||||
{ 200, 200, 0, { 0 } },
|
||||
{ 200, 200, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
void EnMFire1_Init(Actor* thisx, PlayState* play) {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "z_en_mb.h"
|
||||
|
||||
#include "libc64/qrand.h"
|
||||
#include "array_count.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "ichain.h"
|
||||
|
@ -126,7 +127,7 @@ static ColliderCylinderInit sBodyColliderInit = {
|
|||
{ 20, 70, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static ColliderTrisElementInit sFrontShieldingTrisElementsInit[2] = {
|
||||
static ColliderTrisElementInit sFrontShieldingTrisElementsInit[] = {
|
||||
{
|
||||
{
|
||||
ELEM_MATERIAL_UNK2,
|
||||
|
@ -160,7 +161,7 @@ static ColliderTrisInit sFrontShieldingTrisInit = {
|
|||
OC2_NONE,
|
||||
COLSHAPE_TRIS,
|
||||
},
|
||||
2,
|
||||
ARRAY_COUNT(sFrontShieldingTrisElementsInit),
|
||||
sFrontShieldingTrisElementsInit,
|
||||
};
|
||||
|
||||
|
|
|
@ -49,8 +49,15 @@ static ColliderCylinderInitType1 sCylinderInit = {
|
|||
OC1_ON | OC1_TYPE_ALL,
|
||||
COLSHAPE_CYLINDER,
|
||||
},
|
||||
{ 0x00, { 0x00000000, 0x00, 0x00 }, { 0xFFCFFFFF, 0x00, 0x00 }, 0x00, 0x01, 0x01 },
|
||||
{ 22, 37, 0, { 0 } },
|
||||
{
|
||||
ELEM_MATERIAL_UNK0,
|
||||
{ 0x00000000, 0x00, 0x00 },
|
||||
{ 0xFFCFFFFF, 0x00, 0x00 },
|
||||
ATELEM_NONE,
|
||||
ACELEM_ON,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 22, 37, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static s16 sPrices[] = {
|
||||
|
|
|
@ -61,7 +61,7 @@ static ColliderCylinderInit sCylinderInit = {
|
|||
ACELEM_ON,
|
||||
OCELEM_ON,
|
||||
},
|
||||
{ 13, 13, 0, { 0 } },
|
||||
{ 13, 13, 0, { 0, 0, 0 } },
|
||||
};
|
||||
|
||||
static s16 sObjectIds[] = {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue