rename fopAc_ac_c member vars to match TP decomp

This commit is contained in:
LagoLunatic
2024-03-08 21:31:41 -05:00
parent 74d629665c
commit 443691603d
203 changed files with 1569 additions and 1569 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ public:
static const char M_arcname[];
void set_mtx() {
mpMorf->getModel()->setBaseScale(mScale);
mpMorf->getModel()->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(shape_angle);
mpMorf->getModel()->setBaseTRMtx(mDoMtx_stack_c::get());
+2 -2
View File
@@ -140,8 +140,8 @@ public:
BOOL execute();
BOOL draw();
f32 getGroundY() { return mAcch.GetGroundH(); }
MtxP getLeftHandMatrix() { return mCullMtx; }
MtxP getRightHandMatrix() { return mCullMtx; }
MtxP getLeftHandMatrix() { return cullMtx; }
MtxP getRightHandMatrix() { return cullMtx; }
f32 getBaseAnimeFrameRate() { return 1.0f; }
f32 getBaseAnimeFrame() { return 0.0f; }
void restartPoint(s16) {}
+2 -2
View File
@@ -459,8 +459,8 @@ public:
virtual BOOL isTagCheckOK();
virtual f32 getGroundY() { return mAcch.GetGroundH(); }
virtual MtxP getLeftHandMatrix() { return mCullMtx; }
virtual MtxP getRightHandMatrix() { return mCullMtx; }
virtual MtxP getLeftHandMatrix() { return cullMtx; }
virtual MtxP getRightHandMatrix() { return cullMtx; }
virtual f32 getBaseAnimeFrameRate() { return 1.0f; }
virtual f32 getBaseAnimeFrame() { return 0.0f; }
+1 -1
View File
@@ -7,7 +7,7 @@
class daSwTact_c : public fopAc_ac_c {
public:
f32 getR() { return mRadius * mScale.x; }
f32 getR() { return mRadius * scale.x; }
bool _delete();
BOOL CreateHeap();
+53 -53
View File
@@ -103,11 +103,11 @@ enum fopAc_Cull_e {
};
struct actor_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition mBase;
/* 0x24 */ actor_method_class* mSubMtd;
/* 0x28 */ u32 mStatus;
/* 0x2C */ u8 mGroup;
/* 0x2D */ u8 mCullType;
/* 0x00 */ leaf_process_profile_definition base;
/* 0x24 */ actor_method_class* sub_method;
/* 0x28 */ u32 status;
/* 0x2C */ u8 group;
/* 0x2D */ u8 cullType;
}; // Size: 0x30
// Unclear what this is. Only appears in 2 profiles (PLAYER,BG)
@@ -204,9 +204,9 @@ struct actor_place {
};
struct actor_attention_types {
/* 0x00 */ u8 mDistances[8];
/* 0x08 */ cXyz mPosition;
/* 0x14 */ u32 mFlags;
/* 0x00 */ u8 distances[8];
/* 0x08 */ cXyz position;
/* 0x14 */ u32 flags;
}; // Size = 0x18
class JntHit_c;
@@ -214,16 +214,16 @@ class JntHit_c;
struct fopAc_cullSizeSphere {
public:
#ifdef __INTELLISENSE__
/* 0x0 */ Vec mCenter;
/* 0xC */ f32 mRadius;
/* 0x0 */ Vec center;
/* 0xC */ f32 radius;
#else
/* 0x0 */ cXyz mCenter;
/* 0xC */ f32 mRadius;
/* 0x0 */ cXyz center;
/* 0xC */ f32 radius;
fopAc_cullSizeSphere() {}
fopAc_cullSizeSphere(cXyz p, f32 r) {
mCenter = p;
mRadius = r;
center = p;
radius = r;
}
~fopAc_cullSizeSphere() {}
#endif
@@ -232,67 +232,67 @@ public:
struct fopAc_cullSizeBox {
public:
#ifdef __INTELLISENSE__
/* 0x0 */ Vec mMin;
/* 0xC */ Vec mMax;
/* 0x0 */ Vec min;
/* 0xC */ Vec max;
#else
fopAc_cullSizeBox() {}
fopAc_cullSizeBox(const fopAc_cullSizeBox& box) {
mMin = box.mMin;
mMax = box.mMax;
min = box.min;
max = box.max;
}
fopAc_cullSizeBox(cXyz min, cXyz max) {
mMin = min;
mMax = max;
this->min = min;
this->max = max;
}
~fopAc_cullSizeBox() {}
/* 0x0 */ cXyz mMin;
/* 0xC */ cXyz mMax;
/* 0x0 */ cXyz min;
/* 0xC */ cXyz max;
#endif
};
class fopAc_ac_c : public leafdraw_class {
public:
/* 0x0C0 */ int mAcType;
/* 0x0C4 */ create_tag_class mAcTg;
/* 0x0D8 */ create_tag_class mDwTg;
/* 0x0EC */ actor_method_class* mSubMtd;
/* 0x0C0 */ int actor_type;
/* 0x0C4 */ create_tag_class actor_tag;
/* 0x0D8 */ create_tag_class draw_tag;
/* 0x0EC */ actor_method_class* sub_method;
/* 0x0F0 */ JKRSolidHeap* heap;
/* 0x0F4 */ dEvt_info_c mEvtInfo;
/* 0x10C */ dKy_tevstr_c mTevStr;
/* 0x1BC */ u16 mSetId;
/* 0x1BE */ u8 mGroup;
/* 0x1BF */ u8 mCullType;
/* 0x1C0 */ u8 mDemoActorId;
/* 0x1C1 */ s8 mSubtype;
/* 0x1C2 */ u8 mGbaName;
/* 0x1C4 */ u32 mStatus;
/* 0x1C8 */ u32 mCondition;
/* 0x1CC */ u32 mParentPcId;
/* 0x0F4 */ dEvt_info_c eventInfo;
/* 0x10C */ dKy_tevstr_c tevStr;
/* 0x1BC */ u16 setID;
/* 0x1BE */ u8 group;
/* 0x1BF */ u8 cullType;
/* 0x1C0 */ u8 demoActorID;
/* 0x1C1 */ s8 subtype;
/* 0x1C2 */ u8 gbaName;
/* 0x1C4 */ u32 actor_status;
/* 0x1C8 */ u32 actor_condition;
/* 0x1CC */ u32 parentActorID;
/* 0x1D0 */ actor_place home;
/* 0x1E4 */ actor_place old;
/* 0x1F8 */ actor_place current;
/* 0x20C */ csXyz shape_angle;
/* 0x214 */ cXyz mScale;
/* 0x214 */ cXyz scale;
/* 0x220 */ cXyz speed;
/* 0x22C */ MtxP mCullMtx;
/* 0x22C */ MtxP cullMtx;
union {
/* 0x230 */ fopAc_cullSizeBox mBox;
/* 0x230 */ fopAc_cullSizeSphere mSphere;
} mCull;
/* 0x248 */ f32 mCullSizeFar;
/* 0x230 */ fopAc_cullSizeBox box;
/* 0x230 */ fopAc_cullSizeSphere sphere;
} cull;
/* 0x248 */ f32 cullSizeFar;
/* 0x24C */ J3DModel* model;
/* 0x250 */ JntHit_c* mJntHit;
/* 0x250 */ JntHit_c* jntHit;
/* 0x254 */ f32 speedF;
/* 0x258 */ f32 mGravity;
/* 0x25C */ f32 mMaxFallSpeed;
/* 0x260 */ cXyz mEyePos;
/* 0x26C */ actor_attention_types mAttentionInfo;
/* 0x284 */ s8 mMaxHealth;
/* 0x285 */ s8 mHealth;
/* 0x288 */ s32 mItemTableIdx;
/* 0x28C */ u8 mStealItemBitNo; // For limited items (Blue Chu Jelly), this is the first itemBitNo to set.
/* 0x28D */ s8 mStealItemLeft;
/* 0x258 */ f32 gravity;
/* 0x25C */ f32 maxFallSpeed;
/* 0x260 */ cXyz eyePos;
/* 0x26C */ actor_attention_types attention_info;
/* 0x284 */ s8 max_health;
/* 0x285 */ s8 health;
/* 0x288 */ s32 itemTableIdx;
/* 0x28C */ u8 stealItemBitNo; // For limited items (Blue Chu Jelly), this is the first itemBitNo to set.
/* 0x28D */ s8 stealItemLeft;
fopAc_ac_c();
~fopAc_ac_c();
+35 -35
View File
@@ -96,15 +96,15 @@ inline s16 fopAcM_GetName(void* pActor) {
}
inline MtxP fopAcM_GetMtx(fopAc_ac_c* pActor) {
return pActor->mCullMtx;
return pActor->cullMtx;
}
inline bool fopAcM_checkStatus(fopAc_ac_c* pActor, u32 status) {
return pActor->mStatus & status;
return pActor->actor_status & status;
}
inline u32 fopAcM_checkCarryNow(fopAc_ac_c* pActor) {
return pActor->mStatus & fopAcStts_CARRY_e;
return pActor->actor_status & fopAcStts_CARRY_e;
}
inline u32 fopAcM_checkHookCarryNow(fopAc_ac_c* pActor) {
@@ -124,7 +124,7 @@ inline void fopAcM_SetParam(void* p_actor, u32 param) {
}
inline void fopAcM_SetJntHit(fopAc_ac_c* i_actorP, JntHit_c* i_jntHitP) {
i_actorP->mJntHit = i_jntHitP;
i_actorP->jntHit = i_jntHitP;
}
inline s16 fopAcM_GetProfName(void* pActor) {
@@ -140,28 +140,28 @@ inline void fopAcM_SetPriority(void* pActor, int priority) {
}
inline u8 fopAcM_GetGroup(fopAc_ac_c* p_actor) {
return p_actor->mGroup;
return p_actor->group;
}
inline void fopAcM_SetGroup(fopAc_ac_c* pActor, u8 group) {
pActor->mGroup = group;
pActor->group = group;
}
inline void fopAcM_OnStatus(fopAc_ac_c* pActor, u32 flag) {
pActor->mStatus |= flag;
pActor->actor_status |= flag;
}
inline void fopAcM_OffStatus(fopAc_ac_c* pActor, u32 flag) {
pActor->mStatus &= ~flag;
pActor->actor_status &= ~flag;
}
inline BOOL fopAcM_CheckStatusMap(fopAc_ac_c* pActor, u32) {
// TODO: This implementation probably isn't right, the u32 argument is likely used for something
return (pActor->mStatus & fopAcStts_SHOWMAP_e) && (pActor->mStatus & 0x1F) == 0;
return (pActor->actor_status & fopAcStts_SHOWMAP_e) && (pActor->actor_status & 0x1F) == 0;
}
inline void fopAcM_SetStatusMap(fopAc_ac_c* pActor, u32 flag) {
pActor->mStatus = (pActor->mStatus & ~0x3F) | fopAcStts_SHOWMAP_e | flag;
pActor->actor_status = (pActor->actor_status & ~0x3F) | fopAcStts_SHOWMAP_e | flag;
}
inline fopAc_ac_c* fopAcM_Search(fopAcIt_JudgeFunc func, void* param) {
@@ -197,15 +197,15 @@ inline csXyz* fopAcM_GetShapeAngle_p(fopAc_ac_c* pActor) {
}
inline bool fopAcM_CheckCondition(fopAc_ac_c* p_actor, u32 flag) {
return p_actor->mCondition & flag;
return p_actor->actor_condition & flag;
}
inline void fopAcM_OnCondition(fopAc_ac_c* p_actor, u32 flag) {
p_actor->mCondition |= flag;
p_actor->actor_condition |= flag;
}
inline void fopAcM_OffCondition(fopAc_ac_c* p_actor, u32 flag) {
p_actor->mCondition &= ~flag;
p_actor->actor_condition &= ~flag;
}
inline BOOL fopAcM_IsActor(void* actor) {
@@ -233,15 +233,15 @@ inline void fopAcM_SetHomeRoomNo(fopAc_ac_c* pActor, s8 roomNo) {
}
inline void fopAcM_SetGravity(fopAc_ac_c* actor, f32 gravity) {
actor->mGravity = gravity;
actor->gravity = gravity;
}
inline void fopAcM_SetMaxFallSpeed(fopAc_ac_c* actor, f32 speed) {
actor->mMaxFallSpeed = speed;
actor->maxFallSpeed = speed;
}
inline void fopAcM_SetMtx(fopAc_ac_c* actor, MtxP m) {
actor->mCullMtx = m;
actor->cullMtx = m;
}
inline void fopAcM_SetSpeed(fopAc_ac_c* actor, f32 x, f32 y, f32 z) {
@@ -253,7 +253,7 @@ inline void fopAcM_SetSpeedF(fopAc_ac_c* actor, f32 f) {
}
inline void fopAcM_SetStatus(fopAc_ac_c* actor, u32 status) {
actor->mStatus = status;
actor->actor_status = status;
}
inline void fopAcM_SetModel(fopAc_ac_c* actor, J3DModel* model) {
@@ -277,31 +277,31 @@ inline f32 fopAcM_GetSpeedF(fopAc_ac_c* p_actor) {
}
inline f32 fopAcM_GetGravity(fopAc_ac_c* p_actor) {
return p_actor->mGravity;
return p_actor->gravity;
}
inline f32 fopAcM_GetMaxFallSpeed(fopAc_ac_c* p_actor) {
return p_actor->mMaxFallSpeed;
return p_actor->maxFallSpeed;
}
inline JntHit_c* fopAcM_GetJntHit(fopAc_ac_c* i_actor) {
return i_actor->mJntHit;
return i_actor->jntHit;
}
inline void fopAcM_setCullSizeFar(fopAc_ac_c* i_actor, f32 i_far) {
i_actor->mCullSizeFar = i_far;
i_actor->cullSizeFar = i_far;
}
inline f32 fopAcM_getCullSizeFar(fopAc_ac_c* i_actor) {
return i_actor->mCullSizeFar;
return i_actor->cullSizeFar;
}
inline void fopAcM_SetCullSize(fopAc_ac_c* i_actor, int i_culltype) {
i_actor->mCullType = i_culltype;
i_actor->cullType = i_culltype;
}
inline int fopAcM_GetCullSize(fopAc_ac_c* i_actor) {
return i_actor->mCullType;
return i_actor->cullType;
}
inline BOOL fopAcM_CULLSIZE_IS_BOX(int i_culltype) {
@@ -317,19 +317,19 @@ inline int fopAcM_CULLSIZE_Q_IDX(int i_culltype) {
}
inline cXyz* fopAcM_getCullSizeSphereCenter(fopAc_ac_c* i_actor) {
return (cXyz*)&i_actor->mCull.mSphere.mCenter;
return (cXyz*)&i_actor->cull.sphere.center;
}
inline f32 fopAcM_getCullSizeSphereR(fopAc_ac_c* i_actor) {
return i_actor->mCull.mSphere.mRadius;
return i_actor->cull.sphere.radius;
}
inline cXyz* fopAcM_getCullSizeBoxMax(fopAc_ac_c* actor) {
return (cXyz*)&actor->mCull.mBox.mMax;
return (cXyz*)&actor->cull.box.max;
}
inline cXyz* fopAcM_getCullSizeBoxMin(fopAc_ac_c* actor) {
return (cXyz*)&actor->mCull.mBox.mMin;
return (cXyz*)&actor->cull.box.min;
}
inline void dComIfGs_onSwitch(int i_no, int i_roomNo);
@@ -392,7 +392,7 @@ inline f32 fopAcM_searchActorDistanceY(fopAc_ac_c* actorA, fopAc_ac_c* actorB) {
}
inline u16 fopAcM_GetSetId(fopAc_ac_c* p_actor) {
return p_actor->mSetId;
return p_actor->setID;
}
inline void dComIfGs_onActor(int bitNo, int roomNo);
@@ -459,13 +459,13 @@ bool fopAcM_entrySolidHeap(fopAc_ac_c* p_actor, heapCallbackFunc p_heapCallback,
inline void fopAcM_SetMin(fopAc_ac_c* p_actor, f32 minX, f32 minY, f32 minZ) {
#ifndef __INTELLISENSE__
p_actor->mCull.mBox.mMin.set(minX, minY, minZ);
p_actor->cull.box.min.set(minX, minY, minZ);
#endif
}
inline void fopAcM_SetMax(fopAc_ac_c* p_actor, f32 maxX, f32 maxY, f32 maxZ) {
#ifndef __INTELLISENSE__
p_actor->mCull.mBox.mMax.set(maxX, maxY, maxZ);
p_actor->cull.box.max.set(maxX, maxY, maxZ);
#endif
}
@@ -617,11 +617,11 @@ inline void fopAcM_seStartCurrent(fopAc_ac_c* actor, u32 i_seNum, u32 param_2) {
}
inline void fopAcM_seStart(fopAc_ac_c* actor, u32 i_seNum, u32 param_2) {
mDoAud_seStart(i_seNum, &actor->mEyePos, param_2, dComIfGp_getReverb(fopAcM_GetRoomNo(actor)));
mDoAud_seStart(i_seNum, &actor->eyePos, param_2, dComIfGp_getReverb(fopAcM_GetRoomNo(actor)));
}
inline void fopAcM_monsSeStart(fopAc_ac_c* actor, u32 i_seNum, u32 param_2) {
mDoAud_monsSeStart(i_seNum, &actor->mEyePos, fopAcM_GetID(actor), 0, dComIfGp_getReverb(fopAcM_GetRoomNo(actor)));
mDoAud_monsSeStart(i_seNum, &actor->eyePos, fopAcM_GetID(actor), 0, dComIfGp_getReverb(fopAcM_GetRoomNo(actor)));
}
inline void fopAcM_monsSeStart(fopAc_ac_c* actor, u32 i_seNum, Vec* i_sePos, u32 param_2) {
@@ -632,11 +632,11 @@ void fopDwTg_ToDrawQ(create_tag_class*, int);
void fopDwTg_DrawQTo(create_tag_class*);
inline void fopAcM_onDraw(fopAc_ac_c* actor) {
fopDwTg_ToDrawQ(&actor->mDwTg, fpcLf_GetPriority(actor));
fopDwTg_ToDrawQ(&actor->draw_tag, fpcLf_GetPriority(actor));
}
inline void fopAcM_offDraw(fopAc_ac_c* actor) {
fopDwTg_DrawQTo(&actor->mDwTg);
fopDwTg_DrawQTo(&actor->draw_tag);
}
inline void fopAcM_orderOtherEvent(fopAc_ac_c* ac, char* event, u16 flag) {
+3 -3
View File
@@ -10,7 +10,7 @@ typedef struct leafdraw_method_class leafdraw_method_class;
class camera_process_class : public view_class {
public:
/* 0x210 */ create_tag_class mDwTg;
/* 0x210 */ create_tag_class draw_tag;
/* 0x224 */ leafdraw_method_class* mpMtd;
/* 0x228 */ u8 field_0x228[4];
/* 0x22C */ s8 mPrm1;
@@ -29,8 +29,8 @@ public:
};
struct camera_process_profile_definition {
/* 0x00 */ view_process_profile_definition mBase;
/* 0x3C */ leafdraw_method_class* mSubMtd; // Subclass methods
/* 0x00 */ view_process_profile_definition base;
/* 0x3C */ leafdraw_method_class* sub_method; // Subclass methods
};
#endif
+3 -3
View File
@@ -11,8 +11,8 @@ struct kankyo_method_class {
class kankyo_class : public leafdraw_class {
public:
/* 0xC0 */ int mBsType;
/* 0xC4 */ create_tag_class mDwTg;
/* 0xD8 */ kankyo_method_class* mSubMtd;
/* 0xC4 */ create_tag_class draw_tag;
/* 0xD8 */ kankyo_method_class* sub_method;
/* 0xDC */ cXyz mPos;
/* 0xE8 */ cXyz mScale;
/* 0xF4 */ u32 mParam;
@@ -20,7 +20,7 @@ public:
struct kankyo_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition base;
/* 0x24 */ kankyo_method_class* mSubMtd;
/* 0x24 */ kankyo_method_class* sub_method;
}; // Size: 0x28
extern leafdraw_method_class g_fopKy_Method;
+2 -2
View File
@@ -26,8 +26,8 @@ struct msg_method_class {
class msg_class : public leafdraw_class {
public:
/* 0xC0 */ int mMsgType;
/* 0xC4 */ create_tag_class mDwTg;
/* 0xD8 */ msg_method_class* mSubMtd;
/* 0xC4 */ create_tag_class draw_tag;
/* 0xD8 */ msg_method_class* sub_method;
/* 0xDC */ fopAc_ac_c* mpActor;
/* 0xE0 */ cXyz mPos;
/* 0xEC */ u32 mMsgID;
+2 -2
View File
@@ -13,8 +13,8 @@ class J2DPane;
class J2DScreen;
struct msg_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition mBase;
/* 0x24 */ msg_method_class* mSubMtd; // Subclass methods
/* 0x00 */ leaf_process_profile_definition base;
/* 0x24 */ msg_method_class* sub_method; // Subclass methods
};
struct fopMsg_prm_class {
+2 -2
View File
@@ -12,14 +12,14 @@ struct overlap_method_class {
class overlap_task_class : public leafdraw_class {
public:
/* 0xC0 */ overlap_method_class* mSubMtd;
/* 0xC0 */ overlap_method_class* sub_method;
/* 0xC4 */ request_base_class mRq;
/* 0xC8 */ int mScenePId;
}; // Size: 0xCC
struct overlap_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition base;
/* 0x24 */ overlap_method_class* mSubMtd;
/* 0x24 */ overlap_method_class* sub_method;
}; // Size: 0x28
int fopOvlpM_SceneIsStop();
+4 -4
View File
@@ -13,14 +13,14 @@ struct scene_method_class {
};
typedef struct scene_process_profile_definition {
/* 0x00 */ node_process_profile_definition mBase;
/* 0x20 */ scene_method_class* mpMtd; // Subclass methods
/* 0x24 */ u32 field_0x24; // padding?
/* 0x00 */ node_process_profile_definition base;
/* 0x20 */ scene_method_class* sub_method; // Subclass methods
/* 0x24 */ u32 field_0x24; // padding?
} scene_process_profile_definition;
class scene_class {
public:
/* 0x000 */ process_node_class mBase;
/* 0x000 */ process_node_class base;
/* 0x1AC */ scene_method_class* mpMtd;
/* 0x1B0 */ scene_tag_class mScnTg;
};
+1 -1
View File
@@ -16,7 +16,7 @@ void fopScnM_Init(void);
inline u32 fpcM_LayerID(const void* pProc) {
return fpcBs_Is_JustOfType(g_fpcNd_type, ((base_process_class*)pProc)->mSubType) != FALSE ?
((scene_class*)pProc)->mBase.mLayer.mLayerID :
((scene_class*)pProc)->base.mLayer.mLayerID :
0xFFFFFFFF;
}
+3 -3
View File
@@ -6,8 +6,8 @@
#include "f_pc/f_pc_leaf.h"
struct view_process_profile_definition {
/* 0x00 */ leaf_process_profile_definition mBase;
/* 0x24 */ leafdraw_method_class* mSubMtd; // Subclass methods
/* 0x00 */ leaf_process_profile_definition base;
/* 0x24 */ leafdraw_method_class* sub_method; // Subclass methods
/* 0x28 */ u8 unk28;
/* 0x29 */ u8 unk29[3]; // pad
/* 0x2C */ u32 unk2C;
@@ -41,7 +41,7 @@ struct view_port_class {
};
struct view_class : public leafdraw_class {
/* 0x0C0 */ leafdraw_method_class* mSubMtd;
/* 0x0C0 */ leafdraw_method_class* sub_method;
/* 0x0C4 */ u8 field_0xc4;
/* 0x0C8 */ f32 mNear;
/* 0x0CC */ f32 mFar;
+1 -1
View File
@@ -17,7 +17,7 @@ typedef struct create_request_method_class {
} create_request_method_class;
typedef struct create_request {
create_tag mBase;
create_tag base;
s8 mbIsCreating;
s8 mbIsCancelling;
process_method_tag_class mMtdTg;
+1 -1
View File
@@ -6,7 +6,7 @@
#include "SSystem/SComponent/c_tag.h"
typedef struct create_tag {
create_tag_class mBase;
create_tag_class base;
} create_tag;
void fpcCtTg_ToCreateQ(create_tag* pTag);
+1 -1
View File
@@ -9,7 +9,7 @@ typedef struct layer_class layer_class;
typedef int (*delete_tag_func)(void*);
typedef struct delete_tag_class {
create_tag_class mBase;
create_tag_class base;
layer_class* mpLayer;
s16 mTimer;
} delete_tag_class;
+1 -1
View File
@@ -9,7 +9,7 @@ typedef struct layer_class layer_class;
typedef int (*fstCreateFunc)(void*, void*);
typedef struct fast_create_request {
/* 0x00 */ create_request mBase;
/* 0x00 */ create_request base;
/* 0x48 */ fstCreateFunc mpFastCreateFunc;
/* 0x4C */ void* mpFastCreateData;
} fast_create_request; // Size: 0x50
+4 -4
View File
@@ -8,12 +8,12 @@
#include "f_pc/f_pc_profile.h"
typedef struct leafdraw_method_class {
/* 0x00 */ process_method_class mBase;
/* 0x00 */ process_method_class base;
/* 0x10 */ process_method_func mpDrawFunc;
} leafdraw_method_class;
typedef struct leafdraw_class {
/* 0x00 */ base_process_class mBase;
/* 0x00 */ base_process_class base;
/* 0xB8 */ leafdraw_method_class* mpDrawMtd;
/* 0xBC */ s8 mbUnk0;
/* 0xBD */ u8 mbUnk1;
@@ -21,8 +21,8 @@ typedef struct leafdraw_class {
} leafdraw_class;
typedef struct leaf_process_profile_definition {
/* 0x00 */ process_profile_definition mBase;
/* 0x1C */ leafdraw_method_class* mSubMtd; // Subclass methods
/* 0x00 */ process_profile_definition base;
/* 0x1C */ leafdraw_method_class* sub_method; // Subclass methods
/* 0x20 */ s16 mPriority; // mDrawPriority
} leaf_process_profile_definition;
+1 -1
View File
@@ -5,7 +5,7 @@
#include "SSystem/SComponent/c_tag.h"
typedef struct line_tag {
create_tag_class mBase;
create_tag_class base;
s32 mLineListID;
} line_tag;
+4 -4
View File
@@ -8,12 +8,12 @@
#include "f_pc/f_pc_profile.h"
typedef struct nodedraw_method_class {
process_method_class mBase;
process_method_class base;
process_method_func mpDrawFunc;
} nodedraw_method_class;
typedef struct process_node_class {
/* 0x00 */ base_process_class mBase;
/* 0x00 */ base_process_class base;
/* 0xB8 */ nodedraw_method_class* mpNodeMtd;
/* 0xBC */ layer_class mLayer;
/* 0xE8 */ node_list_class mLayerNodeLists[16];
@@ -21,8 +21,8 @@ typedef struct process_node_class {
} process_node_class;
typedef struct node_process_profile_definition {
/* 0x00 */ process_profile_definition mBase;
/* 0x1C */ process_method_class* mSubMtd; // Subclass methods
/* 0x00 */ process_profile_definition base;
/* 0x1C */ process_method_class* sub_method; // Subclass methods
} node_process_profile_definition;
s32 fpcNd_DrawMethod(nodedraw_method_class* pNodeMethod, void* pData);
+1 -1
View File
@@ -38,7 +38,7 @@ typedef struct node_create_request {
} node_create_request; // Size: 0x64
typedef struct request_node_class {
node_class mBase;
node_class base;
node_create_request* mNodeCrReq;
} request_node_class;
+1 -1
View File
@@ -16,7 +16,7 @@ typedef struct process_priority_queue_info {
} process_priority_queue_info;
typedef struct process_priority_class {
/* 0x00 */ create_tag_class mBase;
/* 0x00 */ create_tag_class base;
/* 0x14 */ process_method_tag_class mMtdTag;
/* 0x30 */ process_priority_queue_info mInfoQ;
/* 0x38 */ process_priority_queue_info mInfoCurr;
+1 -1
View File
@@ -13,7 +13,7 @@ typedef struct process_profile_definition {
/* 0x04 */ u16 mListID;
/* 0x06 */ u16 mListPrio;
/* 0x08 */ s16 mProcName;
/* 0x0C */ process_method_class* mSubMtd; // Subclass methods
/* 0x0C */ process_method_class* sub_method; // Subclass methods
/* 0x10 */ s32 mSize;
/* 0x14 */ s32 mSizeOther;
/* 0x18 */ s32 mParameters;
+1 -1
View File
@@ -8,7 +8,7 @@ typedef struct layer_class layer_class;
typedef int (*stdCreateFunc)(void*, void*);
typedef struct standard_create_request_class {
/* 0x00 */ create_request mBase;
/* 0x00 */ create_request base;
/* 0x48 */ request_of_phase_process_class mPhase;
/* 0x50 */ s16 mProcName;
/* 0x54 */ void* mpUserData;
+22 -22
View File
@@ -32,13 +32,13 @@ BOOL ice_bg_check(enemyice* ei) {
} else {
ei->mSpeed.y = 0.0f;
}
if (ac->mHealth <= 0) {
if (ac->health <= 0) {
ret = TRUE;
}
}
} else if (ei->mBgAcch.ChkGroundHit()) {
ei->mSpeedF *= 0.5f;
if (ac->mHealth <= 0 || speedY < -40.0f + g_regHIO.mChild[0].mFloatRegs[14]) {
if (ac->health <= 0 || speedY < -40.0f + g_regHIO.mChild[0].mFloatRegs[14]) {
ret = TRUE;
}
if (speedY < -20.0f) {
@@ -55,7 +55,7 @@ BOOL ice_bg_check(enemyice* ei) {
} else {
ei->mSpeed.y = 0.0f;
}
if (ac->mHealth <= 0) {
if (ac->health <= 0) {
ret = TRUE;
}
}
@@ -120,17 +120,17 @@ BOOL enemy_ice(enemyice* ei) {
if (ei->mLightShrinkTimer == 1) { // Just started dying to light arrows.
ei->mLightShrinkTimer++;
dComIfGp_particle_set(dPa_name::ID_COMMON_LIGHT_EXPLOSION, &pos, NULL, &particleScale);
ac->mTevStr.mFogColor.b = 0xFF;
ac->mTevStr.mFogColor.g = 0xFF;
ac->mTevStr.mFogColor.r = 0xFF;
ac->mTevStr.mFogStartZ = 0.0f;
ac->mTevStr.mFogEndZ = 2000.0f;
ac->tevStr.mFogColor.b = 0xFF;
ac->tevStr.mFogColor.g = 0xFF;
ac->tevStr.mFogColor.r = 0xFF;
ac->tevStr.mFogStartZ = 0.0f;
ac->tevStr.mFogEndZ = 2000.0f;
fopAcM_seStart(ac, JA_SE_CM_L_ARROW_SHRINK, 0);
ac->mAttentionInfo.mFlags &= ~fopAc_Attn_LOCKON_ENEMY_e;
ac->attention_info.flags &= ~fopAc_Attn_LOCKON_ENEMY_e;
} else {
ei->mLightShrinkTimer++;
cLib_addCalc2(&ac->mTevStr.mFogEndZ, 10.0f, 1.0f, 80.0f);
cLib_addCalc2(&ac->tevStr.mFogEndZ, 10.0f, 1.0f, 80.0f);
mDoMtx_stack_c::transS(ac->current.pos);
mDoMtx_stack_c::transM(0, ei->mYOffset, 0);
@@ -139,7 +139,7 @@ BOOL enemy_ice(enemyice* ei) {
mDoMtx_stack_c::YrotM(ac->shape_angle.y);
mDoMtx_stack_c::XrotM(ac->shape_angle.x);
mDoMtx_stack_c::ZrotM(ac->shape_angle.z);
mDoMtx_stack_c::scaleM(ac->mScale);
mDoMtx_stack_c::scaleM(ac->scale);
if (ei->mLightShrinkTimer < (s8)(70 + g_regHIO.mChild[14].mShortRegs[1])) {
cLib_addCalc0(&ei->mScaleXZ, 0.1f, 0.01f + g_regHIO.mChild[14].mFloatRegs[0]);
@@ -158,12 +158,12 @@ BOOL enemy_ice(enemyice* ei) {
if (fopAcM_GetName(ac) != PROC_PZ) {
// If the actor is not Princess Zelda, drop an item ball.
// TODO: Why the Zelda check? Is she coded to be able to die to Light Arrows?
fopAcM_createIball(&pos, ac->mItemTableIdx, fopAcM_GetRoomNo(ac), &ac->current.angle, ac->mStealItemBitNo);
fopAcM_createIball(&pos, ac->itemTableIdx, fopAcM_GetRoomNo(ac), &ac->current.angle, ac->stealItemBitNo);
}
if (ei->mDeathSwitch != 0) {
dComIfGs_onSwitch(ei->mDeathSwitch, fopAcM_GetRoomNo(ac));
}
ac->mHealth = -0x80;
ac->health = -0x80;
}
}
}
@@ -205,8 +205,8 @@ BOOL enemy_ice(enemyice* ei) {
ei->mSpeed.y = 30.0f;
ei->mAngularVelY = (s16)cM_rndFX(3000.0f);
}
ac->mHealth -= 4;
if (ac->mHealth <= 0) {
ac->health -= 4;
if (ac->health <= 0) {
// If the enemy died instantly upon being frozen, don't let it fall and shatter instantly.
// Instead add a short delay where it will simply stay frozen in the air to emphasize that it froze.
ei->mMoveDelayTimer = 40;
@@ -226,10 +226,10 @@ BOOL enemy_ice(enemyice* ei) {
frozen = TRUE;
moveAndCollide = TRUE;
if (ei->m00C != 1) {
ac->mAttentionInfo.mFlags |= fopAc_Attn_ACTION_CARRY_e;
ac->mAttentionInfo.mDistances[4] = 0x12;
ac->attention_info.flags |= fopAc_Attn_ACTION_CARRY_e;
ac->attention_info.distances[4] = 0x12;
if (fopAcM_checkStatus(ac, fopAcStts_CARRY_e)) {
ac->mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
ac->attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
ei->mState = 3;
if (ei->m00C == 2) {
ei->m00C = 0;
@@ -336,7 +336,7 @@ BOOL enemy_ice(enemyice* ei) {
}
fopAcM_seStart(ac, JA_SE_CM_ICE_BREAK, 0);
fopAcM_createIball(&pos, ac->mItemTableIdx, fopAcM_GetRoomNo(ac), &ac->current.angle, ac->mStealItemBitNo);
fopAcM_createIball(&pos, ac->itemTableIdx, fopAcM_GetRoomNo(ac), &ac->current.angle, ac->stealItemBitNo);
ei->mFreezeTimer = 0;
if (ei->mDeathSwitch != 0) {
dComIfGs_onSwitch(ei->mDeathSwitch, fopAcM_GetRoomNo(ac));
@@ -360,7 +360,7 @@ BOOL enemy_ice(enemyice* ei) {
} else {
fopAcM_delete(ac);
fopAcM_onActor(ac);
ac->mHealth = -0x80;
ac->health = -0x80;
}
}
@@ -392,7 +392,7 @@ BOOL enemy_ice(enemyice* ei) {
mDoMtx_stack_c::YrotM(ac->shape_angle.y);
mDoMtx_stack_c::XrotM(ac->shape_angle.x);
mDoMtx_stack_c::ZrotM(ac->shape_angle.z);
mDoMtx_stack_c::scaleM(ac->mScale);
mDoMtx_stack_c::scaleM(ac->scale);
fopAcM_OnStatus(ac, fopAcStts_FREEZE_e);
} else {
fopAcM_OffStatus(ac, fopAcStts_FREEZE_e);
@@ -591,7 +591,7 @@ void enemy_fire_remove(enemyfire* ef) {
/* 8001D428-8001D48C .text enemy_piyo_set__FP10fopAc_ac_c */
void enemy_piyo_set(fopAc_ac_c* enemy) {
// Creates the rotating stars particle for when an enemy is stunned.
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_SPIN, &enemy->mAttentionInfo.mPosition);
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_SPIN, &enemy->attention_info.position);
}
/* 8001D48C-8001D890 .text wall_angle_get__FP10fopAc_ac_cs */
+14 -14
View File
@@ -594,12 +594,12 @@ daAgb_c::uploadFunc daAgb_c::uploadFuncTable[] = {
/* 800D02E8-800D0364 .text modeLoad__7daAgb_cFv */
void daAgb_c::modeLoad() {
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
uploadFunc func = uploadFuncTable[mUploadAction];
(this->*func)();
} else {
mUploadAction = UpAct_UNK0;
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
mMode = 0;
}
}
@@ -608,7 +608,7 @@ void daAgb_c::modeLoad() {
void daAgb_c::modeLookAttention() {
static bool se_flag = false;
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
if (!se_flag) {
fopAcM_seStart(this, JA_SE_CV_CHI_MEGAHORN, 0);
se_flag = true;
@@ -1305,7 +1305,7 @@ void daAgb_c::CursorMove(fopAc_ac_c* actor, u32 stage_type) {
}
int roomNo = dComIfG_Bgsp()->GetRoomId(mCrrPos.mGndChk);
actor->current.roomNo = actor->mTevStr.mRoomNo = roomNo;
actor->current.roomNo = actor->tevStr.mRoomNo = roomNo;
if (roomNo != player->current.roomNo) {
return;
}
@@ -1356,7 +1356,7 @@ void daAgb_c::modeMove() {
stage_stag_info_class* stag_info = dComIfGp_getStageStagInfo();
u16 stage_type = dStage_stagInfo_GetSTType(stag_info);
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
mUploadAction = UpAct_UNK0;
mMode = 2;
return;
@@ -1420,14 +1420,14 @@ void daAgb_c::modeMove() {
) {
mMode = 1;
offActive();
mEyePos = current.pos;
eyePos = current.pos;
cXyz sp3c = mEyePos - player->current.pos;
cXyz sp3c = eyePos - player->current.pos;
if (sp3c.absXZ() < 10.0f) {
mEyePos.x += 10.0f * cM_ssin(player->shape_angle.y);
mEyePos.z += 10.0f * cM_scos(player->shape_angle.y);
eyePos.x += 10.0f * cM_ssin(player->shape_angle.y);
eyePos.z += 10.0f * cM_scos(player->shape_angle.y);
}
mAttentionInfo.mPosition = mEyePos;
attention_info.position = eyePos;
if (isHold()) {
s16 angle = fopAcM_searchPlayerAngleY(this);
@@ -1437,7 +1437,7 @@ void daAgb_c::modeMove() {
shape_angle.z = angle;
} else {
shape_angle.y = fopAcM_searchPlayerAngleY(this);
shape_angle.x = cM_atan2s((player->mEyePos - mEyePos).absXZ(), player->mEyePos.y - mEyePos.y);
shape_angle.x = cM_atan2s((player->eyePos - eyePos).absXZ(), player->eyePos.y - eyePos.y);
field_0x628 = 50.0f;
}
@@ -1514,7 +1514,7 @@ void daAgb_c::modeMove() {
}
if (mMode == 0) {
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
}
}
@@ -1788,7 +1788,7 @@ static int daAgb_Create(fopAc_ac_c* i_this) {
a_this->field_0x680 = true;
fopAcM_setStageLayer(a_this);
a_this->mEvtInfo.setEventName("DEFAULT_AGB_USE");
a_this->eventInfo.setEventName("DEFAULT_AGB_USE");
}
return phase;
@@ -1807,7 +1807,7 @@ actor_process_profile_definition g_profile_AGB = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_AGB,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daAgb_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+48 -48
View File
@@ -228,7 +228,7 @@ int daAgbsw0_c::create() {
return cPhs_ERROR_e;
}
else {
if(mScale.x == mScale.z) {
if(scale.x == scale.z) {
mNonCircular = false;
}
else {
@@ -236,18 +236,18 @@ int daAgbsw0_c::create() {
}
if(behavior == 8) {
mScale.x *= 8000.0f;
mScale.y *= 8000.0f;
mScale.z *= 8000.0f;
scale.x *= 8000.0f;
scale.y *= 8000.0f;
scale.z *= 8000.0f;
}
else {
mScale.x *= 200.0f;
mScale.y *= 200.0f;
mScale.z *= 200.0f;
scale.x *= 200.0f;
scale.y *= 200.0f;
scale.z *= 200.0f;
}
mOrigScaleX = mScale.x;
mOrigScaleZ = mScale.z;
mOrigScaleX = scale.x;
mOrigScaleZ = scale.z;
shape_angle.x = 0;
shape_angle.y = current.angle.y;
shape_angle.z = 0;
@@ -255,8 +255,8 @@ int daAgbsw0_c::create() {
field_0x299 = 0;
mTimer = 0;
l_cyl_src.mCylAttr.mCyl.mRadius = mScale.x;
l_cyl_src.mCylAttr.mCyl.mHeight = mScale.y;
l_cyl_src.mCylAttr.mCyl.mRadius = scale.x;
l_cyl_src.mCylAttr.mCyl.mHeight = scale.y;
mStts.Init(0, 0xFF, this);
mCyl.Set(l_cyl_src);
mCyl.SetC(current.pos);
@@ -656,10 +656,10 @@ BOOL daAgbsw0_c::ExeSubF2() {
agb->home.pos.z = z;
agb->shape_angle.x = 0x3FFF;
agb->field_0x67f = true;
mOrigScaleX = mScale.x;
mOrigScaleZ = mScale.z;
mScale.z = 50.0f;
mScale.x = 50.0f;
mOrigScaleX = scale.x;
mOrigScaleZ = scale.z;
scale.z = 50.0f;
scale.x = 50.0f;
field_0x299 += 1;
}
}
@@ -1045,9 +1045,9 @@ BOOL daAgbsw0_c::ExeSubMW() {
#endif
static bool se_flag = 0;
mEyePos = current.pos;
mAttentionInfo.mPosition = current.pos;
if(mEvtInfo.checkCommandDemoAccrpt()) {
eyePos = current.pos;
attention_info.position = current.pos;
if(eventInfo.checkCommandDemoAccrpt()) {
if(!se_flag) {
fopAcM_seStart(this, JA_SE_CV_CHI_MEGAHORN, 0);
se_flag = 1;
@@ -1055,11 +1055,11 @@ BOOL daAgbsw0_c::ExeSubMW() {
dComIfGp_evmng_getMyStaffId("AGB_SW0");
fopAc_ac_c* player = dComIfGp_getPlayer(0);
cXyz diff = mEyePos - player->current.pos;
cXyz diff = eyePos - player->current.pos;
f32 dist = diff.absXZ();
if(dist < 0.001f) {
mEyePos.x += cM_ssin(player->shape_angle.y) * 10.0f;
mEyePos.z += cM_scos(player->shape_angle.y) * 10.0f;
eyePos.x += cM_ssin(player->shape_angle.y) * 10.0f;
eyePos.z += cM_scos(player->shape_angle.y) * 10.0f;
}
if(dComIfGp_evmng_endCheck("DEFAULT_AGB_LOOK_ATTENTION")) {
@@ -1208,7 +1208,7 @@ BOOL daAgbsw0_c::ExeSubR() {
}
if(itemNo != RECOVER_FAIRY) {
current.pos.y += mScale.y / 2.0f;
current.pos.y += scale.y / 2.0f;
}
fopAcM_fastCreateItem(&current.pos, itemNo, fopAcM_GetHomeRoomNo(this), NULL, NULL, 0.0f, cM_rndF(10.0f) + 40.0f, -7.0f);
@@ -1317,33 +1317,33 @@ BOOL daAgbsw0_c::ExeSubB() {
cXyz posDiff = current.pos - agb->current.pos;
if(!mNonCircular) {
f32 rad = mScale.x;
f32 rad = scale.x;
if(xzDiff < rad - 100.0f) {
if(agb->current.pos.y < current.pos.y + mScale.y / 2.0f) {
if(agb->current.pos.y < current.pos.y + scale.y / 2.0f) {
agb->home.pos.y = current.pos.y - 6.0f;
}
else {
agb->home.pos.y = current.pos.y + mScale.y + 6.0f;
agb->home.pos.y = current.pos.y + scale.y + 6.0f;
}
}
else {
agb->home.pos.x = current.pos.x - (posDiff.x * (rad + 1.0f) / xzDiff);
agb->home.pos.z = current.pos.z - (posDiff.z * (mScale.z + 1.0f) / xzDiff);
agb->home.pos.z = current.pos.z - (posDiff.z * (scale.z + 1.0f) / xzDiff);
}
}
else {
cXyz rel;
fpoAcM_relativePos(this, &agb->current.pos, &rel);
rel.y = rel.y - mScale.y / 2.0f + 5.0f;
f32 x_diff = mScale.x - fabsf(rel.x);
f32 y_diff = (mScale.y / 2.0f) - fabsf(rel.y) + 50.0f; //some register oddity here
f32 z_diff = mScale.z - fabsf(rel.z);
rel.y = rel.y - scale.y / 2.0f + 5.0f;
f32 x_diff = scale.x - fabsf(rel.x);
f32 y_diff = (scale.y / 2.0f) - fabsf(rel.y) + 50.0f; //some register oddity here
f32 z_diff = scale.z - fabsf(rel.z);
if(y_diff < x_diff && y_diff < z_diff) {
if(agb->current.pos.y < current.pos.y + mScale.y / 2.0f) {
if(agb->current.pos.y < current.pos.y + scale.y / 2.0f) {
agb->home.pos.y = current.pos.y - 6.0f;
}
else {
agb->home.pos.y = current.pos.y + mScale.y + 6.0f;
agb->home.pos.y = current.pos.y + scale.y + 6.0f;
}
}
else {
@@ -1451,10 +1451,10 @@ BOOL daAgbsw0_c::ExeSubD() {
agb->home.pos.z = z;
agb->shape_angle.x = -0x3FFF;
agb->field_0x67f = true;
mOrigScaleX = mScale.x;
mOrigScaleZ = mScale.z;
mScale.z = 50.0f;
mScale.x = 50.0f;
mOrigScaleX = scale.x;
mOrigScaleZ = scale.z;
scale.z = 50.0f;
scale.x = 50.0f;
field_0x299 += 1;
}
}
@@ -1473,7 +1473,7 @@ BOOL daAgbsw0_c::ExeSubD() {
else if(field_0x299 == 2 && fopAcM_isSwitch(this, getSw1())) {
s32 itemNo = getParamNo();
if(itemNo != RECOVER_FAIRY) {
current.pos.y += mScale.y / 2;
current.pos.y += scale.y / 2;
}
if(0 <= itemNo && itemNo < 0x1F && itemNo != KAKERA_HEART && itemNo != UTUWA_HEART && itemNo != dItem_SMALL_KEY_e) {
s8 roomNo = fopAcM_GetHomeRoomNo(this);
@@ -1493,8 +1493,8 @@ BOOL daAgbsw0_c::ExeSubD() {
}
else {
if(field_0x299 != 0 && field_0x299 < 3) {
mScale.x = mOrigScaleX;
mScale.z = mOrigScaleZ;
scale.x = mOrigScaleX;
scale.z = mOrigScaleZ;
field_0x299 = 0;
}
}
@@ -1609,11 +1609,11 @@ BOOL daAgbsw0_c::ExeSubFA() {
BOOL daAgbsw0_c::HitCheck(fopAc_ac_c* param_1) {
if(mNonCircular == false) {
f32 y_diff = param_1->current.pos.y - current.pos.y;
if(-10.0f <= y_diff && y_diff <= mScale.y) {
if(-10.0f <= y_diff && y_diff <= scale.y) {
f32 x_diff = fabsf(param_1->current.pos.x - current.pos.x);
if(x_diff < mScale.x) {
if(x_diff < scale.x) {
f32 z_diff = fabs(param_1->current.pos.z - current.pos.z);
if(z_diff < mScale.x && x_diff * x_diff + z_diff * z_diff < mScale.x * mScale.x) {
if(z_diff < scale.x && x_diff * x_diff + z_diff * z_diff < scale.x * scale.x) {
return true;
}
}
@@ -1622,7 +1622,7 @@ BOOL daAgbsw0_c::HitCheck(fopAc_ac_c* param_1) {
else {
cXyz pos;
fpoAcM_relativePos(this, &param_1->current.pos, &pos);
if(-10.0f <= pos.y && pos.y <= mScale.y && fabsf(pos.x) < mScale.x && fabsf(pos.z) < mScale.z) {
if(-10.0f <= pos.y && pos.y <= scale.y && fabsf(pos.x) < scale.x && fabsf(pos.z) < scale.z) {
return true;
}
}
@@ -1634,11 +1634,11 @@ BOOL daAgbsw0_c::HitCheck(fopAc_ac_c* param_1) {
BOOL daAgbsw0_c::HitCheck(cXyz param_1, f32 param_2) {
if(mNonCircular == false) {
f32 y_diff = param_1.y - current.pos.y;
if(-param_2 <= y_diff && y_diff <= mScale.y) {
if(-param_2 <= y_diff && y_diff <= scale.y) {
f32 x_diff = fabs(param_1.x - current.pos.x);
if(x_diff < mScale.x) {
if(x_diff < scale.x) {
f32 z_diff = fabs(param_1.z - current.pos.z);
if(z_diff < mScale.x && x_diff * x_diff + z_diff * z_diff < mScale.x * mScale.x) {
if(z_diff < scale.x && x_diff * x_diff + z_diff * z_diff < scale.x * scale.x) {
return true;
}
}
@@ -1647,7 +1647,7 @@ BOOL daAgbsw0_c::HitCheck(cXyz param_1, f32 param_2) {
else {
cXyz pos;
fpoAcM_relativePos(this, &param_1, &pos);
if(-param_2 <= pos.y && pos.y <= mScale.y && (f32)fabs(pos.x) < mScale.x && (f32)fabs(pos.z) < mScale.z) {
if(-param_2 <= pos.y && pos.y <= scale.y && (f32)fabs(pos.x) < scale.x && (f32)fabs(pos.z) < scale.z) {
return true;
}
}
@@ -2560,7 +2560,7 @@ actor_process_profile_definition g_profile_AGBSW0 = {
7,
fpcPi_CURRENT_e,
PROC_AGBSW0,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daAgbsw0_c),
0,
0,
+1 -1
View File
@@ -121,7 +121,7 @@ actor_process_profile_definition g_profile_ALLDIE = {
2,
fpcPi_CURRENT_e,
PROC_ALLDIE,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daAlldie_c),
0,
0,
+50 -50
View File
@@ -122,7 +122,7 @@ static BOOL nodeCallBack(J3DNode* node, int param_1) {
/* 0000021C-000002E4 .text draw_SUB__FP8am_class */
static void draw_SUB(am_class* i_this) {
J3DModel* model = i_this->mpMorf->getModel();
model->setBaseScale(i_this->mScale);
model->setBaseScale(i_this->scale);
mDoMtx_stack_c::transS(i_this->current.pos);
cMtx_YrotM(mDoMtx_stack_c::get(), i_this->shape_angle.y);
cMtx_XrotM(mDoMtx_stack_c::get(), i_this->shape_angle.x);
@@ -131,12 +131,12 @@ static void draw_SUB(am_class* i_this) {
i_this->mpMorf->calc();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->tevStr);
}
/* 000002E4-00000378 .text daAM_Draw__FP8am_class */
static BOOL daAM_Draw(am_class* i_this) {
g_env_light.setLightTevColorType(i_this->mpMorf->getModel(), &i_this->mTevStr);
g_env_light.setLightTevColorType(i_this->mpMorf->getModel(), &i_this->tevStr);
dSnap_RegistFig(DSNAP_TYPE_AM, i_this, 1.0f, 1.0f, 1.0f);
@@ -260,15 +260,15 @@ static BOOL medama_atari_check(am_class* i_this) {
switch (hitObj->GetAtType()) {
case AT_TYPE_GRAPPLING_HOOK:
if (i_this->mCurrBckIdx != AM_BCK_SLEEP && i_this->mCurrBckIdx != AM_BCK_SLEEP_LOOP) {
if (i_this->mStealItemLeft > 0) {
i_this->mMaxHealth = 10;
i_this->mHealth = 10;
if (i_this->stealItemLeft > 0) {
i_this->max_health = 10;
i_this->health = 10;
atInfo.mpObj = i_this->mEyeSph.GetTgHitObj();
atInfo.pParticlePos = NULL;
cc_at_check(i_this, &atInfo);
i_this->mMaxHealth = 10;
i_this->mHealth = 10;
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &i_this->mAttentionInfo.mPosition);
i_this->max_health = 10;
i_this->health = 10;
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &i_this->attention_info.position);
} else {
dComIfGp_particle_set(dPa_name::ID_COMMON_PURPLE_HIT, &hitPos);
}
@@ -293,18 +293,18 @@ static BOOL medama_atari_check(am_class* i_this) {
i_this->mEnemyIce.mLightShrinkTimer = 1;
i_this->mEnemyIce.mParticleScale = 1.0f;
i_this->mEnemyIce.mYOffset = 80.0f;
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
break;
case AT_TYPE_NORMAL_ARROW:
case AT_TYPE_FIRE_ARROW:
case AT_TYPE_ICE_ARROW:
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_LK_MS_WEP_HIT, 0x42);
mDoAud_seStart(JA_SE_LK_MS_WEP_HIT, &i_this->mEyePos, 0x42, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_LK_MS_WEP_HIT, &i_this->eyePos, 0x42, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
ret = true;
if (i_this->mCurrBckIdx == AM_BCK_SLEEP || i_this->mCurrBckIdx == AM_BCK_SLEEP_LOOP) {
anm_init(i_this, AM_BCK_OKIRU, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
i_this->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->mNeedleCyl.OnAtSPrmBit(AT_SPRM_SET);
i_this->mNeedleCyl.OnAtHitBit();
i_this->mAction = ACTION_DOUSA;
@@ -312,7 +312,7 @@ static BOOL medama_atari_check(am_class* i_this) {
} else {
dComIfGp_particle_set(0x10, &i_this->mEyeballPos, &player->shape_angle);
// fopAcM_seStart(i_this, JA_SE_CM_AM_EYE_DAMAGE, 0);
mDoAud_seStart(JA_SE_CM_AM_EYE_DAMAGE, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_EYE_DAMAGE, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_EYE_DAMAGE, 0x42);
i_this->mAction = ACTION_ITAI_MOVE;
i_this->mState = 0x28;
@@ -355,7 +355,7 @@ static void bomb_move_set(am_class* i_this, u8 alwaysMoveY) {
}
cLib_addCalc2(&swallowedActor->current.pos.z, mouthPos.z, 1.0f, 50.0f);
swallowedActor->mGravity = 0.0f;
swallowedActor->gravity = 0.0f;
swallowedActor->speedF = 0.0f;
swallowedActor->speed.setall(0.0f);
swallowedActor->current.angle.setall(0);
@@ -366,19 +366,19 @@ static void bomb_move_set(am_class* i_this, u8 alwaysMoveY) {
if (fpcM_GetName(swallowedActor) == PROC_BOMB) {
daBomb_c* bomb = (daBomb_c*)swallowedActor;
if (i_this->mCountDownTimers[1] == 1) {
bomb->mScale.setall(0.0f);
bomb->scale.setall(0.0f);
bomb->setBombNoEff();
} else if (i_this->mCountDownTimers[1] > 1) {
bomb->mScale.setall(1.0f);
bomb->scale.setall(1.0f);
}
bomb->setBombRestTime(100);
} else if (fpcM_GetName(swallowedActor) == PROC_Bomb2) {
daBomb2::Act_c* bomb2 = (daBomb2::Act_c*)swallowedActor;
if (i_this->mCountDownTimers[1] == 1) {
bomb2->mScale.setall(0.0f);
bomb2->scale.setall(0.0f);
bomb2->remove_fuse_effect();
} else if (i_this->mCountDownTimers[1] > 1) {
bomb2->mScale.setall(1.0f);
bomb2->scale.setall(1.0f);
}
bomb2->set_time(100);
}
@@ -481,7 +481,7 @@ static void medama_move(am_class* i_this) {
}
f32 diffX = i_this->current.pos.x - player->current.pos.x;
f32 diffY = i_this->mEyePos.y - player->current.pos.y;
f32 diffY = i_this->eyePos.y - player->current.pos.y;
f32 diffZ = i_this->current.pos.z - player->current.pos.z;
i_this->mTargetEyeRot.y = cM_atan2s(diffX, diffZ);
@@ -527,7 +527,7 @@ static void action_dousa(am_class* i_this) {
if (Line_check(i_this, player->current.pos)) {
anm_init(i_this, AM_BCK_OKIRU, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_AWAKE, 0);
i_this->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->mNeedleCyl.OnAtSetBit();
i_this->mNeedleCyl.OnAtHitBit();
i_this->mState += 1;
@@ -546,7 +546,7 @@ static void action_dousa(am_class* i_this) {
fopAcM_seStart(i_this, JA_SE_CM_AM_NEEDLE_OUT, 0);
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_MOUTH_CLOSE, 0);
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
}
anm_init(i_this, AM_BCK_CLOSE, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
i_this->mCountDownTimers[2] = 6;
@@ -590,7 +590,7 @@ static void action_dousa(am_class* i_this) {
break;
case 5:
i_this->speedF = 30.0f;
i_this->mGravity = -11.0f;
i_this->gravity = -11.0f;
i_this->speed.y = 40.0f;
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_JUMP, 0);
if (!Line_check(i_this, player->current.pos) || player->getDamageWaitTimer() != 0) {
@@ -632,9 +632,9 @@ static void action_dousa(am_class* i_this) {
anm_init(i_this, AM_BCK_DAMAGE, 0.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_NEEDLE_IN, 0);
mDoAud_seStart(JA_SE_CM_AM_NEEDLE_IN, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_NEEDLE_IN, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
// fopAcM_seStart(i_this, JA_SE_CM_AM_MOUTH_OPEN, 0);
mDoAud_seStart(JA_SE_CM_AM_MOUTH_OPEN, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_MOUTH_OPEN, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_OPEN_MOUTH, 0);
i_this->mNeedleCyl.OffAtSetBit();
i_this->mNeedleCyl.OffAtSetBit();
@@ -651,7 +651,7 @@ static void action_dousa(am_class* i_this) {
break;
case 8:
if (i_this->mAcch.ChkGroundHit()) {
i_this->mGravity = -6.0f;
i_this->gravity = -6.0f;
i_this->speed.y = 15.0f;
fopAcM_seStart(i_this, JA_SE_CM_AM_JUMP_S, 0);
i_this->mTargetAngleY = fopAcM_searchPlayerAngleY(i_this);
@@ -666,7 +666,7 @@ static void action_dousa(am_class* i_this) {
fopAcM_seStart(i_this, JA_SE_CM_AM_NEEDLE_IN, 0);
i_this->mNeedleCyl.OffAtSetBit();
i_this->mNeedleCyl.OffAtSetBit();
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mState += 1;
break;
case 10:
@@ -692,7 +692,7 @@ static void action_modoru_move(am_class* i_this) {
anm_init(i_this, AM_BCK_CLOSE_LOOP, 1.0f, J3DFrameCtrl::LOOP_REPEAT_e, 1.0f, -1);
i_this->mNeedleCyl.OnAtSetBit();
i_this->mNeedleCyl.OnAtHitBit();
i_this->mGravity = -11.0f;
i_this->gravity = -11.0f;
i_this->speed.y = 40.0f;
i_this->speedF = 15.0f;
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_JUMP, 0x42);
@@ -715,7 +715,7 @@ static void action_modoru_move(am_class* i_this) {
dComIfGp_getVibration().StartShock(1, -0x21, cXyz(0.0f, 1.0f, 0.0f));
// The fopAcM_seStart inline makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_JUMP, 0);
mDoAud_seStart(JA_SE_CM_AM_JUMP, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_JUMP, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_JUMP, 0x42);
i_this->speed.y = 40.0f;
@@ -735,7 +735,7 @@ static void action_modoru_move(am_class* i_this) {
if (angleDiff < 0x100) {
i_this->mNeedleCyl.OffAtSetBit();
i_this->mNeedleCyl.OffAtSetBit();
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mAction = ACTION_DOUSA;
i_this->mState = 0;
}
@@ -760,7 +760,7 @@ static void action_handou_move(am_class* i_this) {
fopAcM_seStart(i_this, JA_SE_CM_AM_NEEDLE_OUT, 0);
// Using the fopAcM_seStart inline multiple times makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_MOUTH_CLOSE, 0);
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
anm_init(i_this, AM_BCK_CLOSE, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
}
i_this->mState += 1;
@@ -808,7 +808,7 @@ static void action_itai_move(am_class* i_this) {
fopAcM_seStart(i_this, JA_SE_CM_AM_NEEDLE_OUT, 0);
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_MOUTH_CLOSE, 0);
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_MOUTH_CLOSE, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
i_this->mState += 1;
break;
case 0x2B:
@@ -842,7 +842,7 @@ static void action_itai_move(am_class* i_this) {
if (i_this->mpMorf->checkFrame(3.0f)) {
// The fopAcM_seStart inline makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_EAT_BOMB, 0);
mDoAud_seStart(JA_SE_CM_AM_EAT_BOMB, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_EAT_BOMB, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_EAT_BOMB, 0);
}
if (i_this->mpMorf->checkFrame(6.0f)) {
@@ -871,7 +871,7 @@ static void action_itai_move(am_class* i_this) {
i_this->mSmokeCbs[0].end();
// The fopAcM_seStart inline makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_JUMP, 0);
mDoAud_seStart(JA_SE_CM_AM_JUMP, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_JUMP, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
dComIfGp_particle_setToon(
0xA125, &i_this->mWaistPos, &i_this->shape_angle, NULL,
0xB9, &i_this->mSmokeCbs[0], fopAcM_GetRoomNo(i_this)
@@ -879,10 +879,10 @@ static void action_itai_move(am_class* i_this) {
dComIfGp_getVibration().StartShock(1, -0x21, cXyz(0.0f, 1.0f, 0.0f));
// The fopAcM_seStart inline makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_JUMP_L, 0);
mDoAud_seStart(JA_SE_CM_AM_JUMP_L, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_JUMP_L, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_JITABATA, 0);
i_this->speed.y = 25.0f;
i_this->mGravity = -10.0f;
i_this->gravity = -10.0f;
i_this->speedF = 10.0f;
}
@@ -917,7 +917,7 @@ static void action_itai_move(am_class* i_this) {
if (i_this->mSwallowedActorPID != fpcM_ERROR_PROCESS_ID_e) {
fopAc_ac_c* swallowedActor = fopAcM_SearchByID(i_this->mSwallowedActorPID);
if (swallowedActor) {
swallowedActor->mScale.setall(1.0f);
swallowedActor->scale.setall(1.0f);
if (fpcM_GetName(swallowedActor) == PROC_BOMB) {
daBomb_c* bomb = (daBomb_c*)swallowedActor;
bomb->setBombRestTime(1);
@@ -931,7 +931,7 @@ static void action_itai_move(am_class* i_this) {
fopAcM_seStart(i_this, JA_SE_CM_AM_EXPLODE, 0);
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_LK_LAST_HIT, 0);
mDoAud_seStart(JA_SE_LK_LAST_HIT, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_LK_LAST_HIT, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_createDisappear(i_this, &centerPos, 5);
fopAcM_onActor(i_this);
@@ -1025,17 +1025,17 @@ static BOOL daAM_Execute(am_class* i_this) {
MtxPosition(&offset, &rotOffset);
i_this->speed.x = rotOffset.x;
i_this->speed.z = rotOffset.z;
i_this->speed.y += i_this->mGravity;
i_this->speed.y += i_this->gravity;
if (i_this->speed.y < -100.0f) {
i_this->speed.y = -100.0f;
}
body_atari_check(i_this);
i_this->mAttentionInfo.mPosition = i_this->current.pos;
i_this->mAttentionInfo.mPosition.y += 330.0f;
i_this->mEyePos = i_this->current.pos;
i_this->mEyePos.y += 250.0f;
i_this->attention_info.position = i_this->current.pos;
i_this->attention_info.position.y += 330.0f;
i_this->eyePos = i_this->current.pos;
i_this->eyePos.y += 250.0f;
cXyz needlePos = i_this->current.pos;
@@ -1127,7 +1127,7 @@ static BOOL useHeapInit(fopAc_ac_c* i_actor) {
};
i_this->mEyeJntHit = JntHit_create(i_this->mpMorf->getModel(), search_data, ARRAY_SIZE(search_data));
if (i_this->mEyeJntHit) {
i_this->mJntHit = i_this->mEyeJntHit;
i_this->jntHit = i_this->mEyeJntHit;
} else {
return FALSE;
}
@@ -1147,7 +1147,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) {
return cPhs_ERROR_e;
}
i_this->mStealItemLeft = 3;
i_this->stealItemLeft = 3;
i_this->mSmokeCbs[0].setRateOff(0);
i_this->mSmokeCbs[1].setRateOff(0);
@@ -1186,14 +1186,14 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) {
fopAcM_OffStatus(i_this, fopAcStts_SHOWMAP_e);
}
i_this->mItemTableIdx = dComIfGp_CharTbl()->GetNameIndex("amos", 0);
i_this->mMaxHealth = 10;
i_this->mHealth = 10;
i_this->itemTableIdx = dComIfGp_CharTbl()->GetNameIndex("amos", 0);
i_this->max_health = 10;
i_this->health = 10;
fopAcM_SetMtx(i_this, i_this->mpMorf->mpModel->getBaseTRMtx());
fopAcM_setCullSizeBox(i_this, -100.0f, -10.0f, -80.0f, 120.0f, 400.0f, 100.0f);
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mAcch.Set(
fopAcM_GetPosition_p(i_this), fopAcM_GetOldPosition_p(i_this),
@@ -1201,7 +1201,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) {
);
i_this->mStts.Init(254, 1, i_this);
i_this->mGravity = -10.0f;
i_this->gravity = -10.0f;
i_this->mEnemyIce.mpActor = i_this;
i_this->mEnemyIce.mWallRadius = 80.0f;
@@ -1359,7 +1359,7 @@ actor_process_profile_definition g_profile_AM = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_AM,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(am_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+64 -64
View File
@@ -100,7 +100,7 @@ static BOOL nodeCallBack(J3DNode* node, int param_1) {
/* 000001B0-00000278 .text draw_SUB__FP9am2_class */
static void draw_SUB(am2_class* i_this) {
J3DModel* model = i_this->mpMorf->getModel();
model->setBaseScale(i_this->mScale);
model->setBaseScale(i_this->scale);
mDoMtx_stack_c::transS(i_this->current.pos);
cMtx_YrotM(mDoMtx_stack_c::get(), i_this->shape_angle.y);
cMtx_XrotM(mDoMtx_stack_c::get(), i_this->shape_angle.x);
@@ -109,13 +109,13 @@ static void draw_SUB(am2_class* i_this) {
i_this->mpMorf->calc();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->tevStr);
}
/* 00000278-00000374 .text daAM2_Draw__FP9am2_class */
static BOOL daAM2_Draw(am2_class* i_this) {
J3DModel* model = i_this->mpMorf->getModel();
g_env_light.setLightTevColorType(model, &i_this->mTevStr);
g_env_light.setLightTevColorType(model, &i_this->tevStr);
dSnap_RegistFig(DSNAP_TYPE_AM2, i_this, 1.0f, 1.0f, 1.0f);
@@ -168,14 +168,14 @@ static BOOL medama_atari_check(am2_class* i_this) {
if (hitObj->ChkAtType(AT_TYPE_GRAPPLING_HOOK)) {
if (i_this->mCurrBckIdx != AM2_BCK_SLEEP) {
if (i_this->mStealItemLeft > 0) {
s8 origHealth = i_this->mHealth;
i_this->mHealth = 10;
if (i_this->stealItemLeft > 0) {
s8 origHealth = i_this->health;
i_this->health = 10;
atInfo.mpObj = i_this->mEyeSph.GetTgHitObj();
atInfo.pParticlePos = NULL;
cc_at_check(i_this, &atInfo);
i_this->mHealth = origHealth;
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &i_this->mAttentionInfo.mPosition);
i_this->health = origHealth;
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &i_this->attention_info.position);
} else {
dComIfGp_particle_set(dPa_name::ID_COMMON_PURPLE_HIT, &hitPos);
}
@@ -189,7 +189,7 @@ static BOOL medama_atari_check(am2_class* i_this) {
i_this->mEnemyIce.mLightShrinkTimer = 1;
i_this->mEnemyIce.mParticleScale = 1.0f;
i_this->mEnemyIce.mYOffset = 80.0f;
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
return TRUE;
}
@@ -197,7 +197,7 @@ static BOOL medama_atari_check(am2_class* i_this) {
ret = true;
if (i_this->mCurrBckIdx == AM2_BCK_SLEEP) {
anm_init(i_this, AM2_BCK_WAIT, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
i_this->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
fopAcM_OnStatus(i_this, fopAcStts_SHOWMAP_e);
i_this->mNeedleCyl.OnAtSetBit();
i_this->mNeedleCyl.OnAtHitBit();
@@ -208,7 +208,7 @@ static BOOL medama_atari_check(am2_class* i_this) {
dComIfGp_particle_set(0x10, &hitPos, &player->shape_angle);
// Using the fopAcM_seStart inline breaks the codegen.
// fopAcM_seStart(i_this, JA_SE_CM_AM2_PARALYZED, 0);
mDoAud_seStart(JA_SE_CM_AM2_PARALYZED, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM2_PARALYZED, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM2_PARALYZED, 0x42);
i_this->mAction = ACTION_MAHI;
i_this->mState = 10;
@@ -248,7 +248,7 @@ static BOOL week_atari_check(am2_class* i_this) {
i_this->mEnemyIce.mLightShrinkTimer = 1;
i_this->mEnemyIce.mParticleScale = 1.0f;
i_this->mEnemyIce.mYOffset = 80.0f;
actor->mAttentionInfo.mFlags = 0;
actor->attention_info.flags = 0;
return TRUE;
}
@@ -322,7 +322,7 @@ static BOOL week_atari_check(am2_class* i_this) {
i_this->mAction = ACTION_ITAI;
i_this->mState = 0x14;
if (i_this->m2CE == 7 || i_this->m2CE == 8) {
actor->mHealth = 0;
actor->health = 0;
}
}
return TRUE;
@@ -423,7 +423,7 @@ static BOOL naraku_check(am2_class* i_this) {
if (i_this->current.pos.y < -500.0f || i_this->mInAbyssTimer > 50) {
i_this->speedF = 0.0f;
i_this->speed.setall(0.0f);
i_this->mGravity = 0.0f;
i_this->gravity = 0.0f;
return TRUE;
}
}
@@ -457,7 +457,7 @@ static BOOL naraku_check(am2_class* i_this) {
if (i_this->current.pos.y < i_this->mAcch.m_wtr.GetHeight() - waterSinkDepth) {
i_this->speedF = 0.0f;
i_this->speed.setall(0.0f);
i_this->mGravity = 0.0f;
i_this->gravity = 0.0f;
return TRUE;
}
} else if (i_this->mbMadeWaterSplash) {
@@ -499,7 +499,7 @@ static void action_dousa(am2_class* i_this) {
cXyz centerPos = player->current.pos;
centerPos.y += 100.0f + g_regHIO.mChild[12].mFloatRegs[19];
if (Line_check(i_this, centerPos)) {
i_this->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
fopAcM_OnStatus(i_this, fopAcStts_SHOWMAP_e);
anm_init(i_this, AM2_BCK_START, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
fopAcM_monsSeStart(i_this, JA_SE_CV_AM2_AWAKE, 0);
@@ -532,7 +532,7 @@ static void action_dousa(am2_class* i_this) {
i_this->mNeedleCyl.OnAtHitBit();
i_this->mNeedleCyl.OnTgSetBit();
i_this->mTargetAngleY = fopAcM_searchPlayerAngleY(i_this);
i_this->mGravity = -3.0f;
i_this->gravity = -3.0f;
i_this->speed.y = 12.0f;
if (i_this->mCurrBckIdx != AM2_BCK_JUMP) {
anm_init(i_this, AM2_BCK_JUMP, 2.0f, J3DFrameCtrl::LOOP_REPEAT_e, 1.0f, -1);
@@ -542,7 +542,7 @@ static void action_dousa(am2_class* i_this) {
break;
case 4:
if (i_this->mAcch.ChkGroundHit()) {
i_this->mGravity = -3.0f;
i_this->gravity = -3.0f;
i_this->speed.y = 12.0f;
fopAcM_seStart(i_this, JA_SE_CM_AM2_LANDING, 0);
i_this->mState = 3;
@@ -565,7 +565,7 @@ static void action_dousa(am2_class* i_this) {
i_this->mSmokeCb.end();
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM_JUMP_S, 0);
mDoAud_seStart(JA_SE_CM_AM_JUMP_S, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM_JUMP_S, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
dComIfGp_particle_setToon(0xA125, &i_this->current.pos, &i_this->shape_angle, NULL, 0xB9, &i_this->mSmokeCb, fopAcM_GetRoomNo(i_this));
if (i_this->mSmokeCb.getEmitter()) {
@@ -579,7 +579,7 @@ static void action_dousa(am2_class* i_this) {
i_this->mState = 3;
} else {
i_this->speedF = 9.0f;
i_this->mGravity = -8.0f;
i_this->gravity = -8.0f;
i_this->speed.y = 20.0f;
i_this->mCountUpTimers[1] = 0;
if (!Line_check(i_this, rotOffset) || player->getDamageWaitTimer() != 0) {
@@ -670,7 +670,7 @@ static void action_mahi(am2_class* i_this) {
break;
case 0xC:
if (i_this->mCountDownTimers[3] == 0 || i_this->mCountDownTimers[3] > 3) {
actor->mAttentionInfo.mFlags |= fopAc_Attn_ACTION_CARRY_e;
actor->attention_info.flags |= fopAc_Attn_ACTION_CARRY_e;
}
if (naraku_check(i_this)) {
if (i_this->mbNotInHomeRoom) {
@@ -691,7 +691,7 @@ static void action_mahi(am2_class* i_this) {
i_this->mPickedUpYPos = actor->current.pos.y;
fopAcM_OffStatus(actor, fopAcStts_SHOWMAP_e);
actor->current.angle.y = player->shape_angle.y;
actor->mGravity = 0.0f;
actor->gravity = 0.0f;
actor->speed.setall(0.0f);
actor->speedF = 0.0f;
i_this->mbNotInHomeRoom = false;
@@ -712,13 +712,13 @@ static void action_mahi(am2_class* i_this) {
i_this->mAcchRadius = 40.0f + g_regHIO.mChild[8].mFloatRegs[10];
i_this->mBodyCyl.OnCoSetBit();
if (actor->speedF > 0.0f) {
actor->mGravity = -5.0f;
actor->gravity = -5.0f;
actor->speed.y = 25.0f;
actor->speedF = 35.0f;
i_this->mAcch.OnLineCheck();
i_this->mState = 0xE;
} else {
actor->mGravity = -3.0f;
actor->gravity = -3.0f;
i_this->mCountUpTimers[1] = 1;
i_this->mState = 0xC;
}
@@ -759,7 +759,7 @@ static void action_mahi(am2_class* i_this) {
actor->speedF = 7.0f;
actor->speed.y = 25.0f;
actor->mGravity = -14.0f;
actor->gravity = -14.0f;
i_this->mCountUpTimers[0]++;
} else {
actor->speedF = 0.0f;
@@ -784,8 +784,8 @@ static void action_mahi(am2_class* i_this) {
actor->shape_angle.y += 0x1000;
if (i_this->mAcch.ChkGroundHit()) {
actor->mGravity = -3.0f;
actor->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
actor->gravity = -3.0f;
actor->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
fopAcM_OnStatus(actor, fopAcStts_SHOWMAP_e);
i_this->mAction = ACTION_DOUSA;
i_this->mState = 3;
@@ -809,8 +809,8 @@ static void action_mahi(am2_class* i_this) {
if (fopAcM_checkStatus(actor, fopAcStts_CARRY_e)) {
fopAcM_cancelCarryNow(actor);
actor->mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
actor->mGravity = -4.0f;
actor->attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
actor->gravity = -4.0f;
actor->speed.y = 20.0f;
}
@@ -821,7 +821,7 @@ static void action_mahi(am2_class* i_this) {
if (i_this->mCurrBckIdx != AM2_BCK_BURUBURU) {
anm_init(i_this, AM2_BCK_BURUBURU, 1.0f, J3DFrameCtrl::LOOP_REPEAT_e, 1.0f, -1);
i_this->mCountDownTimers[3] = 20*30;
actor->mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
actor->attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
fopAcM_seStart(i_this, JA_SE_CM_AM2_RECOVER, 0);
fopAcM_monsSeStart(actor, JA_SE_CV_AM2_AWAKE, 0);
}
@@ -829,10 +829,10 @@ static void action_mahi(am2_class* i_this) {
if (i_this->mCountDownTimers[3] == 1) {
if (fopAcM_checkStatus(actor, fopAcStts_CARRY_e)) {
fopAcM_cancelCarryNow(actor);
actor->mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
actor->attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
}
fopAcM_OnStatus(actor, fopAcStts_SHOWMAP_e);
actor->mGravity = -4.0f;
actor->gravity = -4.0f;
actor->speed.y = 20.0f;
i_this->mBodyCyl.OnCoSetBit();
i_this->mState = 0xF;
@@ -864,7 +864,7 @@ static void action_itai(am2_class* i_this) {
fopAcM_monsSeStart(i_this, JA_SE_CV_AM2_DAMAGE, 0x42);
dComIfGp_particle_set(0x81AE, &i_this->mWeakPos, &i_this->shape_angle);
if (i_this->mHealth > 0) {
if (i_this->health > 0) {
anm_init(i_this, AM2_BCK_DAMAGE, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
if (i_this->mCountDownTimers[2] > 5) {
i_this->speedF = 5.0f;
@@ -878,7 +878,7 @@ static void action_itai(am2_class* i_this) {
cLib_addCalc0(&i_this->speedF, 0.5f, 1.0f);
if (i_this->speedF < 0.2f) {
i_this->speedF = 0.0f;
i_this->mGravity = -3.0f;
i_this->gravity = -3.0f;
if (i_this->mCountDownTimers[2] < 5) {
i_this->mAction = ACTION_DOUSA;
i_this->mState = 3;
@@ -904,7 +904,7 @@ static void action_itai(am2_class* i_this) {
i_this->mNeedleCyl.OnAtSetBit();
i_this->mNeedleCyl.OnAtHitBit();
i_this->speed.y = 25.0f;
i_this->mGravity = -10.0f;
i_this->gravity = -10.0f;
i_this->speedF = 10.0f;
i_this->mCountDownTimers[0] = 100;
i_this->current.angle.y = fopAcM_searchPlayerAngleY(i_this);
@@ -931,11 +931,11 @@ static void action_itai(am2_class* i_this) {
// Using the fopAcM_seStart inline multiple times in a single case makes the codegen not match.
// fopAcM_seStart(i_this, JA_SE_CM_AM2_JUMP2, 0);
mDoAud_seStart(JA_SE_CM_AM2_JUMP2, &i_this->mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
mDoAud_seStart(JA_SE_CM_AM2_JUMP2, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
fopAcM_monsSeStart(i_this, JA_SE_CV_AM_JITABATA, 0x42);
i_this->speed.y = 25.0f;
i_this->mGravity = -10.0f;
i_this->gravity = -10.0f;
i_this->speedF = 10.0f;
}
@@ -965,7 +965,7 @@ static void action_itai(am2_class* i_this) {
}
if (naraku_check(i_this)) {
if (i_this->mbNotInHomeRoom || i_this->mHealth <= 0) {
if (i_this->mbNotInHomeRoom || i_this->health <= 0) {
if (i_this->mState != 0x19) {
anm_init(i_this, AM2_BCK_DEAD3, 1.0f, J3DFrameCtrl::LOOP_ONCE_e, 1.0f, -1);
fopAcM_seStart(i_this, JA_SE_CM_AM2_BEF_EXPLODE, 0);
@@ -1006,7 +1006,7 @@ static void action_handou_move(am2_class* i_this) {
i_this->mAction = ACTION_DOUSA;
i_this->mState = 3;
if (i_this->mStartsInactive == 1 && i_this->mSwitch != 0xFF && !dComIfGs_isSwitch(i_this->mSwitch, dComIfGp_roomControl_getStayNo())) {
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mCountDownTimers[2] = 20*30;
i_this->mAction = ACTION_MAHI;
i_this->mState = 0xC;
@@ -1038,19 +1038,19 @@ static void action_modoru_move(am2_class* i_this) {
i_this->mState++;
// Fall-through
case 0x29:
cLib_addCalc0(&i_this->mScale.x, 1.0f, 0.1f);
i_this->mScale.y = i_this->mScale.z = i_this->mScale.x;
cLib_addCalc0(&i_this->scale.x, 1.0f, 0.1f);
i_this->scale.y = i_this->scale.z = i_this->scale.x;
if (i_this->mScale.x < 0.1f) {
if (i_this->scale.x < 0.1f) {
i_this->speedF = 0.0f;
i_this->speed.setall(0.0f);
i_this->mGravity = -3.0f;
i_this->gravity = -3.0f;
i_this->mbMadeWaterSplash = false;
i_this->mRippleCb.end();
i_this->current.angle.y = i_this->shape_angle.y;
i_this->current.pos = i_this->mSpawnPos;
i_this->mScale.setall(0.0f);
i_this->scale.setall(0.0f);
i_this->shape_angle.y = i_this->mSpawnRotY;
i_this->current.angle.y = i_this->shape_angle.y;
i_this->current.pos = i_this->mSpawnPos;
@@ -1065,12 +1065,12 @@ static void action_modoru_move(am2_class* i_this) {
i_this->current.pos = i_this->mSpawnPos;
i_this->mTargetAngleY = i_this->current.angle.y;
cLib_addCalc2(&i_this->mScale.x, 1.0f, 1.0f, 0.1f);
i_this->mScale.y = i_this->mScale.z = i_this->mScale.x;
cLib_addCalc2(&i_this->scale.x, 1.0f, 1.0f, 0.1f);
i_this->scale.y = i_this->scale.z = i_this->scale.x;
if (i_this->mScale.x > 0.9f) {
if (i_this->scale.x > 0.9f) {
i_this->mCountUpTimers[1] = 0;
i_this->mScale.setall(1.0f);
i_this->scale.setall(1.0f);
i_this->mWeakSph.OffTgSetBit();
i_this->mNeedleCyl.OffAtSetBit();
i_this->mNeedleCyl.OffCoSetBit();
@@ -1081,7 +1081,7 @@ static void action_modoru_move(am2_class* i_this) {
i_this->mState = 0;
if (i_this->mStartsInactive == 1 && i_this->mSwitch != 0xFF && !dComIfGs_isSwitch(i_this->mSwitch, dComIfGp_roomControl_getStayNo())) {
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mCountDownTimers[2] = 20*30;
i_this->mAction = ACTION_MAHI;
i_this->mState = 0xC;
@@ -1143,15 +1143,15 @@ static BOOL daAM2_Execute(am2_class* i_this) {
MtxPosition(&offset, &rotOffset);
actor->speed.x = rotOffset.x;
actor->speed.z = rotOffset.z;
actor->speed.y += actor->mGravity;
actor->speed.y += actor->gravity;
if (actor->speed.y < -50.0f) {
actor->speed.y = -50.0f;
}
actor->mAttentionInfo.mPosition = actor->current.pos;
actor->mAttentionInfo.mPosition.y += 120.0f;
actor->mEyePos = i_this->mEyeballPos;
actor->mEyePos.y -= 15.0f + g_regHIO.mChild[8].mFloatRegs[2];
actor->attention_info.position = actor->current.pos;
actor->attention_info.position.y += 120.0f;
actor->eyePos = i_this->mEyeballPos;
actor->eyePos.y -= 15.0f + g_regHIO.mChild[8].mFloatRegs[2];
i_this->mBodyCyl.SetC(i_this->current.pos);
i_this->mBodyCyl.SetH(150.0f);
@@ -1261,7 +1261,7 @@ static BOOL useHeapInit(fopAc_ac_c* i_actor) {
};
i_this->mEyeJntHit = JntHit_create(i_this->mpMorf->getModel(), search_data, ARRAY_SIZE(search_data));
if (i_this->mEyeJntHit) {
i_this->mJntHit = i_this->mEyeJntHit;
i_this->jntHit = i_this->mEyeJntHit;
} else {
return FALSE;
}
@@ -1307,16 +1307,16 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) {
return cPhs_ERROR_e;
}
i_this->mItemTableIdx = dComIfGp_CharTbl()->GetNameIndex("amos2", 0);
i_this->mMaxHealth = 2;
i_this->mHealth = 2;
i_this->mStealItemLeft = 3;
i_this->itemTableIdx = dComIfGp_CharTbl()->GetNameIndex("amos2", 0);
i_this->max_health = 2;
i_this->health = 2;
i_this->stealItemLeft = 3;
i_this->model = i_this->mpMorf->getModel();
fopAcM_SetMtx(i_this, i_this->mpMorf->mpModel->getBaseTRMtx());
fopAcM_setCullSizeBox(i_this, -50.0f, 0.0f, -20.0f, 60.0f, 180.0f, 60.0f);
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mAcch.Set(
fopAcM_GetPosition_p(i_this), fopAcM_GetOldPosition_p(i_this),
@@ -1324,12 +1324,12 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) {
);
i_this->mStts.Init(254, 1, i_this);
i_this->mGravity = -3.0f;
i_this->gravity = -3.0f;
i_this->mEnemyIce.mpActor = i_this;
i_this->mEnemyIce.mWallRadius = 50.0f;
i_this->mEnemyIce.mCylHeight = 100.0f;
i_this->mAttentionInfo.mDistances[4] = 9;
i_this->attention_info.distances[4] = 9;
fopAcM_OnStatus(i_this, fopAcStts_UNK8000000_e);
@@ -1475,7 +1475,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) {
draw_SUB(i_this);
if (i_this->mStartsInactive == 1 && i_this->mSwitch != 0xFF && !dComIfGs_isSwitch(i_this->mSwitch, dComIfGp_roomControl_getStayNo())) {
i_this->mAttentionInfo.mFlags = 0;
i_this->attention_info.flags = 0;
i_this->mCountDownTimers[2] = 20*30;
i_this->mAction = ACTION_MAHI;
i_this->mState = 0xC;
@@ -1500,7 +1500,7 @@ actor_process_profile_definition g_profile_AM2 = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_AM2,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(am2_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+2 -2
View File
@@ -274,7 +274,7 @@ static void event_start_check(andsw0_class* i_this) {
switch (i_this->mEventState) {
case 0:
if (i_this->mEventIdx != -1 && fopAcM_isSwitch(actor, i_this->mSwitchToSet)) {
if (actor->mEvtInfo.checkCommandDemoAccrpt()) {
if (actor->eventInfo.checkCommandDemoAccrpt()) {
i_this->mEventState++;
} else {
fopAcM_orderOtherEventId(actor, i_this->mEventIdx, i_this->mEventNo);
@@ -350,7 +350,7 @@ actor_process_profile_definition g_profile_ANDSW0 = {
7,
fpcPi_CURRENT_e,
PROC_ANDSW0,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(andsw0_class),
0,
0,
+6 -6
View File
@@ -31,18 +31,18 @@ u8 daAndsw2_c::getEventNo() {
/* 00000084-00000090 .text getSwbit__10daAndsw2_cFv */
u8 daAndsw2_c::getSwbit() {
// Switch to set.
return (mBase.mParameters & 0x00FF0000) >> 16;
return (base.mParameters & 0x00FF0000) >> 16;
}
/* 00000090-0000009C .text getSwbit2__10daAndsw2_cFv */
u8 daAndsw2_c::getSwbit2() {
// First switch to check.
return (mBase.mParameters & 0xFF000000) >> 24;
return (base.mParameters & 0xFF000000) >> 24;
}
/* 0000009C-000000A8 .text getType__10daAndsw2_cFv */
u8 daAndsw2_c::getType() {
return (mBase.mParameters & 0x0000FF00) >> 8;
return (base.mParameters & 0x0000FF00) >> 8;
}
/* 000000A8-000000B4 .text getTimer__10daAndsw2_cFv */
@@ -53,7 +53,7 @@ u8 daAndsw2_c::getTimer() {
/* 000000B4-000000C0 .text getNum__10daAndsw2_cFv */
u8 daAndsw2_c::getNum() {
// Number of switches to check.
return (mBase.mParameters & 0x000000FF) >> 0;
return (base.mParameters & 0x000000FF) >> 0;
}
/* 000000C0-00000130 .text getTopSw__10daAndsw2_cFv */
@@ -129,7 +129,7 @@ static BOOL daAndsw2_actionTimer(daAndsw2_c* i_this) {
/* 00000380-00000438 .text daAndsw2_actionOrder__FP10daAndsw2_c */
static BOOL daAndsw2_actionOrder(daAndsw2_c* i_this) {
if (i_this->mEvtInfo.checkCommandDemoAccrpt()) {
if (i_this->eventInfo.checkCommandDemoAccrpt()) {
i_this->setActio(ACT_EVENT);
int room = i_this->current.roomNo;
int sw = i_this->getSwbit();
@@ -267,7 +267,7 @@ actor_process_profile_definition g_profile_ANDSW2 = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_ANDSW2,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daAndsw2_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+21 -21
View File
@@ -150,7 +150,7 @@ void daArrow_c::_atHit(dCcD_GObjInf* thisObjInf, fopAc_ac_c* hitActor, dCcD_GObj
void daArrow_c::checkCreater() {
// Check if this arrow was fired by Princess Zelda (during the Ganondorf fight).
fopAc_ac_c* archer;
if (fopAcM_SearchByID(mParentPcId, &archer)) {
if (fopAcM_SearchByID(parentActorID, &archer)) {
if (fpcM_GetName(archer) == PROC_PZ) {
mbSetByZelda = true;
}
@@ -525,12 +525,12 @@ void daArrow_c::setRoomInfo() {
f32 groundY = dComIfG_Bgsp()->GroundCross(&mGndChk);
if (groundY != -1000000000.0f) {
roomNo = dComIfG_Bgsp()->GetRoomId(mGndChk);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mGndChk);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mGndChk);
} else {
roomNo = dComIfGp_roomControl_getStayNo();
}
mTevStr.mRoomNo = roomNo;
tevStr.mRoomNo = roomNo;
mStts.SetRoomId(roomNo);
current.roomNo = roomNo;
}
@@ -540,7 +540,7 @@ void daArrow_c::setKeepMatrix() {
// Transform the arrow onto its archer's hand.
if (mbSetByZelda) {
fopNpc_npc_c* zelda;
fopAcM_SearchByID(mParentPcId, (fopAc_ac_c**)&zelda);
fopAcM_SearchByID(parentActorID, (fopAc_ac_c**)&zelda);
mDoMtx_stack_c::transS(0.7f, -0.07f, -0.2f);
mDoMtx_stack_c::XYZrotM(0x238E, 0x2CDF, 0x29BE);
@@ -1075,12 +1075,12 @@ BOOL daArrow_c::createInit() {
setKeepMatrix();
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
mCull.mBox.mMin.x = -6.0f;
mCull.mBox.mMin.y = -6.0f;
mCull.mBox.mMin.z = 0.0f;
mCull.mBox.mMax.x = 6.0f;
mCull.mBox.mMax.y = 6.0f;
mCull.mBox.mMax.z = 65.0f;
cull.box.min.x = -6.0f;
cull.box.min.y = -6.0f;
cull.box.min.z = 0.0f;
cull.box.max.x = 6.0f;
cull.box.max.y = 6.0f;
cull.box.max.z = 65.0f;
mStts.Init(10, 0xFF, this);
mAtCps.Set(m_at_cps_src);
@@ -1151,15 +1151,15 @@ BOOL daArrow_c::_execute() {
if (mpSparkleEmitter) {
if (mSparkleTimer != 0) {
f32 scale = mSparkleTimer*2.0f;
if (scale > 7.0f) {
scale = 7.0f;
f32 scaleMag = mSparkleTimer*2.0f;
if (scaleMag > 7.0f) {
scaleMag = 7.0f;
}
mpSparkleEmitter->setGlobalTranslation(current.pos.x, current.pos.y, current.pos.z);
JGeometry::TVec3<f32> scaleVec;
scaleVec.x = scale;
scaleVec.y = scale;
scaleVec.z = scale;
scaleVec.x = scaleMag;
scaleVec.y = scaleMag;
scaleVec.z = scaleMag;
mpSparkleEmitter->setGlobalScale(scaleVec);
} else {
mpSparkleEmitter->becomeInvalidEmitter();
@@ -1193,8 +1193,8 @@ BOOL daArrow_c::_execute() {
(this->*mCurrProcFunc)();
}
mAttentionInfo.mPosition = current.pos;
mEyePos = current.pos;
attention_info.position = current.pos;
eyePos = current.pos;
setRoomInfo();
return TRUE;
@@ -1206,8 +1206,8 @@ BOOL daArrow_c::_draw() {
return TRUE;
}
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
if (mArrowType != TYPE_LIGHT) {
mpTipMat->getShape()->show();
@@ -1310,7 +1310,7 @@ actor_process_profile_definition g_profile_ARROW = {
/* ListID */ 9,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_ARROW,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daArrow_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+8 -8
View File
@@ -98,8 +98,8 @@ void daArrow_Iceeff_c::set_mtx() {
}
}
else {
mScale.setall(1.0f);
mpModel->setBaseScale(mScale);
scale.setall(1.0f);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -109,7 +109,7 @@ void daArrow_Iceeff_c::set_mtx() {
s32 daArrow_Iceeff_c::_create() {
fopAcM_SetupActor(this, daArrow_Iceeff_c);
void* arrow = fopAcM_SearchByID(mParentPcId);
void* arrow = fopAcM_SearchByID(parentActorID);
if(arrow == 0) {
return cPhs_ERROR_e;
}
@@ -153,10 +153,10 @@ bool daArrow_Iceeff_c::_draw() {
field_0xA1C->setFrame(field_0xA34);
dComIfGd_setListP1();
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
if(field_0xA38 == 0) {
for(int i = 0; i < temp; i++) {
g_env_light.setLightTevColorType(field_0x298[i], &mTevStr);
g_env_light.setLightTevColorType(field_0x298[i], &tevStr);
if(field_0xA3C == 1) {
mDoExt_modelUpdateDL(field_0x298[i]);
@@ -164,7 +164,7 @@ bool daArrow_Iceeff_c::_draw() {
}
}
else {
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
J3DModelData* mdl_data = mpModel->getModelData();
mBck.entry(mdl_data, mBck.getFrame());
if(field_0xA3C == 1) {
@@ -193,7 +193,7 @@ static BOOL daArrow_Iceeff_Execute(void* i_this) {
bool daArrow_Iceeff_c::_execute() {
static cXyz ripple_scale(1.0f, 1.0f, 1.0f);
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(mParentPcId));
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(parentActorID));
if(field_0xA38 == 0) {
if(arrow == 0) {
dComIfGp_particle_setP1(0x55, &current.pos, &current.angle);
@@ -306,7 +306,7 @@ actor_process_profile_definition g_profile_ARROW_ICEEFF = {
9,
fpcPi_CURRENT_e,
PROC_ARROW_ICEEFF,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daArrow_Iceeff_c),
0,
0,
+5 -5
View File
@@ -14,7 +14,7 @@
/* 00000078-00000108 .text setTopPos__18daArrow_Lighteff_cFv */
void daArrow_Lighteff_c::setTopPos() {
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(mParentPcId));
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(parentActorID));
if(arrow) {
mDoMtx_stack_c::copy(arrow->field_0x6b4);
mDoMtx_stack_c::transM(0.0f, 0.0f, 62.0f);
@@ -173,7 +173,7 @@ void daArrow_Lighteff_c::CreateInit() {
void daArrow_Lighteff_c::set_mtx() {
field_0x298->setBaseScale(field_0x2A8);
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(mParentPcId));
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(parentActorID));
if(arrow) {
mDoMtx_stack_c::copy(arrow->field_0x6b4);
mDoMtx_stack_c::transM(0.0f, 0.0f, 62.0f);
@@ -211,7 +211,7 @@ bool daArrow_Lighteff_c::_delete() {
if(field_0x2EA == 1) {
daPy_py_c* link = daPy_getPlayerActorClass();
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(mParentPcId));
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(parentActorID));
if(arrow) {
if(!arrow->isSetByZelda()) {
link->offUseArrowEffect();
@@ -305,7 +305,7 @@ bool daArrow_Lighteff_c::_execute() {
brk_play();
daPy_py_c* link = daPy_getPlayerActorClass();
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(mParentPcId));
daArrow_c* arrow = static_cast<daArrow_c*>(fopAcM_SearchByID(parentActorID));
if(arrow) {
field_0x2EC = fopAcM_GetParam(arrow);
if(arrow->field_0x6e4 == 1) {
@@ -412,7 +412,7 @@ actor_process_profile_definition g_profile_ARROW_LIGHTEFF = {
9,
fpcPi_CURRENT_e,
PROC_ARROW_LIGHTEFF,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daArrow_Lighteff_c),
0,
0,
+1 -1
View File
@@ -408,7 +408,7 @@ actor_process_profile_definition2 g_profile_BG = {
7,
fpcPi_CURRENT_e,
PROC_BG,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daBg_c),
0,
0,
+13 -13
View File
@@ -64,14 +64,14 @@ static void* b_a_sub(void* search, void* user) {
/* 000000C4-0000018C .text daBita_Draw__FP10bita_class */
static BOOL daBita_Draw(bita_class* i_this) {
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &i_this->current.pos, &i_this->mTevStr);
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &i_this->current.pos, &i_this->tevStr);
if (i_this->mMode == 1 && i_this->mSub == 1) {
dKy_getEnvlight().setLightTevColorType(i_this->mpModelEf, &i_this->mTevStr);
dKy_getEnvlight().setLightTevColorType(i_this->mpModelEf, &i_this->tevStr);
i_this->mpBrkAnm->entry(i_this->mpModelEf->getModelData());
mDoExt_modelUpdateDL(i_this->mpModelEf);
i_this->mpBrkAnm->remove(i_this->mpModelEf->getModelData());
} else {
dKy_getEnvlight().setLightTevColorType(i_this->mpModel, &i_this->mTevStr);
dKy_getEnvlight().setLightTevColorType(i_this->mpModel, &i_this->tevStr);
mDoExt_modelUpdateDL(i_this->mpModel);
}
return TRUE;
@@ -172,7 +172,7 @@ static BOOL daBita_Execute(bita_class* i_this) {
VECAdd(&pos, &i_this->current.pos, &pos);
i_this->mCyl.SetC(pos);
i_this->mCyl.SetH(60.0f);
i_this->mCyl.SetR(i_this->mScale.x * 400.0f);
i_this->mCyl.SetR(i_this->scale.x * 400.0f);
dComIfG_Ccsp()->Set(&i_this->mCyl);
}
@@ -282,17 +282,17 @@ static s32 daBita_Create(fopAc_ac_c* i_ac) {
return cPhs_ERROR_e;
switch (i_this->mPrmScale) {
case 1: i_this->mScale.setall(1.5f); break;
case 2: i_this->mScale.setall(2.0f); break;
case 3: i_this->mScale.setall(3.0f); break;
default: i_this->mScale.y = i_this->mScale.z = i_this->mScale.x = 1.0f; break;
case 1: i_this->scale.setall(1.5f); break;
case 2: i_this->scale.setall(2.0f); break;
case 3: i_this->scale.setall(3.0f); break;
default: i_this->scale.y = i_this->scale.z = i_this->scale.x = 1.0f; break;
}
fopAcM_SetMtx(i_this, i_this->mpModel->getBaseTRMtx());
fopAcM_SetMin(i_this, i_this->mScale.x * -1000.0f, -500.0f, i_this->mScale.z * -1000.0f);
fopAcM_SetMax(i_this, i_this->mScale.x * 1000.0f, 500.0f, i_this->mScale.z * 1000.0f);
i_this->mpModel->setBaseScale(i_this->mScale);
i_this->mpModelEf->setBaseScale(i_this->mScale);
fopAcM_SetMin(i_this, i_this->scale.x * -1000.0f, -500.0f, i_this->scale.z * -1000.0f);
fopAcM_SetMax(i_this, i_this->scale.x * 1000.0f, 500.0f, i_this->scale.z * 1000.0f);
i_this->mpModel->setBaseScale(i_this->scale);
i_this->mpModelEf->setBaseScale(i_this->scale);
i_this->shape_angle = i_this->current.angle;
base_mtx_set(i_this);
i_this->mpBgW->Move();
@@ -316,7 +316,7 @@ actor_process_profile_definition g_profile_BITA = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_BITA,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(bita_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+21 -21
View File
@@ -181,7 +181,7 @@ static void yari_off_check(bk_class* i_this) {
boko->current.angle.y = player->shape_angle.y;
dBgS_LinChk linChk;
linChk.Set(&i_this->mEyePos, &boko->current.pos, i_this);
linChk.Set(&i_this->eyePos, &boko->current.pos, i_this);
if (dComIfG_Bgsp()->LineCross(&linChk)) {
MtxP mtx = i_this->mpMorf->getModel()->getAnmMtx(0x10); // mune (chest) joint
MTXCopy(mtx, *calc_mtx);
@@ -359,7 +359,7 @@ static BOOL daBk_shadowDraw(bk_class* i_this) {
i_this->mShadowId = dComIfGd_setShadow(
i_this->mShadowId, 1, model, &shadowPos, temp, shadowSize,
i_this->current.pos.y, i_this->dr.mAcch.GetGroundH(),
i_this->dr.mAcch.m_gnd, &i_this->mTevStr,
i_this->dr.mAcch.m_gnd, &i_this->tevStr,
0, 1.0f, dDlst_shadowControl_c::getSimpleTex()
);
}
@@ -874,13 +874,13 @@ static void fight_run(bk_class* i_this) {
}
// Fall-through
case 0x01:
f32 scale;
f32 scaleMag;
if (i_this->m0B30 != 0 || i_this->m11F3 != 0) {
scale = l_bkHIO.m054;
scaleMag = l_bkHIO.m054;
} else {
scale = l_bkHIO.m058;
scaleMag = l_bkHIO.m058;
}
cLib_addCalc2(&i_this->speedF, scale, 1.0f, 5.0f);
cLib_addCalc2(&i_this->speedF, scaleMag, 1.0f, 5.0f);
i_this->m1212++;
if (daBk_player_way_check(i_this) && (i_this->m1212 & 0x30) && !r29) {
if (i_this->m120C != 0) {
@@ -1067,7 +1067,7 @@ static void fight_run(bk_class* i_this) {
fopAc_ac_c* r29 = (fopAc_ac_c*)fpcM_Search(shot_s_sub, i_this);
if (r29) {
if (r29->speedF > 10.0f) {
cXyz sp18 = (r29->current.pos - i_this->mEyePos);
cXyz sp18 = (r29->current.pos - i_this->eyePos);
if (sp18.abs() < r29->speedF * 10.0f) {
r27 = true;
}
@@ -1389,7 +1389,7 @@ static BOOL daBk_Execute(bk_class* i_this) {
if (enemy_ice(&i_this->mEnemyIce)) {
i_this->mpMorf->setPlayMode(J3DFrameCtrl::LOOP_ONCE_e);
i_this->mpMorf->setPlaySpeed(3.0f);
i_this->mpMorf->play(&i_this->mEyePos, 0, 0);
i_this->mpMorf->play(&i_this->eyePos, 0, 0);
i_this->mpMorf->getModel()->setBaseTRMtx(mDoMtx_stack_c::get());
i_this->mpMorf->calc();
tate_mtx_set(i_this);
@@ -1397,7 +1397,7 @@ static BOOL daBk_Execute(bk_class* i_this) {
return TRUE;
}
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->tevStr);
if (i_this->mType == 8) {
for (int i = 0; i < ARRAY_SIZE(i_this->m0300); i++) {
@@ -1474,7 +1474,7 @@ static BOOL daBk_Execute(bk_class* i_this) {
if (fabsf(i_this->speedF) > 10.0f) {
another_hit = 1;
} else {
i_this->mScale.x = i_this->mScale.y = i_this->mScale.z = 0.5f;
i_this->scale.x = i_this->scale.y = i_this->scale.z = 0.5f;
}
}
i_this->m0B88.SetR(62.5f);
@@ -1509,7 +1509,7 @@ static BOOL daBk_Execute(bk_class* i_this) {
}
}
i_this->mAttentionInfo.mFlags = fopAc_Attn_LOCKON_ENEMY_e;
i_this->attention_info.flags = fopAc_Attn_LOCKON_ENEMY_e;
fopAcM_OnStatus(i_this, fopAcStts_SHOWMAP_e);
i_this->m02F0 = 0;
i_this->m02F4 = 0;
@@ -1588,10 +1588,10 @@ static BOOL daBk_Execute(bk_class* i_this) {
}
J3DModel* model = i_this->mpMorf->getModel();
model->setBaseScale(i_this->mScale);
model->setBaseScale(i_this->scale);
model->setBaseTRMtx(*calc_mtx);
if (i_this->m030C == 0) {
i_this->mpMorf->play(&i_this->mEyePos, 0, 0);
i_this->mpMorf->play(&i_this->eyePos, 0, 0);
}
i_this->mpMorf->calc();
@@ -1819,7 +1819,7 @@ static BOOL useHeapInit(fopAc_ac_c* i_actor) {
// TODO check this case as well.
return cPhs_ERROR_e;
}
i_this->m02E8->setBaseScale(i_this->mScale);
i_this->m02E8->setBaseScale(i_this->scale);
if (i_this->m02D4 != 0) {
modelData = (J3DModelData*)dComIfG_getObjectRes("Bk", BK_BMD_BK_TATE);
@@ -1958,7 +1958,7 @@ static BOOL useHeapInit(fopAc_ac_c* i_actor) {
};
i_this->mpJntHit = JntHit_create(i_this->mpMorf->getModel(), search_data, ARRAY_SIZE(search_data));
if (i_this->mpJntHit) {
i_this->mJntHit = i_this->mpJntHit;
i_this->jntHit = i_this->mpJntHit;
} else {
return FALSE;
}
@@ -1974,7 +1974,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
s32 phase_state = dComIfG_resLoad(&i_this->mPhase, "Bk");
if (phase_state == cPhs_COMPLEATE_e) {
i_this->mGbaName = 1;
i_this->gbaName = 1;
if (strcmp(dComIfGp_getStartStageName(), "ITest63") == 0 ||
strcmp(dComIfGp_getStartStageName(), "GanonJ") == 0)
@@ -2015,7 +2015,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
i_this->m02B7 = 0xFF;
}
i_this->mItemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Bk", 0);
i_this->itemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Bk", 0);
if (!fopAcM_entrySolidHeap(i_this, useHeapInit, 0x17B20)) {
return cPhs_ERROR_e;
@@ -2124,9 +2124,9 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
i_this->dr.mInvincibleTimer = 5;
if (i_this->m02D4 != 0) {
i_this->mMaxHealth = i_this->mHealth = 7;
i_this->max_health = i_this->health = 7;
} else {
i_this->mMaxHealth = i_this->mHealth = 5;
i_this->max_health = i_this->health = 5;
}
i_this->dr.mStts.Init(200, 0xFF, i_this);
@@ -2304,7 +2304,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
i_this->mEnemyFire.mParticleScale[i] = fire_sc[i];
}
i_this->mStealItemLeft = 3;
i_this->stealItemLeft = 3;
daBk_Execute(i_this);
}
@@ -2325,7 +2325,7 @@ actor_process_profile_definition g_profile_BK = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_BK,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(bk_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+24 -24
View File
@@ -388,8 +388,8 @@ namespace daBomb2 {
on_carry();
}
mGravity = attr().gravity;
mMaxFallSpeed = attr().maxFallSpeed;
gravity = attr().gravity;
maxFallSpeed = attr().maxFallSpeed;
bgCrrPos();
speed.y = 0.0f;
speedF = 0.0f;
@@ -434,7 +434,7 @@ namespace daBomb2 {
}
void Act_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::concat(field_0x754);
mDoMtx_stack_c::ZXYrotM(shape_angle);
@@ -467,10 +467,10 @@ namespace daBomb2 {
} else if (r4) {
r31 = false;
} else if (r31) {
radius = mScale.x * 30.0f;
radius = scale.x * 30.0f;
static cXyz local_center(0.0f, 30.0f, 0.0f);
mDoMtx_stack_c::copy(mpModel->getBaseTRMtx());
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
mDoMtx_stack_c::multVec(&local_center, &pos);
}
@@ -577,13 +577,13 @@ namespace daBomb2 {
s32 roomNo;
if(mAcch.GetGroundH() != -1.0e9f) {
roomNo = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
}
else {
roomNo = dComIfGp_roomControl_getStayNo();
}
mTevStr.mRoomNo = roomNo;
tevStr.mRoomNo = roomNo;
mStts.SetRoomId(roomNo);
current.roomNo = roomNo;
}
@@ -702,10 +702,10 @@ namespace daBomb2 {
}
void Act_c::eff_explode_normal(const csXyz* rotation) {
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &mScale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, &current.pos, NULL, &mScale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &mScale);
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &mScale);
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &scale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, &current.pos, NULL, &scale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &scale);
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &scale);
}
void Act_c::eff_explode_water() {
@@ -734,8 +734,8 @@ namespace daBomb2 {
field_0x6CC = field_0x6C0;
field_0x6D8 = field_0x6C0;
dComIfGp_particle_setP1(dPa_name::ID_COMMON_FUSE_SPARKS, &field_0x6C0, NULL, &mScale, 0xFF, &mSparks);
dComIfGp_particle_setToonP1(0x2012, &field_0x6C0, NULL, &mScale, 0xDC, &mSmoke);
dComIfGp_particle_setP1(dPa_name::ID_COMMON_FUSE_SPARKS, &field_0x6C0, NULL, &scale, 0xFF, &mSparks);
dComIfGp_particle_setToonP1(0x2012, &field_0x6C0, NULL, &scale, 0xDC, &mSmoke);
mSmoke.setOldPosP(&field_0x6CC, &field_0x6D8);
}
}
@@ -958,16 +958,16 @@ namespace daBomb2 {
}
void Act_c::on_carry() {
mAttentionInfo.mFlags |= fopAc_Attn_ACTION_CARRY_e;
attention_info.flags |= fopAc_Attn_ACTION_CARRY_e;
}
void Act_c::off_carry() {
mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
}
void Act_c::mode_wait_init() {
mState = 0;
mGravity = attr().gravity;
gravity = attr().gravity;
mSph.OnCoSPrmBit(CO_SPRM_SET);
}
@@ -1060,7 +1060,7 @@ namespace daBomb2 {
mEnv.set(current.pos);
speedF = 0.0f;
speed = cXyz::Zero;
mGravity = 0.0f;
gravity = 0.0f;
off_carry();
mSph.OffTgSPrmBit(TG_SPRM_SET);
mSph.OffCoSPrmBit(CO_SPRM_SET);
@@ -1245,10 +1245,10 @@ namespace daBomb2 {
tensor_proc_call();
anm_play();
mAttentionInfo.mPosition.x = current.pos.x;
mAttentionInfo.mPosition.y = current.pos.y + 50.0f;
mAttentionInfo.mPosition.z = current.pos.z;
mEyePos = mAttentionInfo.mPosition;
attention_info.position.x = current.pos.x;
attention_info.position.y = current.pos.y + 50.0f;
attention_info.position.z = current.pos.z;
eyePos = attention_info.position;
set_mtx();
cc_set();
@@ -1303,8 +1303,8 @@ namespace daBomb2 {
/* 800E0A0C-800E0A80 .text _draw__Q27daBomb25Act_cFv */
bool Act_c::_draw() {
if(is_draw()) {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
draw_nut();
draw_shadow();
}
@@ -1349,7 +1349,7 @@ actor_process_profile_definition g_profile_Bomb2 = {
7,
fpcPi_CURRENT_e,
PROC_Bomb2,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daBomb2::Act_c),
0,
0,
+43 -43
View File
@@ -190,8 +190,8 @@ BOOL daBomb_c::draw() {
return true;
}
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
if(mType == 1) {
draw_nut();
@@ -452,10 +452,10 @@ void daBomb_c::water_tention() {
void daBomb_c::posMoveF() {
cM3dGPla* tri;
bool temp = mNoGravityTime > 0;
f32 gravity;
f32 origGravity;
if(temp) {
gravity = mGravity;
mGravity = 0.0f;
origGravity = gravity;
gravity = 0.0f;
}
if(mType == 0 && chk_water_in()) {
@@ -490,7 +490,7 @@ void daBomb_c::posMoveF() {
}
if(temp) {
mGravity = gravity;
gravity = origGravity;
mNoGravityTime--;
}
}
@@ -634,13 +634,13 @@ void daBomb_c::setRoomInfo() {
s32 roomNo;
if(mAcch.GetGroundH() != -1.0e9f) {
roomNo = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
}
else {
roomNo = dComIfGp_roomControl_getStayNo();
}
mTevStr.mRoomNo = roomNo;
tevStr.mRoomNo = roomNo;
mStts.SetRoomId(roomNo);
current.roomNo = roomNo;
}
@@ -696,8 +696,8 @@ void daBomb_c::setFuseEffect() {
mFusePos2 = mFusePos;
mFusePos3 = mFusePos;
dComIfGp_particle_setP1(dPa_name::ID_COMMON_FUSE_SPARKS, &mFusePos, NULL, &mScale, 0xFF, &mSparks);
dComIfGp_particle_setToonP1(0x2012, &mFusePos, NULL, &mScale, 0xDC, &mSmoke);
dComIfGp_particle_setP1(dPa_name::ID_COMMON_FUSE_SPARKS, &mFusePos, NULL, &scale, 0xFF, &mSparks);
dComIfGp_particle_setToonP1(0x2012, &mFusePos, NULL, &scale, 0xDC, &mSmoke);
mSmoke.field_0x0C = &mFusePos2;
mSmoke.field_0x10 = &mFusePos3;
mSmoke.field_0x04 = 0x14;
@@ -706,28 +706,28 @@ void daBomb_c::setFuseEffect() {
/* 800DAD6C-800DAE54 .text eff_explode_normal__8daBomb_cFPC5csXyz */
void daBomb_c::eff_explode_normal(const csXyz* rotation) {
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &mScale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, &current.pos, NULL, &mScale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &mScale);
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &mScale);
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &scale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, &current.pos, NULL, &scale);
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &scale);
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &scale);
}
/* 800DAE54-800DAF94 .text eff_explode_cheap__8daBomb_cFPC5csXyz */
void daBomb_c::eff_explode_cheap(const csXyz* rotation) {
JPABaseEmitter* emitter = dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &mScale);
JPABaseEmitter* emitter = dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, &current.pos, rotation, &scale);
if(emitter) {
emitter->mLifeTime = 0xC;
JGeometry::TVec3<f32> vec(0.5f, 0.67f, 1.0f);
emitter->setGlobalParticleScale(vec);
}
dComIfGp_particle_setBombSmoke(0x232A, &current.pos, NULL, &mScale);
emitter = dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &mScale);
dComIfGp_particle_setBombSmoke(0x232A, &current.pos, NULL, &scale);
emitter = dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, &current.pos, NULL, &scale);
if(emitter) {
emitter->mLifeTime = 0x46;
}
emitter = dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &mScale);
emitter = dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, &current.pos, NULL, &scale);
if(emitter) {
emitter->mLifeTime = 0x46;
emitter->mInitialVelAxis = 25.0f;
@@ -817,13 +817,13 @@ int daBomb_c::procExplode_init() {
mFunc = &daBomb_c::procExplode;
speedF = 0.0f;
speed = cXyz::Zero;
mGravity = 0.0f;
gravity = 0.0f;
if(!chk_state(STATE_8)) {
change_state(STATE_0);
}
mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
if(field_0x6F0) {
daPy_getPlayerLinkActorClass()->decrementBombCnt();
@@ -928,7 +928,7 @@ bool daBomb_c::procCarry_init() {
change_state(STATE_2);
speedF = 0.0f;
speed.set(cXyz::Zero);
mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
mSph.OffCoSPrmBit(CO_SPRM_SET);
return true;
@@ -1002,10 +1002,10 @@ bool daBomb_c::procWait() {
if(!temp && !field_0x781) {
bound(y_vel);
if((mAcch.ChkGroundHit() || chk_state(STATE_5)) && !mAcch.ChkGroundLanding()) {
mAttentionInfo.mFlags |= fopAc_Attn_ACTION_CARRY_e;
attention_info.flags |= fopAc_Attn_ACTION_CARRY_e;
}
else {
mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
}
}
@@ -1023,9 +1023,9 @@ bool daBomb_c::waitState_cannon() {
/* 800DBBC4-800DBC4C .text waitState_bomtyu__8daBomb_cFv */
void daBomb_c::waitState_bomtyu() {
cLib_chaseF(&mScale.x, 1.0f, 0.05f);
cLib_chaseF(&mScale.y, 1.0f, 0.05f);
cLib_chaseF(&mScale.z, 1.0f, 0.05f);
cLib_chaseF(&scale.x, 1.0f, 0.05f);
cLib_chaseF(&scale.y, 1.0f, 0.05f);
cLib_chaseF(&scale.z, 1.0f, 0.05f);
if(mBombFire) {
setFuseEffect();
mBombFire = 0;
@@ -1067,10 +1067,10 @@ BOOL daBomb_c::execute() {
}
mStts.Move();
mAttentionInfo.mPosition.x = current.pos.x;
mAttentionInfo.mPosition.y = current.pos.y + 50.0f;
mAttentionInfo.mPosition.z = current.pos.z;
mEyePos = mAttentionInfo.mPosition;
attention_info.position.x = current.pos.x;
attention_info.position.y = current.pos.y + 50.0f;
attention_info.position.z = current.pos.z;
eyePos = attention_info.position;
if(!chk_attrState(this, ATTR_STATE_20)) {
set_mtx();
mFusePos3 = mFusePos2;
@@ -1081,7 +1081,7 @@ BOOL daBomb_c::execute() {
pos.y = current.pos.y + 30.0f;
pos.z = current.pos.z;
mSph.SetC(pos);
mSph.SetR(mScale.x * 30.0f);
mSph.SetR(scale.x * 30.0f);
if(mMassCounter != g_Counter.mCounter0) {
dComIfG_Ccsp()->Set(&mSph);
//using inline breaks match
@@ -1172,7 +1172,7 @@ void daBomb_c::anm_play_nut() {
/* 800DC2D0-800DC384 .text set_mtx__8daBomb_cFv */
void daBomb_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
if(prm_get_angXZero()) {
mDoMtx_stack_c::ZXYrotM(0, shape_angle.y, shape_angle.z);
@@ -1410,12 +1410,12 @@ void daBomb_c::create_init() {
mSph.GetObjAt().SetAtp(2);
}
mGravity = -2.9f;
mMaxFallSpeed = -100.0f;
gravity = -2.9f;
maxFallSpeed = -100.0f;
mRestTime = 0x96;
mInitialState = prm_get_state();
if(!chk_state(STATE_4)) {
mAttentionInfo.mFlags |= fopAc_Attn_ACTION_CARRY_e;
attention_info.flags |= fopAc_Attn_ACTION_CARRY_e;
}
field_0x77C = 0;
@@ -1432,7 +1432,7 @@ void daBomb_c::create_init() {
mMassCounter = g_Counter.mCounter0 - 1;
if(chk_attrState(this, ATTR_STATE_2)) {
mScale.setall(0.0f);
scale.setall(0.0f);
}
if(chk_attrState(this, ATTR_STATE_4)) {
setFuseEffect();
@@ -1456,12 +1456,12 @@ void daBomb_c::create_init() {
procWait_init();
}
mCull.mBox.mMin.x = -36.0f;
mCull.mBox.mMin.y = 0.0f;
mCull.mBox.mMin.z = -36.0f;
mCull.mBox.mMax.x = 36.0f;
mCull.mBox.mMax.y = 66.0f;
mCull.mBox.mMax.z = 36.0f;
cull.box.min.x = -36.0f;
cull.box.min.y = 0.0f;
cull.box.min.z = -36.0f;
cull.box.max.x = 36.0f;
cull.box.max.y = 66.0f;
cull.box.max.z = 36.0f;
fopAcM_setCullSizeFar(this, 10.0f);
init_mtx();
@@ -1480,7 +1480,7 @@ actor_process_profile_definition g_profile_BOMB = {
7,
fpcPi_CURRENT_e,
PROC_BOMB,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daBomb_c),
0,
0,
+2 -2
View File
@@ -26,7 +26,7 @@ static s32 daBossItem_Create(fopAc_ac_c* i_this) {
fopAcM_SetupActor(bItem, bossitem_class);
int stageNo = bItem->mBase.mParameters & 0xFF;
int stageNo = bItem->base.mParameters & 0xFF;
BOOL isStageBossDead = dComIfGs_isStageBossEnemy(stageNo);
if (isStageBossDead && !dComIfGs_isStageLife(stageNo)) {
@@ -52,7 +52,7 @@ actor_process_profile_definition g_profile_BOSSITEM = {
7,
fpcLy_CURRENT_e,
PROC_BOSSITEM,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(bossitem_class),
0,
0,
+5 -5
View File
@@ -44,7 +44,7 @@ void daBranch_c::set_mtx() {
pMdl = mModel[i];
if (pMdl) {
pMdl->setBaseScale(mScale);
pMdl->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(current.angle);
@@ -123,8 +123,8 @@ inline BOOL daBranch_c::draw() {
activeIdx = 1;
}
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mModel[activeIdx], &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mModel[activeIdx], &tevStr);
mAnims[activeIdx]->updateDL();
@@ -138,7 +138,7 @@ static BOOL daBranch_Draw(daBranch_c* i_this) {
}
inline BOOL daBranch_c::execute() {
u8 demoId = mDemoActorId;
u8 demoId = demoActorID;
if (demoId == 0) {
if (m02B8 == 5) {
@@ -246,7 +246,7 @@ actor_process_profile_definition g_profile_BRANCH = {
7,
fpcLy_CURRENT_e,
PROC_BRANCH,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daBranch_c),
0,
0,
+3 -3
View File
@@ -407,7 +407,7 @@ void daDitem_c::anim_control() {
/* 00000760-00000880 .text set_mtx__9daDitem_cFv */
void daDitem_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
fopAcM_addAngleY(this, current.angle.y + 0x0111, 0x0111);
if (chkArgFlag(0x02) || chkArgFlag(0x04) || chkArgFlag(0x08)) {
@@ -428,7 +428,7 @@ void daDitem_c::set_mtx() {
/* 00000880-000008F0 .text settingBeforeDraw__9daDitem_cFv */
void daDitem_c::settingBeforeDraw() {
if (isBomb(m_itemNo) || m_itemNo == BOMB_BAG || m_itemNo == dItem_SKULL_HAMMER_e || m_itemNo == dItem_SMALL_KEY_e) {
dDlst_texSpecmapST(&mEyePos, &mTevStr, mpModel->getModelData(), 1.0f);
dDlst_texSpecmapST(&eyePos, &tevStr, mpModel->getModelData(), 1.0f);
}
}
@@ -544,7 +544,7 @@ actor_process_profile_definition g_profile_Demo_Item = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Demo_Item,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daDitem_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+7 -7
View File
@@ -23,7 +23,7 @@ static BOOL daDisappear_Execute(disappear_class* i_this) {
i_this->mTimer--;
if (i_this->mTimer == 0) {
s8 health = i_this->mHealth; // TODO: add enum for disappear types (stored in health)
s8 health = i_this->health; // TODO: add enum for disappear types (stored in health)
if (health != 1 && health != 3) {
if (health == 2) {
@@ -42,7 +42,7 @@ static BOOL daDisappear_Execute(disappear_class* i_this) {
}
}
else {
fopAcM_createIball(&i_this->current.pos, i_this->mItemTableIdx, i_this->current.roomNo, &i_this->current.angle, i_this->mItemBitNo);
fopAcM_createIball(&i_this->current.pos, i_this->itemTableIdx, i_this->current.roomNo, &i_this->current.angle, i_this->mItemBitNo);
}
}
}
@@ -71,7 +71,7 @@ void set_disappear(disappear_class* i_this, float scale) {
cXyz particleScale(scale, scale, scale);
i_this->mTimer = 58 + g_regHIO.mChild[8].mShortRegs[0];
switch (i_this->mHealth) {
switch (i_this->health) {
case 0x0:
case 0x2:
case 0xA:
@@ -102,15 +102,15 @@ static s32 daDisappear_Create(fopAc_ac_c* i_this) {
fopAcM_SetupActor(dis, disappear_class);
dis->mHealth = fopAcM_GetParam(dis) & 0xFF;
f32 scale = ((fopAcM_GetParam(dis) >> 8) & 0xFF) * 0.1f;
dis->health = fopAcM_GetParam(dis) & 0xFF;
f32 scaleMag = ((fopAcM_GetParam(dis) >> 8) & 0xFF) * 0.1f;
dis->mItemBitNo = (fopAcM_GetParam(dis) >> 0x10) & 0xFF;
if (dis->mItemBitNo == 0xFF) {
dis->mItemBitNo = -1;
}
set_disappear(dis, scale);
set_disappear(dis, scaleMag);
return cPhs_COMPLEATE_e;
}
@@ -128,7 +128,7 @@ actor_process_profile_definition g_profile_DISAPPEAR = {
7,
fpcLy_CURRENT_e,
PROC_DISAPPEAR,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(disappear_class),
0,
0,
+7 -7
View File
@@ -50,10 +50,10 @@ daDr_HIO_c::daDr_HIO_c() {
/* 00000148-000001DC .text daDr_Draw__FP8dr_class */
static BOOL daDr_Draw(dr_class* i_this) {
J3DModel* model = i_this->mpMorf->getModel();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->mTevStr);
g_env_light.setLightTevColorType(model, &i_this->mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &i_this->current.pos, &i_this->tevStr);
g_env_light.setLightTevColorType(model, &i_this->tevStr);
i_this->mpMorf->entryDL();
dSnap_RegistFig(DSNAP_TYPE_DR, i_this, i_this->mEyePos, i_this->shape_angle.y, 1.0f, 1.0f, 1.0f);
dSnap_RegistFig(DSNAP_TYPE_DR, i_this, i_this->eyePos, i_this->shape_angle.y, 1.0f, 1.0f, 1.0f);
return TRUE;
}
@@ -183,7 +183,7 @@ static void move(dr_class* i_this) {
/* 0000091C-000009CC .text daDr_setMtx__FP8dr_class */
static void daDr_setMtx(dr_class* i_this) {
J3DModel* model = i_this->mpMorf->getModel();
model->setBaseScale(i_this->mScale);
model->setBaseScale(i_this->scale);
mDoMtx_stack_c::transS(i_this->current.pos);
cMtx_YrotM(mDoMtx_stack_c::get(), i_this->current.angle.y);
cMtx_XrotM(mDoMtx_stack_c::get(), i_this->current.angle.x);
@@ -203,14 +203,14 @@ static BOOL daDr_Execute(dr_class* i_this) {
move(i_this);
i_this->mScale.x = i_this->mScale.y = i_this->mScale.z = l_HIO.mScale;
i_this->scale.x = i_this->scale.y = i_this->scale.z = l_HIO.mScale;
daDr_setMtx(i_this);
MtxP tongueJntMtx = i_this->mpMorf->getModel()->getAnmMtx(0x20); // j_dr_sita2 (tongue) joint
cMtx_copy(tongueJntMtx, *calc_mtx);
cXyz offset(0.0f, 0.0f, 0.0f);
MtxPosition(&offset, &i_this->mEyePos);
MtxPosition(&offset, &i_this->eyePos);
return TRUE;
}
@@ -284,7 +284,7 @@ actor_process_profile_definition g_profile_DR = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_DR,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(dr_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+1 -1
View File
@@ -89,7 +89,7 @@ actor_process_profile_definition g_profile_Dummy = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Dummy,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daDummy::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -127,7 +127,7 @@ int daFan_c::Create() {
}
mModel->calc();
mWindSePId = fopKyM_create(PROC_LEVEL_SE, JA_SE_OBJ_WIND_TAG, &mEyePos);
mWindSePId = fopKyM_create(PROC_LEVEL_SE, JA_SE_OBJ_WIND_TAG, &eyePos);
return TRUE;
}
@@ -173,7 +173,7 @@ s32 daFan_c::_create() {
/* 00000C28-00000D28 .text set_mtx__7daFan_cFv */
void daFan_c::set_mtx() {
mModel->setBaseScale(mScale);
mModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(current.angle);
mModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -244,9 +244,9 @@ int daFan_c::Execute(Mtx** mtxP) {
/* 00001088-0000118C .text Draw__7daFan_cFv */
BOOL daFan_c::Draw() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mModel, &mTevStr);
g_env_light.setLightTevColorType(mWindModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mModel, &tevStr);
g_env_light.setLightTevColorType(mWindModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mModel);
dComIfGd_setList();
@@ -295,7 +295,7 @@ actor_process_profile_definition g_profile_FAN = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_FAN,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daFan_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -69,7 +69,7 @@ s32 daFloor_c::_create() {
/* 00000354-000003D4 .text set_mtx__9daFloor_cFv */
void daFloor_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -107,8 +107,8 @@ void daFloor_c::set_effect() {
/* 00000640-000006E0 .text Draw__9daFloor_cFv */
BOOL daFloor_c::Draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -153,7 +153,7 @@ actor_process_profile_definition g_profile_FLOOR = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_FLOOR,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daFloor_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+9 -9
View File
@@ -67,8 +67,8 @@ BOOL daGhostship_c::_createHeap() {
ResTIMG* res2 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_arc_name, AYUSH_BTI_B_GSHIP_HO));
ResTIMG* res3 = static_cast<ResTIMG*>(dComIfG_getObjectRes(m_cloth_arc_name, CLOTH_BTI_CLOTHTOON));
mpCloth = dCloth_packetXlu_create(res1, res3, 5, 5, 700.0f, 350.0f, &mTevStr, 0);
mpCloth2 = dCloth_packetXlu_create(res2, res3, 6, 6, 1800.0f, 1000.0f, &mTevStr, 0);
mpCloth = dCloth_packetXlu_create(res1, res3, 5, 5, 700.0f, 350.0f, &tevStr, 0);
mpCloth2 = dCloth_packetXlu_create(res2, res3, 6, 6, 1800.0f, 1000.0f, &tevStr, 0);
if(!mpCloth || !mpCloth2) {
return false;
}
@@ -226,7 +226,7 @@ void daGhostship_c::createInit() {
shape_angle.x = mWave.mRotX;
shape_angle.z = mWave.mRotZ;
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(shape_angle.x, 0, shape_angle.z);
mDoMtx_stack_c::YrotM(shape_angle.y);
@@ -383,7 +383,7 @@ bool daGhostship_c::_execute() {
shape_angle.x = mWave.mRotX;
shape_angle.z = mWave.mRotZ;
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(shape_angle.x, 0, shape_angle.z);
mDoMtx_stack_c::YrotM(shape_angle.y);
@@ -425,8 +425,8 @@ bool daGhostship_c::_draw() {
}
if(!l_HIO.hideShip) {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
J3DModelData* modelData = mpModel->getModelData();
u8 i;
@@ -439,9 +439,9 @@ bool daGhostship_c::_draw() {
mDoExt_modelUpdateDL(mpModel);
mBtk.remove(modelData);
mTevStr.mColorC0.a = alpha;
tevStr.mColorC0.a = alpha;
mpCloth->cloth_draw();
mTevStr.mColorC0.a = alpha;
tevStr.mColorC0.a = alpha;
mpCloth2->cloth_draw();
}
@@ -466,7 +466,7 @@ actor_process_profile_definition g_profile_AYUSH = {
7,
fpcPi_CURRENT_e,
PROC_AYUSH,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daGhostship_c),
0,
0,
+1 -1
View File
@@ -208,7 +208,7 @@ actor_process_profile_definition g_profile_GRASS = {
7,
fpcPi_CURRENT_e,
PROC_GRASS,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(grass_class),
0,
0,
+1 -1
View File
@@ -102,7 +102,7 @@ actor_process_profile_definition g_profile_HITOBJ = {
7,
fpcPi_CURRENT_e,
PROC_HITOBJ,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(hitobj_class),
0,
0,
+6 -6
View File
@@ -148,8 +148,8 @@ void daHookshot_shape::draw() {
dKy_GxFog_set();
// Not sure why the size passed here is smaller than l_matDL's size in the symbol maps.
GXCallDisplayList(&l_matDL, sizeof(l_matDL) - 0x08);
GXSetTevColorS10(GX_TEVREG0, hookshot->mTevStr.mColorC0);
GXSetTevColor(GX_TEVREG1, hookshot->mTevStr.mColorK0);
GXSetTevColorS10(GX_TEVREG0, hookshot->tevStr.mColorC0);
GXSetTevColor(GX_TEVREG1, hookshot->tevStr.mColorK0);
GXSetCurrentMtx(0);
cXyz chain_pos = daPy_getPlayerLinkActorClass()->getHookshotRootPos();
@@ -176,7 +176,7 @@ void daHookshot_shape::draw() {
/* 800F12C8-800F1324 .text draw__12daHookshot_cFv */
BOOL daHookshot_c::draw() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
dComIfGd_getOpaListP1()->entryImm(&mShape, 0);
return TRUE;
}
@@ -370,14 +370,14 @@ s32 daHookshot_c::create() {
mShape.setUserArea(reinterpret_cast<u32>(this));
mLinChk.ClrSttsRoofOff();
procWait_init(FALSE);
mGravity = -5.0f;
gravity = -5.0f;
mStts.Init(10, 0xFF, this);
mCps.Set(l_at_cps_src);
mCps.SetStts(&mStts);
int roomNo = dComIfGp_roomControl_getStayNo();
mTevStr.mRoomNo = roomNo;
tevStr.mRoomNo = roomNo;
mStts.SetRoomId(roomNo);
current.roomNo = roomNo;
@@ -402,7 +402,7 @@ actor_process_profile_definition g_profile_HOOKSHOT = {
/* ListID */ 6,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_HOOKSHOT,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daHookshot_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+1 -1
View File
@@ -133,7 +133,7 @@ actor_process_profile_definition g_profile_Hot_Floor = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Hot_Floor,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daHot_Floor_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+9 -9
View File
@@ -232,7 +232,7 @@ void daIball_c::mode_wait_init() {
void daIball_c::mode_wait() {
if (mAcch.ChkGroundLanding()) {
mPrevSpeedY *= m_data.mBounceSpeedMult;
if (mPrevSpeedY > mGravity - 0.5f) {
if (mPrevSpeedY > gravity - 0.5f) {
speedF = 0.0f;
} else {
speed.set(0.0f, -mPrevSpeedY, 0.0f);
@@ -248,7 +248,7 @@ void daIball_c::mode_wait() {
/* 800F3F6C-800F3FE8 .text mode_water_init__9daIball_cFv */
void daIball_c::mode_water_init() {
dComIfGp_particle_setShipTail(0x33, &current.pos, NULL, &mScale, 0xFF, &mRippleCb);
dComIfGp_particle_setShipTail(0x33, &current.pos, NULL, &scale, 0xFF, &mRippleCb);
mRippleCb.setRate(0.0f);
mMode = MODE_WATER;
}
@@ -313,7 +313,7 @@ void daIball_c::damage() {
/* 800F4250-800F42E8 .text set_mtx__9daIball_cFv */
void daIball_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos.x, current.pos.y + m_data.mYOffset, current.pos.z);
mDoMtx_stack_c::XYZrotM(current.angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -331,7 +331,7 @@ void daIball_c::CreateInit() {
mAcch.OnSeaWaterHeight();
mbPlayedSe = false;
mGravity = m_data.mGravity;
gravity = m_data.mGravity;
mMode = MODE_WAIT;
current.pos.y -= m_data.mYOffset;
@@ -349,8 +349,8 @@ void daIball_c::CreateInit() {
/* 800F441C-800F4544 .text _daIball_draw__9daIball_cFv */
BOOL daIball_c::_daIball_draw() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
for (int i = 0; i < (int)ARRAY_SIZE(mBrkAnm); i++) {
mBrkAnm[i].entry(mpModel->getModelData());
@@ -372,8 +372,8 @@ BOOL daIball_c::_daIball_draw() {
/* 800F4544-800F4634 .text _daIball_execute__9daIball_cFv */
BOOL daIball_c::_daIball_execute() {
mEyePos = current.pos;
mEyePos.y = current.pos.y + 45.0f;
eyePos = current.pos;
eyePos.y = current.pos.y + 45.0f;
mTimer++;
@@ -526,7 +526,7 @@ actor_process_profile_definition g_profile_Iball = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Iball,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daIball_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+19 -19
View File
@@ -20,7 +20,7 @@ static BOOL createHeap_CB(fopAc_ac_c* i_this) {
/* 0000010C-000001C4 .text setMtx__9daIkari_cFv */
void daIkari_c::setMtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
@@ -58,13 +58,13 @@ void daIkari_c::getArg() {
}
if (mEnvType == 0xff) {
mScale.x = 1.0f;
mScale.y = 1.0f;
mScale.z = 1.0f;
scale.x = 1.0f;
scale.y = 1.0f;
scale.z = 1.0f;
} else if (mEnvType == 0x01) {
mScale.x = 1.27f;
mScale.y = 1.27f;
mScale.z = 1.27f;
scale.x = 1.27f;
scale.y = 1.27f;
scale.z = 1.27f;
}
}
@@ -91,18 +91,18 @@ bool daIkari_c::_execute() {
/* 000003CC-00000494 .text _draw__9daIkari_cFv */
bool daIkari_c::_draw() {
if (mEnvType == 1) {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
mTevStr.mColorC0.r = g_env_light.mActorC0.r;
mTevStr.mColorC0.g = g_env_light.mActorC0.g;
mTevStr.mColorC0.b = g_env_light.mActorC0.b;
mTevStr.mColorC0.a = g_env_light.mActorC0.a;
mTevStr.mColorK0.r = g_env_light.mActorK0.r;
mTevStr.mColorK0.g = g_env_light.mActorK0.g;
mTevStr.mColorK0.b = g_env_light.mActorK0.b;
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
tevStr.mColorC0.r = g_env_light.mActorC0.r;
tevStr.mColorC0.g = g_env_light.mActorC0.g;
tevStr.mColorC0.b = g_env_light.mActorC0.b;
tevStr.mColorC0.a = g_env_light.mActorC0.a;
tevStr.mColorK0.r = g_env_light.mActorK0.r;
tevStr.mColorK0.g = g_env_light.mActorK0.g;
tevStr.mColorK0.b = g_env_light.mActorK0.b;
} else {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
}
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mDoExt_modelUpdateDL(mpModel);
return true;
}
@@ -121,7 +121,7 @@ int daIkari_c::_create() {
} else {
setMtx();
f32 mScaleX = mScale.x;
f32 mScaleX = scale.x;
fopAcM_SetMtx(this, &mpModel->mBaseTransformMtx[0]);
fopAcM_setCullSizeBox(this,
@@ -178,7 +178,7 @@ actor_process_profile_definition g_profile_IKARI = {
7,
fpcPi_CURRENT_e,
PROC_IKARI,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daIkari_c),
0,
0,
+48 -48
View File
@@ -103,7 +103,7 @@ void daItem_c::set_mtx_base(J3DModel* pModel, cXyz pos, csXyz rot) {
return;
}
pModel->setBaseScale(mScale);
pModel->setBaseScale(scale);
mDoMtx_stack_c::transS(pos.x, pos.y + getYOffset(), pos.z);
@@ -148,9 +148,9 @@ void daItem_c::CreateInit() {
// f32 radius = dItem_data::getR(m_itemNo);
f32 height = dItem_data::item_info[m_itemNo].mCollisionH;
f32 radius = dItem_data::item_info[m_itemNo].mCollisionR;
if (mScale.x > 1.0f) {
height *= mScale.x;
radius *= mScale.x;
if (scale.x > 1.0f) {
height *= scale.x;
radius *= scale.x;
}
mCyl.SetR(radius);
mCyl.SetH(height);
@@ -259,9 +259,9 @@ BOOL daItem_c::_daItem_execute() {
timeCount();
mEyePos = current.pos;
mEyePos.y += dItem_data::getH(m_itemNo)/2.0f;
mAttentionInfo.mPosition = current.pos;
eyePos = current.pos;
eyePos.y += dItem_data::getH(m_itemNo)/2.0f;
attention_info.position = current.pos;
switch (mItemStatus) {
case STATUS_BRING_NEZUMI:
@@ -348,13 +348,13 @@ void daItem_c::execInitNormalDirection() {
current.pos = headPos;
current.angle.z = 0;
current.angle.x = 0;
mScale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
scale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
mExtraZRot = 0;
field_0x65c = getData()->field_0x40;
f32 speedY = getData()->mPickedUpInitialSpeedY;
speed.set(0.0f, speedY, 0.0f);
mGravity = getData()->mPickedUpGravity;
gravity = getData()->mPickedUpGravity;
show();
@@ -400,7 +400,7 @@ void daItem_c::execInitGetDemoDirection() {
if (player == link) {
fopAcM_orderItemEvent(this);
mEvtInfo.onCondition(dEvtCnd_CANGETITEM_e);
eventInfo.onCondition(dEvtCnd_CANGETITEM_e);
mDemoItemBsPcId = fopAcM_createItemForTrBoxDemo(&current.pos, m_itemNo, -1, current.roomNo);
mItemStatus = STATUS_WAIT_GET_DEMO;
}
@@ -410,14 +410,14 @@ void daItem_c::execInitGetDemoDirection() {
void daItem_c::execWaitGetDemoDirection() {
hide();
if (mEvtInfo.checkCommandItem()) {
if (eventInfo.checkCommandItem()) {
mItemStatus = STATUS_MAIN_GET_DEMO;
if (mDemoItemBsPcId != fpcM_ERROR_PROCESS_ID_e) {
dComIfGp_event_setItemPartnerId(mDemoItemBsPcId);
}
} else {
fopAcM_orderItemEvent(this);
mEvtInfo.onCondition(dEvtCnd_CANGETITEM_e);
eventInfo.onCondition(dEvtCnd_CANGETITEM_e);
}
}
@@ -451,9 +451,9 @@ void daItem_c::execWaitMain() {
f32 scaleStepX = mScaleTarget.x / getData()->mScaleAnimSpeed;
f32 scaleStepY = mScaleTarget.y / getData()->mScaleAnimSpeed;
f32 scaleStepZ = mScaleTarget.z / getData()->mScaleAnimSpeed;
cLib_chaseF(&mScale.x, mScaleTarget.x, scaleStepX);
cLib_chaseF(&mScale.y, mScaleTarget.y, scaleStepY);
cLib_chaseF(&mScale.z, mScaleTarget.z, scaleStepZ);
cLib_chaseF(&scale.x, mScaleTarget.x, scaleStepX);
cLib_chaseF(&scale.y, mScaleTarget.y, scaleStepY);
cLib_chaseF(&scale.z, mScaleTarget.z, scaleStepZ);
}
if (checkItemDisappear() && mDisappearTimer == 0) {
@@ -494,17 +494,17 @@ void daItem_c::execWaitMainFromBoss() {
/* 800F5FC0-800F60C0 .text scaleAnimFromBossItem__8daItem_cFv */
void daItem_c::scaleAnimFromBossItem() {
if (field_0x638 < 30) {
mScale.x = cM_ssin(field_0x634*0x2000 - 0x4000)*2.0f / field_0x634+1.0f;
if (mScale.x < 0.0f) {
mScale.x = 0.0f;
scale.x = cM_ssin(field_0x634*0x2000 - 0x4000)*2.0f / field_0x634+1.0f;
if (scale.x < 0.0f) {
scale.x = 0.0f;
}
mScale.y = mScale.x;
mScale.z = mScale.x;
scale.y = scale.x;
scale.z = scale.x;
} else {
if (field_0x638 == 30) {
fopAcM_seStart(this, JA_SE_CM_BOSS_HEART_APPEAR, 0);
}
mScale.setall(1.0f);
scale.setall(1.0f);
}
}
@@ -518,21 +518,21 @@ BOOL daItem_c::_daItem_draw() {
/* 800F6110-800F61C8 .text setTevStr__8daItem_cFv */
void daItem_c::setTevStr() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
mTevStr.mColorC0.r = 0x96;
mTevStr.mColorC0.g = 0x96;
mTevStr.mColorC0.b = 0x96;
mTevStr.mColorK0.r = 0xFF;
mTevStr.mColorK0.g = 0xFF;
mTevStr.mColorK0.b = 0xFF;
g_env_light.setLightTevColorType(mpModel, &mTevStr);
tevStr.mColorC0.r = 0x96;
tevStr.mColorC0.g = 0x96;
tevStr.mColorC0.b = 0x96;
tevStr.mColorK0.r = 0xFF;
tevStr.mColorK0.g = 0xFF;
tevStr.mColorK0.b = 0xFF;
g_env_light.setLightTevColorType(mpModel, &tevStr);
for (int i = 0; i < 2; i++) {
if (!mpModelArrow[i]) {
continue;
}
g_env_light.setLightTevColorType(mpModelArrow[i], &mTevStr);
g_env_light.setLightTevColorType(mpModelArrow[i], &tevStr);
}
}
@@ -832,7 +832,7 @@ BOOL daItem_c::itemActionForRupee() {
if (mAcch.ChkGroundLanding()) {
f32 temp2 = field_0x650 * getData()->field_0x04;
if (temp2 > mGravity - 0.5f) {
if (temp2 > gravity - 0.5f) {
speedF = 0.0f;
} else {
speed.set(0.0f, -temp2, 0.0f);
@@ -874,7 +874,7 @@ BOOL daItem_c::itemActionForRupee() {
BOOL daItem_c::itemActionForHeart() {
f32 origSpeedY = speed.y;
if (origSpeedY < 0.0f) {
mGravity = 0.0f;
gravity = 0.0f;
speed.set(0.0f, getData()->field_0x20, 0.0f);
}
@@ -902,7 +902,7 @@ BOOL daItem_c::itemActionForKey() {
if (mAcch.ChkGroundLanding()) {
f32 temp2 = field_0x650 * getData()->field_0x04;
if (temp2 > mGravity - 0.5f) {
if (temp2 > gravity - 0.5f) {
speedF = 0.0f;
current.angle.x = 0x4000;
mTargetAngleX = current.angle.x;
@@ -946,7 +946,7 @@ BOOL daItem_c::itemActionForEmono() {
if (mAcch.ChkGroundLanding()) {
f32 temp2 = field_0x650 * getData()->field_0x04;
if (temp2 > mGravity - 0.5f) {
if (temp2 > gravity - 0.5f) {
speedF = 0.0f;
} else {
speed.set(0.0f, -temp2, 0.0f);
@@ -975,7 +975,7 @@ BOOL daItem_c::itemActionForSword() {
bool isQuake = dComIfGp_getDetect().chk_quake(&current.pos);
if (isQuake && !checkFlag(FLAG_QUAKE) && mAcch.ChkGroundHit()) {
speed.set(0.0f, 21.0f, 0.0f);
mGravity = -3.5f;
gravity = -3.5f;
}
if (mAcch.ChkGroundLanding()) {
@@ -1048,7 +1048,7 @@ BOOL daItem_c::itemActionForArrow() {
if (mAcch.ChkGroundLanding()) {
f32 temp_f3 = field_0x650 * getData()->field_0x04;
if (temp_f3 > mGravity - 0.5f) {
if (temp_f3 > gravity - 0.5f) {
speedF = 0.0f;
} else {
speed.set(0.0f, -temp_f3, 0.0f);
@@ -1206,7 +1206,7 @@ BOOL daItem_c::timeCount() {
/* 800F7F0C-800F7F50 .text mode_wait_init__8daItem_cFv */
void daItem_c::mode_wait_init() {
mMode = 0;
mGravity = getData()->mFieldItemGravity;
gravity = getData()->mFieldItemGravity;
mPtclRippleCb.end();
}
@@ -1233,12 +1233,12 @@ void daItem_c::mode_water_init() {
mExtraZRot = 0;
field_0x654 = 0;
clrFlag(FLAG_UNK04);
mScale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
scale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
cXyz scale;
f32 temp = dItem_data::getShadowSize(m_itemNo);
f32 temp3 = temp / dItem_data::getShadowSize(dItem_GREEN_RUPEE_e);
temp3 *= mScale.x;
temp3 *= scale.x;
scale.setall(temp3);
dComIfGp_particle_setShipTail(0x33, &current.pos, NULL, &scale, 0xFF, &mPtclRippleCb);
@@ -1335,7 +1335,7 @@ void daItem_c::mode_water() {
/* 800F8528-800F8950 .text initAction__8daItem_cFv */
BOOL daItem_c::initAction() {
if (checkFlag(FLAG_UNK02)) {
mScale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
scale.set(mScaleTarget.x, mScaleTarget.y, mScaleTarget.z);
switch (mAction) {
case 4:
@@ -1347,20 +1347,20 @@ BOOL daItem_c::initAction() {
case 5:
speed.setall(0.0f);
speedF = 0.0f;
mScale.setall(0.0f);
scale.setall(0.0f);
mItemStatus = STATUS_WAIT_BOSS1;
fopAcM_OnStatus(this, fopAcStts_UNK4000_e);
field_0x654 = 0x4A8;
break;
case 0xC:
mScale.setall(1.0f);
scale.setall(1.0f);
mItemStatus = STATUS_WAIT_BOSS2;
fopAcM_OnStatus(this, fopAcStts_UNK4000_e);
field_0x654 = 0x4A8;
break;
}
mGravity = getData()->mFieldItemGravity;
gravity = getData()->mFieldItemGravity;
clrFlag(FLAG_UNK04);
mMode = 0;
@@ -1401,8 +1401,8 @@ BOOL daItem_c::initAction() {
speedF = getData()->mVelocityScale;
break;
case 0xA:
mGravity = getData()->mFieldItemGravity;
mScale.setall(0.0f);
gravity = getData()->mFieldItemGravity;
scale.setall(0.0f);
mMode = 0;
break;
case 0xB:
@@ -1425,12 +1425,12 @@ BOOL daItem_c::initAction() {
mExtraZRot = cM_rndFX(getData()->mHeartMaxRandomZRot);
}
mGravity = getData()->mFieldItemGravity;
gravity = getData()->mFieldItemGravity;
speed.set(0.0f, temp_f31, 0.0f);
// This line setting speedF to itself gets optimized out and produces no code, but affects regalloc.
// It's not known what the original code that got optimized out here was, it could be speedF or something else.
speedF = speedF;
mScale.setall(0.0f);
scale.setall(0.0f);
mMode = 0;
@@ -1512,7 +1512,7 @@ actor_process_profile_definition g_profile_ITEM = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_ITEM,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daItem_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -166,26 +166,26 @@ void daItemBase_c::settingBeforeDraw() {
}
if (m_itemNo == BOMB_BAG || m_itemNo == dItem_SKULL_HAMMER_e || m_itemNo == dItem_SMALL_KEY_e) {
dDlst_texSpecmapST(&mEyePos, &mTevStr, mpModel->getModelData(), 1.0f);
dDlst_texSpecmapST(&eyePos, &tevStr, mpModel->getModelData(), 1.0f);
}
}
/* 800F9244-800F92DC .text setTevStr__12daItemBase_cFv */
void daItemBase_c::setTevStr() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
for (int i = 0; i < 2; i++) {
if (!mpModelArrow[i]) {
continue;
}
g_env_light.setLightTevColorType(mpModelArrow[i], &mTevStr);
g_env_light.setLightTevColorType(mpModelArrow[i], &tevStr);
}
}
/* 800F92DC-800F93A8 .text setShadow__12daItemBase_cFv */
void daItemBase_c::setShadow() {
f32 shadowSize = mScale.x * dItem_data::getShadowSize(m_itemNo);
f32 shadowSize = scale.x * dItem_data::getShadowSize(m_itemNo);
if (!dItem_data::chkFlag(m_itemNo, 0x10)) {
dComIfGd_setSimpleShadow2(
&current.pos, mAcch.GetGroundH(), shadowSize, mAcch.m_gnd,
@@ -194,7 +194,7 @@ void daItemBase_c::setShadow() {
} else {
mShadowId = dComIfGd_setShadow(
mShadowId, 1, mpModel, &current.pos, 80.0f, shadowSize,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &mTevStr,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &tevStr,
0, 1.0f, dDlst_shadowControl_c::getSimpleTex()
);
}
+5 -5
View File
@@ -48,10 +48,10 @@ s32 daKaji_c::_create() {
if (fopAcM_entrySolidHeap(this, CheckCreateHeap, 0x660)) {
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
MTXCopy(mDoMtx_stack_c::get(), mMtx);
l_p_ship = (daObjPirateship::Act_c*)fopAcM_SearchByID(mParentPcId);
l_p_ship = (daObjPirateship::Act_c*)fopAcM_SearchByID(parentActorID);
} else {
return cPhs_ERROR_e;
}
@@ -92,8 +92,8 @@ bool daKaji_c::_draw() {
if (!l_p_ship->m2CC) {
return true;
}
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpMorf->getModel(), &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpMorf->getModel(), &tevStr);
mpMorf->update();
return true;
}
@@ -136,7 +136,7 @@ actor_process_profile_definition g_profile_Kaji = {
3,
fpcLy_CURRENT_e,
PROC_Kaji,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daKaji_c),
0,
0,
+4 -4
View File
@@ -23,8 +23,8 @@ void kotori_draw(kt_class* i_this) {
cMtx_YrotM(*calc_mtx, i_this->current.angle.y);
cMtx_XrotM(*calc_mtx, i_this->mAngleRoll);
cMtx_ZrotM(*calc_mtx, i_this->current.angle.z);
f32 scale = kt_scale * 0.2f;
MtxScale(scale, scale, scale, true);
f32 scaleMag = kt_scale * 0.2f;
MtxScale(scaleMag, scaleMag, scaleMag, true);
J3DModel* model = i_this->mpModel;
model->setBaseTRMtx(*calc_mtx);
mDoExt_modelUpdate(model);
@@ -330,8 +330,8 @@ static s32 daKt_Create(fopAc_ac_c* i_ac) {
}
}
i_this->mpModel->setBaseScale(i_this->mScale);
i_this->mpModelWing->setBaseScale(i_this->mScale);
i_this->mpModel->setBaseScale(i_this->scale);
i_this->mpModelWing->setBaseScale(i_this->scale);
i_this->current.pos.y += 2500.0f;
i_this->mTargetPosHome = i_this->mHomePos = i_this->current.pos;
i_this->mTimer[2] = g_regHIO.mChild[0].mShortRegs[5] + 500;
+9 -9
View File
@@ -50,7 +50,7 @@ void wether_tag_move(kytag00_class* i_this) {
if (dist_xz < i_this->mOuterRadius &&
(chk_pos.y >= (i_this->current.pos.y - fade_y) &&
chk_pos.y < (i_this->current.pos.y + i_this->mScale.y * 5000.0f + fade_y)) &&
chk_pos.y < (i_this->current.pos.y + i_this->scale.y * 5000.0f + fade_y)) &&
i_this->mTarget > 0.0f)
{
f32 blend = 1.0f;
@@ -74,7 +74,7 @@ void wether_tag_move(kytag00_class* i_this) {
}
} else {
if (fade_y != 0.0f) {
f9 = (chk_pos.y - (i_this->current.pos.y + i_this->mScale.y * 5000.0f)) / fade_y;
f9 = (chk_pos.y - (i_this->current.pos.y + i_this->scale.y * 5000.0f)) / fade_y;
if (f9 < 0.0f) {
f9 = 0.0f;
}
@@ -184,7 +184,7 @@ void wether_tag_efect_move(kytag00_class* i_this) {
if (dist_xz < i_this->mOuterRadius &&
(chk_pos.y >= (i_this->current.pos.y - fade_y) &&
chk_pos.y < (i_this->current.pos.y + i_this->mScale.y * 5000.0f + fade_y)) &&
chk_pos.y < (i_this->current.pos.y + i_this->scale.y * 5000.0f + fade_y)) &&
i_this->mTarget > 0.0f)
{
f32 blend = 1.0f;
@@ -211,7 +211,7 @@ void wether_tag_efect_move(kytag00_class* i_this) {
}
} else {
if (fade_y != 0.0f) {
f9 = (chk_pos.y - (i_this->current.pos.y + i_this->mScale.y * 5000.0f)) / fade_y;
f9 = (chk_pos.y - (i_this->current.pos.y + i_this->scale.y * 5000.0f)) / fade_y;
if (f9 < 0.0f) {
f9 = 0.0f;
}
@@ -387,11 +387,11 @@ static s32 daKytag00_Create(fopAc_ac_c* i_ac) {
i_this->mInnerFadeY = 10;
if (i_this->mMode == 0) {
i_this->mInnerRadius = i_this->mScale.x * 5000.0f;
i_this->mOuterRadius = i_this->mScale.x * 5000.0f + i_this->mThickness * 100.0f;
i_this->mInnerRadius = i_this->scale.x * 5000.0f;
i_this->mOuterRadius = i_this->scale.x * 5000.0f + i_this->mThickness * 100.0f;
} else {
i_this->mInnerRadius = i_this->mScale.x * 500.0f;
i_this->mOuterRadius = i_this->mScale.x * 500.0f + i_this->mThickness * 10.0f;
i_this->mInnerRadius = i_this->scale.x * 500.0f;
i_this->mOuterRadius = i_this->scale.x * 500.0f + i_this->mThickness * 10.0f;
}
i_this->mbEfSet = false;
@@ -414,7 +414,7 @@ actor_process_profile_definition g_profile_KYTAG00 = {
7,
fpcPi_CURRENT_e,
PROC_KYTAG00,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(kytag00_class),
0,
0,
+3 -3
View File
@@ -77,8 +77,8 @@ static s32 daKytag01_Create(fopAc_ac_c* i_ac) {
fopAcM_SetupActor(i_this, kytag01_class);
i_this->mWaveInfo.mPos = i_this->current.pos;
i_this->mWaveInfo.mInnerRadius = i_this->mScale.x * 5000.0f;
i_this->mWaveInfo.mOuterRadius = i_this->mScale.z * 5000.0f;
i_this->mWaveInfo.mInnerRadius = i_this->scale.x * 5000.0f;
i_this->mWaveInfo.mOuterRadius = i_this->scale.z * 5000.0f;
f32 defaultOuter = i_this->mWaveInfo.mInnerRadius + 500.0f;
if (defaultOuter >= i_this->mWaveInfo.mOuterRadius)
@@ -108,7 +108,7 @@ actor_process_profile_definition g_profile_KYTAG01 = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_KYTAG01,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(kytag01_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+5 -5
View File
@@ -50,11 +50,11 @@ static int daKytag04_Create(fopAc_ac_c* i_this) {
fopAcM_SetupActor(i_this, kytag04_class);
kytag04_class* a_this = (kytag04_class*)i_this;
a_this->mState = 0;
a_this->mOffColPat = a_this->mBase.mParameters;
a_this->mOnColPat = a_this->mBase.mParameters >> 8;
a_this->mOffColPat = a_this->base.mParameters;
a_this->mOnColPat = a_this->base.mParameters >> 8;
a_this->mSwitchNo = a_this->current.angle.x;
a_this->mScaleX = a_this->mScale.x * 100.0f;
a_this->mScaleY = a_this->mScale.y * 100.0f;
a_this->mScaleX = a_this->scale.x * 100.0f;
a_this->mScaleY = a_this->scale.y * 100.0f;
a_this->mTimer = 0;
a_this->mTimerThreshold = 5;
return cPhs_COMPLEATE_e;
@@ -73,7 +73,7 @@ actor_process_profile_definition g_profile_KYTAG04 = {
7,
fpcLy_CURRENT_e,
PROC_KYTAG04,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(kytag04_class),
0,
0,
+2 -2
View File
@@ -128,7 +128,7 @@ static int daKytag05_Create(fopAc_ac_c* i_this) {
}
a_this->mIndex = 0;
a_this->mTimer = 0;
a_this->mUnknownParam = i_this->mBase.mParameters & 0xff;
a_this->mUnknownParam = i_this->base.mParameters & 0xff;
dKyw_evt_wind_set_go();
dKyw_evt_wind_set(0, 0);
g_env_light.mSnowCount = 200;
@@ -155,7 +155,7 @@ actor_process_profile_definition g_profile_KYTAG05 = {
7,
fpcLy_CURRENT_e,
PROC_KYTAG05,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(kytag05_class),
0,
0,
+1 -1
View File
@@ -87,7 +87,7 @@ actor_process_profile_definition g_profile_KYTAG06 = {
7,
fpcLy_CURRENT_e,
PROC_KYTAG06,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(kytag06_class),
0,
0,
+3 -3
View File
@@ -45,9 +45,9 @@ static const float partMaxFlickerPerTick = 0.02f;
/* 000000EC-00000158 .text daLamp_Draw__FP10lamp_class */
static BOOL daLamp_Draw(lamp_class* i_this) {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &i_this->current.pos, &i_this->mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &i_this->current.pos, &i_this->tevStr);
J3DModel* pModel = i_this->mModel;
g_env_light.setLightTevColorType(pModel, &i_this->mTevStr);
g_env_light.setLightTevColorType(pModel, &i_this->tevStr);
mDoExt_modelUpdateDL(pModel);
return TRUE;
}
@@ -219,7 +219,7 @@ actor_process_profile_definition g_profile_LAMP = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_LAMP,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(lamp_class),
/* SizeOther */ 0,
/* Parameters */ 0,
+2 -2
View File
@@ -25,7 +25,7 @@ s32 daMagma_c::create() {
if (dComIfGp_createMagma()) {
dComIfGp_getMagma()->newFloor(
current.pos,
mScale,
scale,
current.roomNo,
getPathNo()
);
@@ -63,7 +63,7 @@ actor_process_profile_definition g_profile_MAGMA = {
7,
fpcPi_CURRENT_e,
PROC_MAGMA,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daMagma_c),
0,
0,
+15 -15
View File
@@ -232,7 +232,7 @@ BOOL daMbdoor_c::CreateInit() {
JUT_ASSERT(334, 0);
}
field_0x2ac = true;
mTevStr.mRoomNo = current.roomNo;
tevStr.mRoomNo = current.roomNo;
if (type == 2) {
setAction(1);
@@ -250,9 +250,9 @@ BOOL daMbdoor_c::CreateInit() {
}
field_0x2bc = 30;
mAttentionInfo.mPosition.y += 250.0f;
mEyePos.y += 250.0f;
mAttentionInfo.mFlags = fopAc_Attn_ACTION_DOOR_e;
attention_info.position.y += 250.0f;
eyePos.y += 250.0f;
attention_info.flags = fopAc_Attn_ACTION_DOOR_e;
calcMtx();
mpBgW->Move();
fopAcM_SetStatusMap(this, 0xB);
@@ -467,7 +467,7 @@ BOOL daMbdoor_actionLockWait(daMbdoor_c* i_this) {
/* 0000121C-000012AC .text daMbdoor_actionLockOff__FP10daMbdoor_c */
BOOL daMbdoor_actionLockOff(daMbdoor_c* i_this) {
if (i_this->mEvtInfo.checkCommandDemoAccrpt()) {
if (i_this->eventInfo.checkCommandDemoAccrpt()) {
i_this->mEvtStaffId = dComIfGp_evmng_getMyStaffId("MBDOOR");
i_this->demoProc();
i_this->setAction(3);
@@ -490,7 +490,7 @@ BOOL daMbdoor_actionLockDemo(daMbdoor_c* i_this) {
/* 00001324-000013E4 .text daMbdoor_actionCloseWait__FP10daMbdoor_c */
BOOL daMbdoor_actionCloseWait(daMbdoor_c* i_this) {
if (i_this->mEvtInfo.checkCommandDoor()) {
if (i_this->eventInfo.checkCommandDoor()) {
i_this->mEvtStaffId = dComIfGp_evmng_getMyStaffId("MBDOOR");
i_this->demoProc();
i_this->setAction(5);
@@ -498,8 +498,8 @@ BOOL daMbdoor_actionCloseWait(daMbdoor_c* i_this) {
i_this->field_0x2ac = false;
} else {
if (i_this->checkArea()) {
i_this->mEvtInfo.setEventName("MBDOOR_OPEN");
i_this->mEvtInfo.onCondition(dEvtCnd_CANDOOR_e);
i_this->eventInfo.setEventName("MBDOOR_OPEN");
i_this->eventInfo.onCondition(dEvtCnd_CANDOOR_e);
}
}
return TRUE;
@@ -512,18 +512,18 @@ BOOL daMbdoor_actionOpen(daMbdoor_c* i_this) {
}
BOOL daMbdoor_c::draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpFuModel, &mTevStr);
g_env_light.setLightTevColorType(mpFuModel, &tevStr);
mDoExt_modelUpdateDL(mpFuModel);
g_env_light.setLightTevColorType(mpLModel, &mTevStr);
g_env_light.setLightTevColorType(mpLModel, &tevStr);
mDoExt_modelUpdateDL(mpLModel);
g_env_light.setLightTevColorType(mpRModel, &mTevStr);
g_env_light.setLightTevColorType(mpRModel, &tevStr);
mDoExt_modelUpdateDL(mpRModel);
g_env_light.setLightTevColorType(mpToModel, &mTevStr);
g_env_light.setLightTevColorType(mpToModel, &tevStr);
mDoExt_modelUpdateDL(mpToModel);
return TRUE;
@@ -544,7 +544,7 @@ BOOL daMbdoor_c::execute() {
&daMbdoor_actionOpen,
};
dDemo_actor_c* demoActor = dComIfGp_demo_getActor(mDemoActorId);
dDemo_actor_c* demoActor = dComIfGp_demo_getActor(demoActorID);
if (demoActor) {
field_0x2ad = 0;
if (demoActor->checkEnable(0x8)) {
@@ -596,7 +596,7 @@ actor_process_profile_definition g_profile_MBDOOR = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_MBDOOR,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daMbdoor_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+1 -1
View File
@@ -186,7 +186,7 @@ actor_process_profile_definition g_profile_Mmusic = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Mmusic,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daMmusic::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+5 -5
View File
@@ -88,7 +88,7 @@ BOOL daMozo_c::CreateHeap() {
/* 00000A24-00000AAC .text set_mtx__8daMozo_cFv */
void daMozo_c::set_mtx() {
J3DModel* mdl = mAnimMorf->getModel();
mdl->setBaseScale(mScale);
mdl->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
@@ -156,7 +156,7 @@ s32 daMozo_c::CreateInit() {
/* Nonmatching */
J3DModelData* mdlData = mAnimMorf->getModel()->getModelData();
int param = mBase.mParameters * 0xFF;
int param = base.mParameters * 0xFF;
if (param == 0xFF) {
param = 0;
}
@@ -242,8 +242,8 @@ bool daMozo_c::_execute() {
bool daMozo_c::_draw() {
/* Nonmatching */
J3DModelData* mdlData = mAnimMorf->getModel()->getModelData();
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mAnimMorf->getModel(), &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mAnimMorf->getModel(), &tevStr);
mBrkAnm.entry(mdlData);
mBtkAnm.entry(mdlData);
@@ -290,7 +290,7 @@ actor_process_profile_definition g_profile_MOZO = {
7,
fpcPi_CURRENT_e,
PROC_MOZO,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daMozo_c),
0,
0,
+22 -22
View File
@@ -83,8 +83,8 @@ daNh_c::~daNh_c() {
/* 800F9874-800F9980 .text setBaseMtx__6daNh_cFv */
void daNh_c::setBaseMtx() {
J3DModel* model = mpModel;
mScale.setall(l_HIO.prm.mModelScale);
model->setBaseScale(mScale);
scale.setall(l_HIO.prm.mModelScale);
model->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
model->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -149,7 +149,7 @@ s32 daNh_c::create() {
BOOL daNh_c::init() {
mType = fopAcM_GetParam(this) & 0xFF;
speed.y = 1.0f;
mGravity = l_HIO.prm.mGravity;
gravity = l_HIO.prm.mGravity;
mGlowAlpha = l_HIO.prm.mDefaultGlowAlpha;
mPlayerDist = 0.0f;
mAlpha = 0xFF;
@@ -163,7 +163,7 @@ BOOL daNh_c::init() {
mCyl.SetStts(&mStts);
setBaseMtx();
mEyePos = mAttentionInfo.mPosition = current.pos;
eyePos = attention_info.position = current.pos;
return TRUE;
}
@@ -198,7 +198,7 @@ BOOL daNh_c::setAction(ActionFunc actionFunc, void* arg) {
/* 800F9EB8-800F9F3C .text checkBinCatch__6daNh_cFv */
BOOL daNh_c::checkBinCatch() {
if (mEvtInfo.checkCommandCatch()) {
if (eventInfo.checkCommandCatch()) {
fopAcM_delete(this);
return TRUE;
}
@@ -209,7 +209,7 @@ BOOL daNh_c::checkBinCatch() {
l_HIO.prm.field_0x10, l_HIO.prm.field_0x3c,
1
);
mEvtInfo.onCondition(dEvtCnd_CANCATCH_e);
eventInfo.onCondition(dEvtCnd_CANCATCH_e);
return FALSE;
}
@@ -275,8 +275,8 @@ void daNh_c::BGCheck() {
f32 groundY = dComIfG_Bgsp()->GroundCross(&gndChk);
if (groundY != -1000000000.0f) {
mGroundY = groundY;
mTevStr.mRoomNo = current.roomNo = dComIfG_Bgsp()->GetRoomId(gndChk);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(gndChk);
tevStr.mRoomNo = current.roomNo = dComIfG_Bgsp()->GetRoomId(gndChk);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(gndChk);
}
}
@@ -284,9 +284,9 @@ void daNh_c::BGCheck() {
void daNh_c::airMove() {
f32 idealY = mGroundY + l_HIO.prm.mHeightAboveGround;
if (current.pos.y < idealY - 10.0f) {
mMaxFallSpeed = l_HIO.prm.mAscentSpeed;
maxFallSpeed = l_HIO.prm.mAscentSpeed;
} else if (current.pos.y > idealY + 10.0f) {
mMaxFallSpeed = l_HIO.prm.mDescentSpeed;
maxFallSpeed = l_HIO.prm.mDescentSpeed;
}
}
@@ -383,15 +383,15 @@ BOOL daNh_c::execute() {
mGlowAlpha = l_HIO.prm.mDefaultGlowAlpha;
if (mMaxFallSpeed < speed.y) {
speed.y -= mGravity;
if (speed.y < mMaxFallSpeed) {
speed.y = mMaxFallSpeed;
if (maxFallSpeed < speed.y) {
speed.y -= gravity;
if (speed.y < maxFallSpeed) {
speed.y = maxFallSpeed;
}
} else if (mMaxFallSpeed > speed.y) {
speed.y += mGravity;
if (speed.y > mMaxFallSpeed) {
speed.y = mMaxFallSpeed;
} else if (maxFallSpeed > speed.y) {
speed.y += gravity;
if (speed.y > maxFallSpeed) {
speed.y = maxFallSpeed;
}
}
@@ -416,7 +416,7 @@ BOOL daNh_c::execute() {
}
setBaseMtx();
mEyePos = mAttentionInfo.mPosition = current.pos;
eyePos = attention_info.position = current.pos;
return TRUE;
}
@@ -442,8 +442,8 @@ void daNh_c::playBrkAnm() {
/* 800FACE8-800FAE1C .text draw__6daNh_cFv */
BOOL daNh_c::draw() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
J3DModelData* modelData = mpModel->getModelData();
@@ -511,7 +511,7 @@ actor_process_profile_definition g_profile_NH = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_NH,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daNh_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+19 -19
View File
@@ -187,7 +187,7 @@ static BOOL nodeCallBack(J3DNode* node, int param_1) {
mDoMtx_stack_c::XrotM(-i_this->m_jnt.getHead_x());
mDoMtx_stack_c::YrotM(-i_this->current.angle.y);
mDoMtx_stack_c::concat(sp14);
mDoMtx_stack_c::multVec(&a_eye_pos_offst, &i_this->mEyePos);
mDoMtx_stack_c::multVec(&a_eye_pos_offst, &i_this->eyePos);
} else if (jointNo == i_this->m_jnt.getBackboneJntNum()) {
int backboneY = i_this->m_jnt.getBackbone_y();
mDoMtx_stack_c::XrotM(backboneY);
@@ -292,7 +292,7 @@ bool daNpc_Btsw2_c::chkAttention(cXyz pos, s16 facingAngleY) {
/* 000007D0-00000820 .text eventOrder__13daNpc_Btsw2_cFv */
void daNpc_Btsw2_c::eventOrder() {
if (m746 == 1 || m746 == 2) {
mEvtInfo.onCondition(dEvtCmd_INTALK_e);
eventInfo.onCondition(dEvtCmd_INTALK_e);
if (m746 == 1) {
fopAcM_orderSpeakEvent(this);
}
@@ -301,10 +301,10 @@ void daNpc_Btsw2_c::eventOrder() {
/* 00000820-00000860 .text checkOrder__13daNpc_Btsw2_cFv */
void daNpc_Btsw2_c::checkOrder() {
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
return;
}
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
if (m746 == 1 || m746 == 2) {
m746 = 0;
m71E = true;
@@ -368,7 +368,7 @@ u16 daNpc_Btsw2_c::next_msgStatus(u32*) {
/* 000009F4-00000A20 .text setAttention__13daNpc_Btsw2_cFv */
void daNpc_Btsw2_c::setAttention() {
mAttentionInfo.mPosition.set(m704.x, m704.y + l_HIO.mNpc.mAttnYOffset, m704.z);
attention_info.position.set(m704.x, m704.y + l_HIO.mNpc.mAttnYOffset, m704.z);
}
/* 00000A20-00000B94 .text lookBack__13daNpc_Btsw2_cFv */
@@ -396,7 +396,7 @@ void daNpc_Btsw2_c::lookBack() {
sp38 = dNpc_playerEyePos(l_HIO.mNpc.m04);
r31 = &sp38;
sp2c = current.pos;
sp2c.y = mEyePos.y;
sp2c.y = eyePos.y;
}
break;
}
@@ -459,8 +459,8 @@ BOOL daNpc_Btsw2_c::CreateHeap() {
/* 00000EFC-000010F8 .text CreateInit__13daNpc_Btsw2_cFv */
BOOL daNpc_Btsw2_c::CreateInit() {
m714 = current.angle;
mAttentionInfo.mFlags = fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e;
mGravity = -30.0f;
attention_info.flags = fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e;
gravity = -30.0f;
setAction(&daNpc_Btsw2_c::wait_action, NULL);
m704 = current.pos;
mStts.Init(0xFF, 0xFF, this);
@@ -477,8 +477,8 @@ BOOL daNpc_Btsw2_c::CreateInit() {
m736 = 0;
m740 = 0;
mEventCut.setActorInfo2("Btsw2", this);
mAttentionInfo.mDistances[1] = 0xAB;
mAttentionInfo.mDistances[3] = 0xAB;
attention_info.distances[1] = 0xAB;
attention_info.distances[3] = 0xAB;
return TRUE;
}
@@ -634,15 +634,15 @@ BOOL daNpc_Btsw2_c::_execute() {
l_HIO.mNpc.mMaxTurnStep
);
playTexPatternAnm();
mpMcaMorf->play(&mEyePos, 0, 0);
mpMcaMorf->play(&eyePos, 0, 0);
checkOrder();
if (!mEventCut.cutProc()) {
(this->*mCurrActionFunc)(NULL);
}
eventOrder();
mObjAcch.CrrPos(*dComIfG_Bgsp());
mTevStr.mRoomNo = dComIfG_Bgsp()->GetRoomId(mObjAcch.m_gnd);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mObjAcch.m_gnd);
tevStr.mRoomNo = dComIfG_Bgsp()->GetRoomId(mObjAcch.m_gnd);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mObjAcch.m_gnd);
J3DModel* model = mpMcaMorf->getModel();
mDoMtx_stack_c::transS(current.pos);
@@ -659,10 +659,10 @@ BOOL daNpc_Btsw2_c::_draw() {
J3DModel* model = mpMcaMorf->getModel();
J3DModelData* modelData = model->getModelData();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(m6D0, &mTevStr);
g_env_light.setLightTevColorType(m6D4, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(model, &tevStr);
g_env_light.setLightTevColorType(m6D0, &tevStr);
g_env_light.setLightTevColorType(m6D4, &tevStr);
mBtpAnm.entry(modelData, m6F0);
mpMcaMorf->updateDL();
@@ -675,7 +675,7 @@ BOOL daNpc_Btsw2_c::_draw() {
cXyz sp8(current.pos.x, current.pos.y + 130.0f, current.pos.z);
mShadowId = dComIfGd_setShadow(
mShadowId, 1, mpMcaMorf->getModel(), &sp8, 800.0f, 20.0f,
current.pos.y, mObjAcch.GetGroundH(), mObjAcch.m_gnd, &mTevStr,
current.pos.y, mObjAcch.GetGroundH(), mObjAcch.m_gnd, &tevStr,
0, 1.0f, dDlst_shadowControl_c::getSimpleTex()
);
@@ -722,7 +722,7 @@ actor_process_profile_definition g_profile_NPC_BTSW2 = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_NPC_BTSW2,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daNpc_Btsw2_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+29 -29
View File
@@ -586,9 +586,9 @@ u32 daNpc_Ji1_c::kaitenExpAction(void*) {
if(field_0xC78 == 0) {
setAnm(0x10, 4.0f, 0);
if(!mEvtInfo.checkCommandDemoAccrpt()) {
if(!eventInfo.checkCommandDemoAccrpt()) {
fopAcM_orderOtherEventId(this, field_0xC60);
mEvtInfo.onCondition(dEvtCmd_INDEMO_e);
eventInfo.onCondition(dEvtCmd_INDEMO_e);
return false;
}
@@ -706,7 +706,7 @@ u32 daNpc_Ji1_c::getMsg1stType() {
if(!dComIfGs_isEventBit(0x108)) {
dComIfGs_onEventBit(0x108);
mEvtInfo.setEventId(-1);
eventInfo.setEventId(-1);
return 0x965;
}
@@ -1111,7 +1111,7 @@ u32 daNpc_Ji1_c::evn_talk_init(int staffIdx) {
/* 000049AC-00004B1C .text evn_talk__11daNpc_Ji1_cFv */
u32 daNpc_Ji1_c::evn_talk() {
if(l_msgId == -1) {
l_msgId = fopMsgM_messageSet(field_0x2AC, &mEyePos);
l_msgId = fopMsgM_messageSet(field_0x2AC, &eyePos);
}
else if(!l_msg) {
l_msg = fopMsgM_SearchByID(l_msgId);
@@ -1171,7 +1171,7 @@ u32 daNpc_Ji1_c::evn_continue_talk_init(int staffIdx) {
/* 00004B84-00004CF4 .text evn_continue_talk__11daNpc_Ji1_cFv */
u32 daNpc_Ji1_c::evn_continue_talk() {
if(l_msgId == -1) {
l_msgId = fopMsgM_messageSet(field_0x2AC, &mEyePos);
l_msgId = fopMsgM_messageSet(field_0x2AC, &eyePos);
}
else if(!l_msg) {
l_msg = fopMsgM_SearchByID(l_msgId);
@@ -1613,7 +1613,7 @@ u32 daNpc_Ji1_c::teachSPRollCutAction(void*) {
if(field_0xC78 == 0) {
dComIfGp_setItemMagicCount(dComIfGs_getMaxMagic());
setAnm(5, 0.0f, 0);
mAttentionInfo.mFlags |= fopAc_Attn_LOCKON_MISC_e;
attention_info.flags |= fopAc_Attn_LOCKON_MISC_e;
field_0xC90 = 0;
field_0xD34 = 0;
field_0xC30 = 0;
@@ -1751,7 +1751,7 @@ u32 daNpc_Ji1_c::teachSPRollCutAction(void*) {
}
fopAcM_orderOtherEventId(this, field_0xC5A);
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
eventInfo.onCondition(dEvtCnd_UNK2_e);
field_0xC90 = 2;
}
}
@@ -2209,9 +2209,9 @@ u32 daNpc_Ji1_c::battleAction(void*) {
dComIfGp_setMiniGameRupee(0);
field_0xC3C = 0;
setAnm(5, 0.0f, 0);
mAttentionInfo.mFlags |= fopAc_Attn_LOCKON_MISC_e;
mAttentionInfo.mFlags |= fopAc_Attn_LOCKON_ENEMY_e;
mAttentionInfo.mDistances[2] = 3;
attention_info.flags |= fopAc_Attn_LOCKON_MISC_e;
attention_info.flags |= fopAc_Attn_LOCKON_ENEMY_e;
attention_info.distances[2] = 3;
field_0xC30 = (s16)cM_rndF(150.0f) + 30;
field_0xD70 = 0;
field_0xD6C = 0;
@@ -2220,8 +2220,8 @@ u32 daNpc_Ji1_c::battleAction(void*) {
field_0xC78++;
}
else if(field_0xC78 == -1) {
mAttentionInfo.mFlags &= ~fopAc_Attn_LOCKON_ENEMY_e;
mAttentionInfo.mDistances[2] = 0xB5;
attention_info.flags &= ~fopAc_Attn_LOCKON_ENEMY_e;
attention_info.distances[2] = 0xB5;
}
else {
cXyz temp = player->current.pos - current.pos;
@@ -2879,7 +2879,7 @@ BOOL daNpc_Ji1_c::CreateHeap() {
field_0xC76 = dComIfGp_evmng_getEventIdx("Ji1_EquipTalk", 0xFF);
if(dComIfGs_isEventBit(0x1) && !dComIfGs_isEventBit(0x108)) {
mEvtInfo.setEventId(field_0xC76);
eventInfo.setEventId(field_0xC76);
}
return true;
@@ -2895,8 +2895,8 @@ BOOL daNpc_Ji1_c::CreateInit() {
fopAcM_createChild("Kmon", fopAcM_GetID(this), 0, &temp, fopAcM_GetRoomNo(this), &temp2, 0, (createFunc)0);
fopAcM_SetMtx(this, field_0x330->getModel()->getBaseTRMtx());
fopAcM_setCullSizeBox(this, -70.0f, 0.0f, -70.0f, 70.0f, 200.0f, 70.0f);
mGravity = -30.0f;
mAttentionInfo.mFlags = fopAc_Attn_LOCKON_MISC_e | fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e;
gravity = -30.0f;
attention_info.flags = fopAc_Attn_LOCKON_MISC_e | fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e;
field_0x638.Init(0xFF, 0xFF, this);
field_0x674.Init(0xFF, 0xFF, this);
@@ -3061,10 +3061,10 @@ BOOL daNpc_Ji1_c::CreateInit() {
field_0xD7C = 0;
field_0xD7E = 0;
mAttentionInfo.mFlags |= fopAc_Attn_LOCKON_MISC_e;
mAttentionInfo.mDistances[1] = 0xA9;
mAttentionInfo.mDistances[3] = 0xA9;
mAttentionInfo.mDistances[2] = 0xB5;
attention_info.flags |= fopAc_Attn_LOCKON_MISC_e;
attention_info.distances[1] = 0xA9;
attention_info.distances[3] = 0xA9;
attention_info.distances[2] = 0xB5;
field_0x414 = 0.0f;
field_0x42C = 0.0f;
field_0x430 = 0;
@@ -3178,15 +3178,15 @@ BOOL daNpc_Ji1_c::_execute() {
lookBack();
daNpc_Ji1_setHairAngle(this);
mAttentionInfo.mPosition.set(current.pos.x, current.pos.y + 190.0f, current.pos.z);
attention_info.position.set(current.pos.x, current.pos.y + 190.0f, current.pos.z);
shape_angle = current.angle;
mEyePos.set(current.pos.x, current.pos.y + 150.0f, current.pos.z);
eyePos.set(current.pos.x, current.pos.y + 150.0f, current.pos.z);
fopAcM_posMoveF(this, field_0x638.GetCCMoveP());
cXyz temp(current.pos);
field_0x434.CrrPos(*dComIfG_Bgsp());
field_0xC40 = current.pos - temp;
mTevStr.mRoomNo = dComIfG_Bgsp()->GetRoomId(field_0x434.m_gnd);
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(field_0x434.m_gnd);
tevStr.mRoomNo = dComIfG_Bgsp()->GetRoomId(field_0x434.m_gnd);
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(field_0x434.m_gnd);
set_mtx();
field_0x6B0.SetC(current.pos);
dComIfG_Ccsp()->Set(&field_0x6B0);
@@ -3209,9 +3209,9 @@ BOOL daNpc_Ji1_c::_draw() {
J3DModelData* modelData1 = model1->getModelData();
J3DModel* model2 = mpMorf->getModel();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(model1, &mTevStr);
g_env_light.setLightTevColorType(model2, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(model1, &tevStr);
g_env_light.setLightTevColorType(model2, &tevStr);
field_0x3D8.entry(modelData1, field_0x3EC);
field_0x330->entryDL();
if(field_0xD84 == 1) {
@@ -3225,7 +3225,7 @@ BOOL daNpc_Ji1_c::_draw() {
field_0x3FC.entry(field_0x3F8->getModelData(), (s16)field_0x414);
mDoExt_modelUpdateDL(field_0x3F8);
cXyz temp(current.pos.x, current.pos.y + 150.0f, current.pos.z);
field_0x3F0 = dComIfGd_setShadow(field_0x3F0, 1, field_0x330->getModel(), &temp, 800.0f, 20.0f, current.pos.y, field_0x434.GetGroundH(), field_0x434.m_gnd, &mTevStr, 0, 1.0f, dDlst_shadowControl_c::getSimpleTex());
field_0x3F0 = dComIfGd_setShadow(field_0x3F0, 1, field_0x330->getModel(), &temp, 800.0f, 20.0f, current.pos.y, field_0x434.GetGroundH(), field_0x434.m_gnd, &tevStr, 0, 1.0f, dDlst_shadowControl_c::getSimpleTex());
if(field_0x3F0 != 0 && field_0xD84 != 0) {
dComIfGd_addRealShadow(field_0x3F0, mpMorf->getModel());
}
@@ -3328,7 +3328,7 @@ BOOL daNpc_Ji1_c::lookBack() {
field_0xC88 = 0;
}
m_jnt.lookAtTarget(&current.angle.y, dstPos, mEyePos, current.angle.y, field_0xC88, temp2);
m_jnt.lookAtTarget(&current.angle.y, dstPos, eyePos, current.angle.y, field_0xC88, temp2);
return ret;
}
@@ -3453,7 +3453,7 @@ actor_process_profile_definition g_profile_NPC_JI1 = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_NPC_JI1,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daNpc_Ji1_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+28 -28
View File
@@ -201,11 +201,11 @@ daNpc_kam_c::~daNpc_kam_c() {
void daNpc_kam_c::setAttention(bool param_1, int param_2) {
if (param_1) {
cXyz headTopPos = getHeadTopPos();
mEyePos.set(headTopPos.x, headTopPos.y - 20.0f, headTopPos.z);
eyePos.set(headTopPos.x, headTopPos.y - 20.0f, headTopPos.z);
if (param_2) {
mAttentionInfo.mPosition.set(current.pos.x, current.pos.y, current.pos.z);
attention_info.position.set(current.pos.x, current.pos.y, current.pos.z);
} else {
mAttentionInfo.mPosition.set(home.pos.x, home.pos.y, home.pos.z);
attention_info.position.set(home.pos.x, home.pos.y, home.pos.z);
}
}
}
@@ -407,9 +407,9 @@ BOOL daNpc_kam_c::init() {
mUnusedC06 = 0;
mEventState = -1;
mCurrEventIdxIdx = -1;
mScale *= 1000.0f;
mMaxY = home.pos.y + mScale.y;
mMinY = home.pos.y - mScale.y;
scale *= 1000.0f;
mMaxY = home.pos.y + scale.y;
mMinY = home.pos.y - scale.y;
mTargetSpeedF = l_HIO.mHio1.mSpeedF;
mAngVelY = l_HIO.mHio1.mGlidingAngVelY;
@@ -437,16 +437,16 @@ BOOL daNpc_kam_c::init() {
setBaseMtx();
mAttentionInfo.mFlags = 0;
mAttentionInfo.mDistances[1] = 38;
mAttentionInfo.mDistances[3] = 38;
attention_info.flags = 0;
attention_info.distances[1] = 38;
attention_info.distances[3] = 38;
for (int i = 0; i < 3; i++) {
mEventIdxs[i] = dComIfGp_evmng_getEventIdx(event_name_tbl[i], 0xFF);
}
mEvtInfo.setXyCheckCB(daNpc_kam_XyCheckCB);
mEvtInfo.setXyEventCB(daNpc_kam_XyEventCB);
eventInfo.setXyCheckCB(daNpc_kam_XyCheckCB);
eventInfo.setXyEventCB(daNpc_kam_XyEventCB);
return TRUE;
}
@@ -538,7 +538,7 @@ BOOL daNpc_kam_c::changeAreaCheck() {
} else {
// For all other sectors, simple check if Link is within the Hyoi Seagull's moveable range.
delta = player->current.pos - home.pos;
if (delta.absXZ() < mScale.x) {
if (delta.absXZ() < scale.x) {
offNpcNotChange();
return TRUE;
}
@@ -550,7 +550,7 @@ BOOL daNpc_kam_c::changeAreaCheck() {
/* 0000235C-00002450 .text areaOutCheck__11daNpc_kam_cFv */
BOOL daNpc_kam_c::areaOutCheck() {
cXyz delta = (current.pos - home.pos);
return delta.absXZ() > mScale.x ? TRUE : FALSE;
return delta.absXZ() > scale.x ? TRUE : FALSE;
}
/* 00002450-000025B0 .text getStickAngY__11daNpc_kam_cFPsPs */
@@ -648,10 +648,10 @@ int daNpc_kam_c::waitNpcAction(void*) {
mC0C = cLib_getRndValue(10, 80);
} else if (mActionStatus != ACTION_ENDING) {
if (changeAreaCheck()) {
mAttentionInfo.mFlags |= fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_NOTALK_e;
attention_info.flags |= fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_NOTALK_e;
mEventState = 6;
} else {
mAttentionInfo.mFlags &= ~(fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_NOTALK_e);
attention_info.flags &= ~(fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_NOTALK_e);
mEventState = -1;
}
@@ -863,7 +863,7 @@ void daNpc_kam_c::eventOrder() {
}
if (mEventState == 5 || mEventState == 4) {
if (dComIfGp_getPlayer(0) != this) {
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
if (mEventState == 5) {
fopAcM_orderSpeakEvent(this);
}
@@ -872,8 +872,8 @@ void daNpc_kam_c::eventOrder() {
}
} else if (mEventState == 6) {
if (dComIfGp_getPlayer(0) != this) {
mEvtInfo.onCondition(dEvtCnd_CANTALKITEM_e);
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALKITEM_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
} else {
mEventState = -1;
}
@@ -885,7 +885,7 @@ void daNpc_kam_c::eventOrder() {
/* 0000315C-00003194 .text checkOrder__11daNpc_kam_cFv */
void daNpc_kam_c::checkOrder() {
if (!mEvtInfo.checkCommandTalk()) {
if (!eventInfo.checkCommandTalk()) {
return;
}
if (mEventState != 5 && mEventState != 4 && mEventState != 6) {
@@ -896,7 +896,7 @@ void daNpc_kam_c::checkOrder() {
/* 00003194-00003200 .text checkCommandTalk__11daNpc_kam_cFv */
BOOL daNpc_kam_c::checkCommandTalk() {
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
if (dComIfGp_event_chkTalkXY()) {
if (mEventState == 6) {
mEventState = -1;
@@ -938,7 +938,7 @@ static char* cut_name_tbl[] = {
/* 00003248-000034A8 .text eventProc__11daNpc_kam_cFv */
BOOL daNpc_kam_c::eventProc() {
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
if (mEventState != -1) {
if (mEventState == 0) {
if (dComIfGp_evmng_startCheck("OPTION_CHAR_END") || dComIfGp_evmng_endCheck("OPTION_CHAR_END")) {
@@ -1253,7 +1253,7 @@ void daNpc_kam_c::animationPlay() {
mtrlSndId = dComIfG_Bgsp()->GetMtrlSndId(mAcch.m_gnd);
}
mReachedAnimEnd = mpMorf->play(&mEyePos, mtrlSndId, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
mReachedAnimEnd = mpMorf->play(&eyePos, mtrlSndId, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
f32 frame = mpMorf->getFrame();
if (mpMorf->getPlaySpeed() < 0.0f) {
@@ -1309,8 +1309,8 @@ BOOL daNpc_kam_c::execute() {
if (mAcch.GetGroundH() != -1000000000.0f) {
s8 roomNo = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
fopAcM_SetRoomNo(this, roomNo);
mTevStr.mRoomNo = roomNo;
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
tevStr.mRoomNo = roomNo;
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
mStts.SetRoomId(roomNo);
mPolyInfo.SetPolyInfo(mAcch.m_gnd);
}
@@ -1384,18 +1384,18 @@ BOOL daNpc_kam_c::execute() {
BOOL daNpc_kam_c::draw() {
J3DModel* model = mpMorf->getModel();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
drawDamageFog();
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(model, &tevStr);
mpMorf->entryDL();
cXyz shadowPos(current.pos.x, current.pos.y, current.pos.z);
mShadowId = dComIfGd_setShadow(
mShadowId, 1, model, &shadowPos, 800.0f, 20.0f,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &mTevStr,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &tevStr,
0, 1.0f, dDlst_shadowControl_c::getSimpleTex()
);
@@ -1443,7 +1443,7 @@ actor_process_profile_definition g_profile_NPC_KAM = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_NPC_KAM,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daNpc_kam_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+19 -19
View File
@@ -1012,7 +1012,7 @@ int daNpc_Md_c::calcStickPos(s16 param_1, cXyz* param_2) {
attList = attention.GetActionList(0);
}
if (attList) {
*param_2 = attList->getActor()->mEyePos;
*param_2 = attList->getActor()->eyePos;
return r31;
}
@@ -1459,7 +1459,7 @@ BOOL daNpc_Md_c::hitNpcAction(void* r29) {
current.angle.y = angle;
speedF = 10.0f;
speed.y = 20.0f;
mAttentionInfo.mFlags &= ~fopAc_Attn_ACTION_CARRY_e;
attention_info.flags &= ~fopAc_Attn_ACTION_CARRY_e;
mAcchCir[1].SetWall(60.0f, 20.0f);
cLib_offBit(m30F0, 0x01UL | 0x04UL);
cLib_onBit(m30F0, 0x02UL);
@@ -1582,8 +1582,8 @@ BOOL daNpc_Md_c::mkamaePlayerAction(void*) {
setAnm(0x1F);
shape_angle.x = 0;
shape_angle.z = 0;
mGravity = l_HIO.m0F4;
mMaxFallSpeed = -100.0f;
gravity = l_HIO.m0F4;
maxFallSpeed = -100.0f;
speedF = 0.0f;
speed.y = 0.0f;
mAcchCir[1].SetWall(60.0f, 20.0f);
@@ -1788,7 +1788,7 @@ static char* cut_name_tbl[] = {
/* 0000A9BC-0000AC80 .text eventProc__10daNpc_Md_cFv */
BOOL daNpc_Md_c::eventProc() {
if (mEvtInfo.checkCommandDemoAccrpt() && mCurEventMode != 0) {
if (eventInfo.checkCommandDemoAccrpt() && mCurEventMode != 0) {
if (mCurEventMode == 0xC) {
if (dComIfGp_evmng_startCheck("OPTION_CHAR_END") || dComIfGp_evmng_endCheck("OPTION_CHAR_END")) {
dComIfGp_event_setTalkPartner(dComIfGp_getLinkPlayer());
@@ -1832,7 +1832,7 @@ BOOL daNpc_Md_c::eventProc() {
}
if (staffIdx != -1) {
return TRUE;
} else if (dComIfGp_getLinkPlayer()->mEvtInfo.checkCommandDoor() == FALSE) {
} else if (dComIfGp_getLinkPlayer()->eventInfo.checkCommandDoor() == FALSE) {
return TRUE;
}
}
@@ -1904,8 +1904,8 @@ BOOL daNpc_Md_c::actionFlyEvent(int) {
/* 0000B870-0000B890 .text initialGlidingEvent__10daNpc_Md_cFi */
void daNpc_Md_c::initialGlidingEvent(int) {
mGravity = l_HIO.m0F4;
mMaxFallSpeed = -100.0f;
gravity = l_HIO.m0F4;
maxFallSpeed = -100.0f;
}
/* 0000B890-0000B934 .text actionGlidingEvent__10daNpc_Md_cFi */
@@ -2452,7 +2452,7 @@ BOOL daNpc_Md_c::setAnm(int anmIdx) {
if (m312D == 0x10) {
if (m0508[1] == NULL) {
m0508[1] = dComIfGp_particle_set(0x819D, &current.pos, NULL, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &mTevStr.mColorK0, &mTevStr.mColorK0);
m0508[1] = dComIfGp_particle_set(0x819D, &current.pos, NULL, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &tevStr.mColorK0, &tevStr.mColorK0);
if (m0508[1]) {
m0508[1]->becomeImmortalEmitter();
}
@@ -2514,7 +2514,7 @@ void daNpc_Md_c::checkOrder() {
/* 0000DC14-0000DCB0 .text checkCommandTalk__10daNpc_Md_cFv */
BOOL daNpc_Md_c::checkCommandTalk() {
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
if (dComIfGp_event_chkTalkXY()) {
onXYTalk();
if (!isDefaultTalkXY()) {
@@ -2920,9 +2920,9 @@ BOOL daNpc_Md_c::draw() {
J3DModel* model = mpMorf->getModel();
J3DModelData* modelData = model->getModelData();
g_env_light.settingTevStruct(0, &current.pos, &mTevStr);
g_env_light.settingTevStruct(0, &current.pos, &tevStr);
drawDamageFog();
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(model, &tevStr);
m0520.entry(modelData);
mpMorf->entryDL();
m0520.remove(modelData);
@@ -2930,20 +2930,20 @@ BOOL daNpc_Md_c::draw() {
if (!isTypeShipRide()) {
if (cLib_checkBit(m30F0, 0x1UL)) {
model = mpWingMorf->getModel();
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(model, &tevStr);
mpWingMorf->entryDL();
} else {
model = mpArmMorf->getModel();
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(model, &tevStr);
mpArmMorf->entryDL();
}
} else {
model = mpArmMorf->getModel();
g_env_light.setLightTevColorType(model, &mTevStr);
g_env_light.setLightTevColorType(model, &tevStr);
mpArmMorf->entryDL();
}
g_env_light.setLightTevColorType(mpHarpModel, &mTevStr);
g_env_light.setLightTevColorType(mpHarpModel, &tevStr);
mDoExt_modelUpdateDL(mpHarpModel);
if (isLightHit()) {
@@ -2968,7 +2968,7 @@ BOOL daNpc_Md_c::draw() {
cXyz shadowPos(current.pos.x, current.pos.y + 150.0f, current.pos.z);
mShadowId = dComIfGd_setShadow(
mShadowId, 0, mpMorf->getModel(), &shadowPos, 800.0f, 20.0f,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &mTevStr,
current.pos.y, mAcch.GetGroundH(), mAcch.m_gnd, &tevStr,
0, 1.0f, dDlst_shadowControl_c::getSimpleTex()
);
@@ -3007,7 +3007,7 @@ void daNpc_Md_c::particle_set(JPABaseEmitter** pEmitter, u16 particleID) {
if (*pEmitter) {
return;
}
(*pEmitter) = dComIfGp_particle_set(particleID, &current.pos, &current.angle, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &mTevStr.mColorK0, &mTevStr.mColorK0);
(*pEmitter) = dComIfGp_particle_set(particleID, &current.pos, &current.angle, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &tevStr.mColorK0, &tevStr.mColorK0);
if (*pEmitter) {
(*pEmitter)->becomeImmortalEmitter();
}
@@ -3127,7 +3127,7 @@ actor_process_profile_definition g_profile_NPC_MD = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_NPC_MD,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daNpc_Md_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -66,7 +66,7 @@ s32 daObjAjavW_c::_create() {
ret = cPhs_ERROR_e;
} else {
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
@@ -104,8 +104,8 @@ bool daObjAjavW_c::_execute() {
/* 000004F4-0000056C .text _draw__12daObjAjavW_cFv */
bool daObjAjavW_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mBtkAnm.entry(mpModel->getModelData());
mDoExt_modelUpdateDL(mpModel);
return true;
@@ -149,7 +149,7 @@ actor_process_profile_definition g_profile_Obj_AjavW = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_AjavW,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjAjavW_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+5 -5
View File
@@ -18,11 +18,11 @@ namespace {
/* 00000078-00000120 .text init_mtx__12daObjVteng_cFv */
void daObjVteng_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(shape_angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
MTXCopy(mDoMtx_stack_c::get(), mtx);
}
@@ -114,8 +114,8 @@ bool daObjVteng_c::_execute() {
/* 00000510-00000578 .text _draw__12daObjVteng_cFv */
bool daObjVteng_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG3, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG3, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mpMorf->updateDL();
fopAcM_SetModel(this, mpModel);
return true;
@@ -159,7 +159,7 @@ actor_process_profile_definition g_profile_Obj_Vteng = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Vteng,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjVteng_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+3 -3
View File
@@ -171,9 +171,9 @@ void daObjYboil_c::set_sea_material(J3DMaterial* material) {
/* 00000A50-00000C6C .text _draw__12daObjYboil_cFv */
bool daObjYboil_c::_draw() {
dComIfGd_setListBG();
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
for (s32 i = 0; i < 50; i++) {
g_env_light.setLightTevColorType(mModel[i], &mTevStr);
g_env_light.setLightTevColorType(mModel[i], &tevStr);
set_sea_material(mModel[i]->getModelData()->getJointNodePointer(0)->getMesh());
mBckAnm[i].entry(mModel[i]->getModelData());
mBtkAnm[i].entry(mModel[i]->getModelData());
@@ -207,7 +207,7 @@ actor_process_profile_definition g_profile_Obj_Yboil = {
/* ListID */ 7,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Yboil,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjYboil_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -71,14 +71,14 @@ s32 daObjYgush00_c::_create() {
if (ret == cPhs_COMPLEATE_e) {
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0x740) == 1) {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
fopAcM_setCullSizeBox(this,
mScale.x * -80.0f, 0.0f, mScale.z * -80.0f,
mScale.x * 80.0f, mScale.y * 125.0f, mScale.z * 80.0f);
scale.x * -80.0f, 0.0f, scale.z * -80.0f,
scale.x * 80.0f, scale.y * 125.0f, scale.z * 80.0f);
} else {
ret = cPhs_ERROR_e;
}
@@ -117,8 +117,8 @@ bool daObjYgush00_c::_execute() {
/* 0000066C-000006FC .text _draw__14daObjYgush00_cFv */
bool daObjYgush00_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mBtkAnm.entry(mpModel->getModelData());
mBckAnm.entry(mpModel->getModelData());
mDoExt_modelUpdateDL(mpModel);
@@ -163,7 +163,7 @@ actor_process_profile_definition g_profile_Obj_Ygush00 = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Ygush00,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjYgush00_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+2 -2
View File
@@ -45,7 +45,7 @@ void daObjAdnno_c::CreateInit() {
void daObjAdnno_c::set_mtx() {
for (int i = 0; i < 16; i++) {
J3DModel * model = mpModel[i];
model->setBaseScale(mScale);
model->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
@@ -144,7 +144,7 @@ actor_process_profile_definition g_profile_Obj_Adnno = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Adnno,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjAdnno_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+7 -7
View File
@@ -105,14 +105,14 @@ namespace daObjAkabe {
void Act_c::init_scale() {
s32 scl = prm_get_scl();
if (scl == 1) {
mScale.x *= 10.0f;
mScale.y *= 10.0f;
mScale.z = 1.0f;
scale.x *= 10.0f;
scale.y *= 10.0f;
scale.z = 1.0f;
} else if (scl == 2) {
} else if (scl == 3) {
mScale *= 10.0f;
scale *= 10.0f;
} else {
mScale.z = 1.0f;
scale.z = 1.0f;
}
}
@@ -120,7 +120,7 @@ namespace daObjAkabe {
void Act_c::init_mtx() {
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(shape_angle);
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
mDoMtx_copy(mDoMtx_stack_c::get(), mMtx);
}
@@ -189,7 +189,7 @@ actor_process_profile_definition g_profile_Obj_Akabe = {
/* ListID */ 3,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Akabe,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjAkabe::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+11 -11
View File
@@ -81,12 +81,12 @@ static cXyz l_ef_scale(1.0f, 1.0f, 1.0f);
/* 000000EC-0000018C .text init_mtx__14daObjBarrier_cFv */
void daObjBarrier_c::init_mtx() {
mAnm.getMdlP()->setBaseScale(mScale);
mAnm.getMdlP()->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
mAnm.getMdlP()->setBaseTRMtx(mDoMtx_stack_c::get());
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
cMtx_copy(mDoMtx_stack_c::get(), mBgMtx);
}
@@ -154,7 +154,7 @@ bool daObjBarrier_c::checkCollision_Tg() {
}
}
mEffect.birth(hit_actor, mScale.x * 1000.0f, mTgCyl.GetC(), hit_pos, no_set_effect);
mEffect.birth(hit_actor, scale.x * 1000.0f, mTgCyl.GetC(), hit_pos, no_set_effect);
}
mTgCyl.ClrTgHit();
@@ -170,7 +170,7 @@ void daObjBarrier_c::checkCollision_At() {
fopAc_ac_c* player_p = dComIfGp_getPlayer(0);
if (hit_actor != NULL && hit_actor == player_p) {
mEffect.birth(hit_actor, mScale.x * 1000.0f, mAtCyl.GetC(), hit_actor->current.pos, 1);
mEffect.birth(hit_actor, scale.x * 1000.0f, mAtCyl.GetC(), hit_actor->current.pos, 1);
}
mAtCyl.ClrAtHit();
@@ -182,8 +182,8 @@ void daObjBarrier_c::registCollisionTable() {
cXyz pos = current.pos;
pos.y -= 300.0f;
f32 base_radius = mScale.x * 1000.0f;
f32 height = mScale.y * 10000.0f + 300.0f;
f32 base_radius = scale.x * 1000.0f;
f32 height = scale.y * 10000.0f + 300.0f;
mAtCyl.SetC(pos);
mAtCyl.SetR(base_radius - 60.0f);
@@ -203,7 +203,7 @@ void daObjBarrier_c::registCollisionTable() {
/* 00000754-00000884 .text brkAnmPlay__14daObjBarrier_cFv */
void daObjBarrier_c::brkAnmPlay() {
f32 dist_to_playerXZ = (dComIfGp_getPlayer(0)->current.pos - current.pos).absXZ();
f32 radius = mScale.x * 1000.0f - 150.0f;
f32 radius = scale.x * 1000.0f - 150.0f;
f32 var_r3;
if (dist_to_playerXZ > radius) {
@@ -253,11 +253,11 @@ void daObjBarrier_c::break_start_wait_proc() {
/* 000009F0-00000A58 .text break_order_proc__14daObjBarrier_cFv */
void daObjBarrier_c::break_order_proc() {
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
mBarrierProc = PROC_BREAK_END_WAIT;
} else {
fopAcM_orderOtherEventId(this, mEventID);
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
eventInfo.onCondition(dEvtCnd_UNK2_e);
}
}
@@ -501,7 +501,7 @@ int daObjBarrier_c::_create() {
phase = cPhs_ERROR_e;
} else {
mpBgW->SetCrrFunc(NULL);
mScale.z = mScale.x;
scale.z = scale.x;
fopAcM_SetMtx(this, mAnm.getMdlP()->getBaseTRMtx());
init_mtx();
@@ -619,7 +619,7 @@ actor_process_profile_definition g_profile_Obj_Barrier = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Barrier,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjBarrier_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+3 -3
View File
@@ -89,8 +89,8 @@ bool daObj_Bscurtain_c::_execute() {
bool daObj_Bscurtain_c::_draw() {
dComIfGd_setListBG();
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
return true;
@@ -134,7 +134,7 @@ actor_process_profile_definition g_profile_Obj_Bscurtain = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Bscurtain,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObj_Bscurtain_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -38,7 +38,7 @@ void daObjCafelmp_c::CreateInit() {
/* 000001CC-0000024C .text set_mtx__14daObjCafelmp_cFv */
void daObjCafelmp_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -72,8 +72,8 @@ BOOL daObjCafelmp_c::_execute() {
}
BOOL daObjCafelmp_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -118,7 +118,7 @@ actor_process_profile_definition g_profile_Obj_Cafelmp = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Cafelmp,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjCafelmp_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -43,7 +43,7 @@ void daObjDmgroom_c::CreateInit() {
/* 0000026C-000002EC .text set_mtx__14daObjDmgroom_cFv */
void daObjDmgroom_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -71,8 +71,8 @@ bool daObjDmgroom_c::_delete() {
}
bool daObjDmgroom_c::_execute() {
if (mDemoActorId != 0) {
dDemo_actor_c * demoAc = dComIfGp_demo_getActor(mDemoActorId);
if (demoActorID != 0) {
dDemo_actor_c * demoAc = dComIfGp_demo_getActor(demoActorID);
if (demoAc != NULL && demoAc->checkEnable(0x40))
mBrkAnm.setFrame(demoAc->mAnimationFrame);
}
@@ -81,8 +81,8 @@ bool daObjDmgroom_c::_execute() {
}
bool daObjDmgroom_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mBrkAnm.entry(mpModel->getModelData());
mDoExt_modelUpdateDL(mpModel);
@@ -129,7 +129,7 @@ actor_process_profile_definition g_profile_Obj_Dmgroom = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Dmgroom,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjDmgroom_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+7 -7
View File
@@ -30,7 +30,7 @@ BOOL daObjDoguuD_c::CreateHeap() {
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
mDoMtx_copy(mDoMtx_stack_c::get(), mMtx);
mpBgW = new dBgW();
@@ -56,7 +56,7 @@ void daObjDoguuD_c::CreateInit() {
/* 00000294-00000314 .text set_mtx__13daObjDoguuD_cFv */
void daObjDoguuD_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -97,8 +97,8 @@ static BOOL daObjDoguuD_Delete(void* i_this) {
}
BOOL daObjDoguuD_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -111,8 +111,8 @@ static BOOL daObjDoguuD_Draw(void* i_this) {
}
BOOL daObjDoguuD_c::_execute() {
if (mDemoActorId != 0) {
dDemo_actor_c* demoAc = dComIfGp_demo_getActor(mDemoActorId);
if (demoActorID != 0) {
dDemo_actor_c* demoAc = dComIfGp_demo_getActor(demoActorID);
if (demoAc != NULL && demoAc->checkEnable(0x10)) {
mShape = demoAc->mShapeId;
}
@@ -142,7 +142,7 @@ actor_process_profile_definition g_profile_Obj_DoguuD = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_DoguuD,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjDoguuD_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -63,7 +63,7 @@ BOOL daObjDragonhead_c::CreateHeap() {
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(shape_angle.y);
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
mDoMtx_copy(mDoMtx_stack_c::get(), mtx);
mpBgW = new dBgW();
@@ -103,7 +103,7 @@ void daObjDragonhead_c::CreateInit() {
/* 0000034C-000003CC .text set_mtx__17daObjDragonhead_cFv */
void daObjDragonhead_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(current.angle.y);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -154,7 +154,7 @@ BOOL daObjDragonhead_c::_execute() {
if (!dComIfG_Bgsp()->Release(mpBgW))
field_0x40c = 0;
mDoAud_seStart(JA_SE_OBJ_ICEVERG_MELT, &mEyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
mDoAud_seStart(JA_SE_OBJ_ICEVERG_MELT, &eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(this)));
}
if (mAlpha != 0) {
@@ -181,8 +181,8 @@ BOOL daObjDragonhead_c::_execute() {
}
BOOL daObjDragonhead_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
J3DModelData* modelData = mpModel->getModelData();
u16 materialNum = modelData->getMaterialNum();
@@ -233,7 +233,7 @@ actor_process_profile_definition g_profile_Obj_Dragonhead = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Dragonhead,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjDragonhead_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -92,7 +92,7 @@ BOOL daObjEayogn_c::check_ev_bit() const {
/* 00000360-000003E8 .text init_mtx__13daObjEayogn_cFv */
void daObjEayogn_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(shape_angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -105,8 +105,8 @@ bool daObjEayogn_c::_execute() {
/* 000003F0-00000490 .text _draw__13daObjEayogn_cFv */
bool daObjEayogn_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -153,7 +153,7 @@ actor_process_profile_definition g_profile_Obj_Eayogn = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Eayogn,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjEayogn_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -249,7 +249,7 @@ void daObjFerris::Act_c::set_mtx(int idx) {
/* 000011B8-00001240 .text init_mtx__Q211daObjFerris5Act_cFv */
void daObjFerris::Act_c::init_mtx() {
for (s32 i = 0; i < 6; i++) {
mpModel[i]->setBaseScale(mScale);
mpModel[i]->setBaseScale(scale);
set_mtx(i);
mpModel[i]->calc();
}
@@ -274,11 +274,11 @@ BOOL daObjFerris::Act_c::set_event(s16 p1) {
void daObjFerris::Act_c::exe_event() {
switch (mEventState) {
case 1:
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
mEventState = 2;
} else {
fopAcM_orderOtherEventId(this, mEventIdx);
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
eventInfo.onCondition(dEvtCnd_UNK2_e);
}
break;
case 2:
@@ -514,10 +514,10 @@ bool daObjFerris::Act_c::_execute() {
/* 00001D58-00001E18 .text _draw__Q211daObjFerris5Act_cFv */
bool daObjFerris::Act_c::_draw() {
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
dComIfGd_setListBG();
for (s32 i = 0; i < 6; i++) {
dKy_getEnvlight().setLightTevColorType(mpModel[i], &mTevStr);
dKy_getEnvlight().setLightTevColorType(mpModel[i], &tevStr);
mDoExt_modelUpdateDL(mpModel[i]);
}
dComIfGd_setList();
@@ -561,7 +561,7 @@ actor_process_profile_definition g_profile_Obj_Ferris = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Ferris,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjFerris::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -27,7 +27,7 @@ namespace {
/* 00000078-00000100 .text init_mtx__11daObjGbed_cFv */
void daObjGbed_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(shape_angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -104,8 +104,8 @@ bool daObjGbed_c::_execute() {
/* 000003E4-00000444 .text _draw__11daObjGbed_cFv */
bool daObjGbed_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mDoExt_modelUpdateDL(mpModel);
return true;
}
@@ -148,7 +148,7 @@ actor_process_profile_definition g_profile_Obj_Gbed = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Gbed,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjGbed_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -70,7 +70,7 @@ bool daObjGaship2::Act_c::_delete() {
/* 00000384-00000430 .text set_mtx__Q212daObjGaship25Act_cFv */
void daObjGaship2::Act_c::set_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(shape_angle);
@@ -88,9 +88,9 @@ bool daObjGaship2::Act_c::_execute() {
/* 00000468-00000508 .text _draw__Q212daObjGaship25Act_cFv */
bool daObjGaship2::Act_c::_draw() {
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
dComIfGd_setListBG();
dKy_getEnvlight().setLightTevColorType(mpModel, &mTevStr);
dKy_getEnvlight().setLightTevColorType(mpModel, &tevStr);
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
return TRUE;
@@ -133,7 +133,7 @@ actor_process_profile_definition g_profile_Obj_Gaship2 = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Gaship2,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjGaship2::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+6 -6
View File
@@ -70,7 +70,7 @@ s32 daObjGong::Act_c::_create() {
fopAcM_SetMtx(this, mpMorf->getModel()->getBaseTRMtx());
init_mtx();
fopAcM_setCullSizeBox(this, -100.0f, -1.0f, -50.0f, 100.0f, 230.0f, 50.0f);
mEyePos.y += attr().offsetY;
eyePos.y += attr().offsetY;
} else {
ret = cPhs_ERROR_e;
}
@@ -94,7 +94,7 @@ void daObjGong::Act_c::set_mtx() {
/* 00000414-00000454 .text init_mtx__Q29daObjGong5Act_cFv */
void daObjGong::Act_c::init_mtx() {
mpMorf->getModel()->setBaseScale(mScale);
mpMorf->getModel()->setBaseScale(scale);
set_mtx();
}
@@ -115,9 +115,9 @@ bool daObjGong::Act_c::_execute() {
bool daObjGong::Act_c::_draw() {
J3DModel* model = (J3DModel*)mpMorf->getModel();
J3DModelData* modelData = (J3DModelData*)model->getModelData();
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(model, &mTevStr);
dDlst_texSpecmapST(&mEyePos, &mTevStr, modelData, attr().spec);
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, &current.pos, &tevStr);
g_env_light.setLightTevColorType(model, &tevStr);
dDlst_texSpecmapST(&eyePos, &tevStr, modelData, attr().spec);
mpMorf->updateDL();
return true;
}
@@ -164,7 +164,7 @@ actor_process_profile_definition g_profile_Obj_Gong = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Gong,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjGong::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+4 -4
View File
@@ -58,7 +58,7 @@ namespace {
/* 00000078-00000100 .text init_mtx__13daObjHfuck1_cFv */
void daObjHfuck1_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::XYZrotM(shape_angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
@@ -172,8 +172,8 @@ bool daObjHfuck1_c::_execute() {
/* 000007CC-0000082C .text _draw__13daObjHfuck1_cFv */
bool daObjHfuck1_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mDoExt_modelUpdateDL(mpModel);
return true;
}
@@ -216,7 +216,7 @@ actor_process_profile_definition g_profile_Obj_Hfuck1 = {
/* ListID */ 3,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Hfuck1,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjHfuck1_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+13 -13
View File
@@ -54,19 +54,19 @@ void daObj_Hole_c::setMtx() {
}
if (mHasModel == 0xFF) {
float scale = l_HIO.m08 * mScale.x;
f32 scaleMag = l_HIO.m08 * scale.x;
if (l_HIO.m0C != 0) {
scale += l_HIO.m0C * 10;
scaleMag += l_HIO.m0C * 10;
}
else {
scale += mScaleLocal * 10;
scaleMag += mScaleLocal * 10;
}
scale /= l_HIO.m08;
scaleMag /= l_HIO.m08;
cXyz scaleVec;
scaleVec.setall(scale);
scaleVec.setall(scaleMag);
mpMdl->setBaseScale(scaleVec);
mDoMtx_stack_c::transS(adjustPos);
@@ -103,16 +103,16 @@ void daObj_Hole_c::modeWaitInit() {
/* 00000410-000004F0 .text modeWait__12daObj_Hole_cFv */
void daObj_Hole_c::modeWait() {
float scale = l_HIO.m08 * mScale.x;
f32 scaleMag = l_HIO.m08 * scale.x;
if (l_HIO.m0C != 0) {
scale += l_HIO.m0C * 10;
scaleMag += l_HIO.m0C * 10;
}
else {
scale += mScaleLocal * 10;
scaleMag += mScaleLocal * 10;
}
if (dLib_checkPlayerInCircle(current.pos, scale, 20.0f)) {
if (dLib_checkPlayerInCircle(current.pos, scaleMag, 20.0f)) {
modeProcInit(MODE_EVENT);
}
}
@@ -127,7 +127,7 @@ void daObj_Hole_c::modeEventInit() {
/* 000004F4-000005D0 .text modeEvent__12daObj_Hole_cFv */
void daObj_Hole_c::modeEvent() {
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
int staffId = dComIfGp_evmng_getMyStaffId("Ypit00");
if (dComIfGp_evmng_endCheck("DEFAULT_PITFALL")) {
@@ -196,8 +196,8 @@ bool daObj_Hole_c::_draw() {
}
if (mHasModel == 0xFF) {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpMdl, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpMdl, &tevStr);
mDoExt_modelUpdateDL(mpMdl);
}
@@ -319,7 +319,7 @@ actor_process_profile_definition g_profile_OBJ_HOLE = {
3,
fpcPi_CURRENT_e,
PROC_OBJ_HOLE,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daObj_Hole_c),
0,
0,
+4 -4
View File
@@ -57,9 +57,9 @@ namespace daObjHomensmoke {
culling_dat[mType].mMax.x, culling_dat[mType].mMax.y, culling_dat[mType].mMax.z
);
fopAc_ac_c* parent = fopAcM_SearchByID(mParentPcId);
fopAc_ac_c* parent = fopAcM_SearchByID(parentActorID);
if (parent) {
mTevStr = parent->mTevStr;
tevStr = parent->tevStr;
}
return cPhs_COMPLEATE_e;
@@ -102,7 +102,7 @@ namespace daObjHomensmoke {
JPABaseEmitter* rubbleEmitter = dComIfGp_particle_setToon(0x81B1, &current.pos);
if (rubbleEmitter) {
rubbleEmitter->setGlobalPrmColor(mTevStr.mColorK0.r, mTevStr.mColorK0.g, mTevStr.mColorK0.b);
rubbleEmitter->setGlobalPrmColor(tevStr.mColorK0.r, tevStr.mColorK0.g, tevStr.mColorK0.b);
if (mType == 1) {
JGeometry::TVec3<f32> scale(0.6f, 0.6f, 0.6f);
rubbleEmitter->setEmitterScale(scale);
@@ -165,7 +165,7 @@ actor_process_profile_definition g_profile_Obj_Homensmk = {
/* ListID */ 3,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Homensmk,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjHomensmoke::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+10 -10
View File
@@ -80,7 +80,7 @@ void daObjKanat::Act_c::set_mtx() {
/* 000003F4-00000430 .text init_mtx__Q210daObjKanat5Act_cFv */
void daObjKanat::Act_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
set_mtx();
}
@@ -90,17 +90,17 @@ BOOL daObjKanat::Act_c::Execute(Mtx** pMtx) {
if (fopAcM_isSwitch(this, prm_get_swSave())) {
mIsBroken = true;
GXColor color;
color.r = mTevStr.mColorC0.r;
color.g = mTevStr.mColorC0.g;
color.b = mTevStr.mColorC0.b;
color.a = mTevStr.mColorC0.a;
color.r = tevStr.mColorC0.r;
color.g = tevStr.mColorC0.g;
color.b = tevStr.mColorC0.b;
color.a = tevStr.mColorC0.a;
dComIfGp_particle_set(
0x82A2, &current.pos, &current.angle, NULL, 0xFF,
NULL, current.roomNo, &mTevStr.mColorK0, &color
NULL, current.roomNo, &tevStr.mColorK0, &color
);
dComIfGp_particle_setToon(
0xA2A3, &current.pos, &current.angle, NULL, 0xB4,
&mSmokeCb, current.roomNo, &mTevStr.mColorK0, &color
&mSmokeCb, current.roomNo, &tevStr.mColorK0, &color
);
}
} else {
@@ -116,8 +116,8 @@ BOOL daObjKanat::Act_c::Execute(Mtx** pMtx) {
/* 00000590-00000644 .text Draw__Q210daObjKanat5Act_cFv */
BOOL daObjKanat::Act_c::Draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
if (!mIsVisible) {
return TRUE;
}
@@ -164,7 +164,7 @@ actor_process_profile_definition g_profile_Obj_Kanat = {
/* ListID */ 3,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Kanat,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjKanat::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+24 -24
View File
@@ -262,7 +262,7 @@ int daObjMknjD::Act_c::Create() {
mTactMode = 4;
mGiveItemNo = TACT_SONG5;
mEvtInfo.setEventName("MKNJD_K_TALK");
eventInfo.setEventName("MKNJD_K_TALK");
m0430 = 0x2910;
}
else {
@@ -273,18 +273,18 @@ int daObjMknjD::Act_c::Create() {
mTactMode = 3;
mGiveItemNo = TACT_SONG4;
mEvtInfo.setEventName("MKNJD_D_TALK");
eventInfo.setEventName("MKNJD_D_TALK");
m0430 = 0x2920;
}
mAttentionInfo.mDistances[1] = 0x3D;
mAttentionInfo.mDistances[3] = 0x3D;
mAttentionInfo.mFlags |= fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_CHECK_e;
attention_info.distances[1] = 0x3D;
attention_info.distances[3] = 0x3D;
attention_info.flags |= fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_CHECK_e;
if (!checkItemGet(mGiveItemNo, 1)) {
m043F = 8;
mEvtInfo.setXyCheckCB(daObjMknjD_XyCheckCB);
mEvtInfo.setXyEventCB(daObjMknjD_XyEventCB);
eventInfo.setXyCheckCB(daObjMknjD_XyCheckCB);
eventInfo.setXyEventCB(daObjMknjD_XyEventCB);
}
else {
m043F = 0;
@@ -601,12 +601,12 @@ bool daObjMknjD::Act_c::daObjMknjD_break() {
mEmitters[0] = dComIfGp_particle_set(0x8185, &current.pos, &current.angle);
GXColor emitter2Color;
emitter2Color.r = mTevStr.mColorC0.r;
emitter2Color.g = mTevStr.mColorC0.g;
emitter2Color.b = mTevStr.mColorC0.b;
emitter2Color.a = mTevStr.mColorC0.a;
emitter2Color.r = tevStr.mColorC0.r;
emitter2Color.g = tevStr.mColorC0.g;
emitter2Color.b = tevStr.mColorC0.b;
emitter2Color.a = tevStr.mColorC0.a;
mEmitters[1] = dComIfGp_particle_setProjection(0x8186, &current.pos, &current.angle, NULL, 0xFF, NULL, current.roomNo, &mTevStr.mColorK0, &emitter2Color);
mEmitters[1] = dComIfGp_particle_setProjection(0x8186, &current.pos, &current.angle, NULL, 0xFF, NULL, current.roomNo, &tevStr.mColorK0, &emitter2Color);
mEmitters[2] = dComIfGp_particle_setToon(0xA187, &current.pos, &current.angle, NULL, 0xFF, &mSmokeCBs[2]);
mSmokeCBs[2].setRateOff(0);
@@ -708,9 +708,9 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
switch (m043F) {
case 0:
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
m0500 = 1;
m043F = 0x0B;
}
@@ -783,7 +783,7 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
break;
case 3:
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
m043F = 4;
}
@@ -802,7 +802,7 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
break;
case 6:
if (mEvtInfo.checkCommandDemoAccrpt()) {
if (eventInfo.checkCommandDemoAccrpt()) {
m043F = 7;
mDoAud_bgmStop(0x1E);
@@ -833,10 +833,10 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
break;
case 8:
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
mEvtInfo.onCondition(dEvtCnd_CANTALKITEM_e);
eventInfo.onCondition(dEvtCnd_CANTALK_e);
eventInfo.onCondition(dEvtCnd_CANTALKITEM_e);
if (mEvtInfo.checkCommandTalk()) {
if (eventInfo.checkCommandTalk()) {
if (dComIfGp_event_chkTalkXY()) {
m0500 = 0;
m043F = 9;
@@ -951,11 +951,11 @@ void daObjMknjD::setMaterial(J3DMaterial* i_mat, u8 i_alpha) {
/* 000022FC-00002430 .text Draw__Q210daObjMknjD5Act_cFv */
int daObjMknjD::Act_c::Draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mBreakMdl, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mBreakMdl, &tevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mMainMdl, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mMainMdl, &tevStr);
dComIfGd_setListBG();
@@ -1019,7 +1019,7 @@ actor_process_profile_definition g_profile_Obj_MknjD = {
3,
fpcPi_CURRENT_e,
PROC_Obj_MknjD,
&g_fpcLf_Method.mBase,
&g_fpcLf_Method.base,
sizeof(daObjMknjD::Act_c),
0,
0,
+4 -4
View File
@@ -93,7 +93,7 @@ void daObjMonument::Act_c::set_mtx() {
/* 00000404-00000440 .text init_mtx__Q213daObjMonument5Act_cFv */
void daObjMonument::Act_c::init_mtx() {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
set_mtx();
}
@@ -109,8 +109,8 @@ bool daObjMonument::Act_c::_draw() {
if (dComIfGs_isSwitch(swSave, fopAcM_GetHomeRoomNo(this)))
return true;
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG1, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -159,7 +159,7 @@ actor_process_profile_definition g_profile_Obj_Monument = {
/* ListID */ 7,
/* ListPrio */ fpcPi_CURRENT_e,
/* ProcName */ PROC_Obj_Monument,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjMonument::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+21 -21
View File
@@ -202,7 +202,7 @@ namespace daObjMovebox {
cXyz pos;
mDoMtx_stack_c::multVec(&offset, &pos);
M_gnd_work[i].SetPos(&pos);
M_gnd_work[i].SetActorPid(movebox->mBase.mBsPcId);
M_gnd_work[i].SetActorPid(movebox->base.mBsPcId);
mGroundY[i] = dComIfG_Bgsp()->GroundCross(&M_gnd_work[i]);
if (mGroundY[i] > maxGroundY) {
fopAc_ac_c* groundActor = dComIfG_Bgsp()->GetActorPointer(M_gnd_work[i].GetBgIndex());
@@ -259,7 +259,7 @@ namespace daObjMovebox {
startPos += movebox->current.pos;
endPos = startPos + temp_20;
M_wall_work[i].Set(&startPos, &endPos, const_cast<Act_c*>(movebox));
M_wall_work[i].SetActorPid(movebox->mBase.mBsPcId);
M_wall_work[i].SetActorPid(movebox->base.mBsPcId);
if (dComIfG_Bgsp()->LineCross(&M_wall_work[i])) {
mWallPos[i] = M_wall_work[i].GetCross();
f32 dist = startPos.abs2(mWallPos[i]);
@@ -348,7 +348,7 @@ namespace daObjMovebox {
startPos += movebox->current.pos;
endPos = startPos + direction;
touch_work.SetActorPid(movebox->mBase.mBsPcId);
touch_work.SetActorPid(movebox->base.mBsPcId);
touch_work.Set(&startPos, &endPos, const_cast<Act_c*>(movebox));
return dComIfG_Bgsp()->LineCross(&touch_work);
}
@@ -1195,7 +1195,7 @@ namespace daObjMovebox {
/* 00001674-000016B8 .text init_mtx__Q212daObjMovebox5Act_cFv */
void Act_c::init_mtx() {
if (mpModel) {
mpModel->mBaseScale = mScale;
mpModel->mBaseScale = scale;
}
set_mtx();
}
@@ -1413,7 +1413,7 @@ namespace daObjMovebox {
);
speedF = 0.0f;
mGravity = i_attr()->m14;
gravity = i_attr()->m14;
fopAcM_posMoveF(this, NULL);
mBgc.proc_vertical(this);
cLib_offBit(mBgc.mStateFlags, static_cast<Bgc_c::State_e>(Bgc_c::BgcState_JUST_LEFT_GROUND_e | Bgc_c::BgcState_JUST_HIT_GROUND_e | Bgc_c::BgcState_JUST_HIT_WATER_e));
@@ -1574,11 +1574,11 @@ namespace daObjMovebox {
s16 angle = home.angle.y + M_dir_base[m634];
f32 scale = i_attr()->mScaleXZ;
f32 scaleMag = i_attr()->mScaleXZ;
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::YrotM(angle);
mDoMtx_stack_c::transM(0.0f, 0.0f, 10.0f);
mDoMtx_stack_c::scaleM(scale, scale, scale);
mDoMtx_stack_c::scaleM(scaleMag, scaleMag, scaleMag);
for (int i = 0; i < (int)ARRAY_SIZE(mSmokeCbs); i++) {
mDoMtx_stack_c::multVec(&base_pos[i], &mSmokeCbs[i].field_0x20);
@@ -1623,7 +1623,7 @@ namespace daObjMovebox {
/* 00002AD4-00002B48 .text mode_wait_init__Q212daObjMovebox5Act_cFv */
void Act_c::mode_wait_init() {
speedF = 0.0f;
mGravity = i_attr()->m14;
gravity = i_attr()->m14;
mpBgW->SetCrrFunc(dBgS_MoveBGProc_Trans);
clr_moment_cnt();
m634 = -1;
@@ -1698,7 +1698,7 @@ namespace daObjMovebox {
mDoMtx_stack_c::multVec(&cXyz::Zero, &temp2);
current.pos.x = temp2.x;
current.pos.z = temp2.z;
mEyePos = current.pos;
eyePos = current.pos;
sound_slip();
if (r28) {
@@ -1755,7 +1755,7 @@ namespace daObjMovebox {
s16 r3 = i_attr()->m38 * (1.0f + cM_rnd());
m604 += r3;
mGravity = (f0 * i_attr()->m28) + i_attr()->m14 + i_attr()->m34 * cM_ssin(m604) + m608;
gravity = (f0 * i_attr()->m28) + i_attr()->m14 + i_attr()->m34 * cM_ssin(m604) + m608;
m608 = 0.0f;
afl_sway();
@@ -1788,7 +1788,7 @@ namespace daObjMovebox {
particlePos.set(current.pos.x, current.pos.y + 75.0f, current.pos.z);
JPABaseEmitter* emitter = dComIfGp_particle_set(
0x3E6, &particlePos, NULL, NULL, 0xFF, NULL, -1,
&mTevStr.mColorK0, &mTevStr.mColorK0, &particle_scale
&tevStr.mColorK0, &tevStr.mColorK0, &particle_scale
);
if (emitter) {
emitter->setLifeTime(30);
@@ -1803,7 +1803,7 @@ namespace daObjMovebox {
cXyz centerPos(current.pos.x, current.pos.y + 100.0f, current.pos.z);
dBgS_ObjGndChk gndChk;
gndChk.SetPos(&centerPos);
gndChk.SetActorPid(mBase.mBsPcId);
gndChk.SetActorPid(base.mBsPcId);
dComIfG_Bgsp()->GroundCross(&gndChk);
s32 bgIndex = gndChk.GetBgIndex();
s32 mtrlSndId = 0;
@@ -1823,7 +1823,7 @@ namespace daObjMovebox {
}
}
mDoAud_seStart(i_attr()->mMoveSE, &mEyePos, mtrlSndId, mReverb);
mDoAud_seStart(i_attr()->mMoveSE, &eyePos, mtrlSndId, mReverb);
}
/* 00003BA4-00003C68 .text sound_limit__Q212daObjMovebox5Act_cFv */
@@ -1836,7 +1836,7 @@ namespace daObjMovebox {
}
}
mDoAud_seStart(i_attr()->mCantMoveSE, &mEyePos, mtrlSndId, mReverb);
mDoAud_seStart(i_attr()->mCantMoveSE, &eyePos, mtrlSndId, mReverb);
}
/* 00003C68-00003D2C .text sound_land__Q212daObjMovebox5Act_cFv */
@@ -1849,7 +1849,7 @@ namespace daObjMovebox {
}
}
mDoAud_seStart(i_attr()->mNormalFallSE, &mEyePos, mtrlSndId, mReverb);
mDoAud_seStart(i_attr()->mNormalFallSE, &eyePos, mtrlSndId, mReverb);
}
/* 00003D2C-00003D80 .text vib_land__Q212daObjMovebox5Act_cFv */
@@ -1875,7 +1875,7 @@ namespace daObjMovebox {
fopAcM_delete(this);
} else {
if (cLib_checkBit(mBgc.mStateFlags, Bgc_c::BgcState_JUST_HIT_WATER_e)) {
mDoAud_seStart(i_attr()->mWaterFallSE, &mEyePos, 0, mReverb);
mDoAud_seStart(i_attr()->mWaterFallSE, &eyePos, 0, mReverb);
}
if (mMode == MODE_WAIT) {
@@ -1896,8 +1896,8 @@ namespace daObjMovebox {
mode_proc_call();
mBgc.proc_vertical(this);
if (mBgc.mMaxGroundIdx >= 0) {
mTevStr.mRoomNo = current.roomNo;
mTevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(Bgc_c::M_gnd_work[mBgc.mMaxGroundIdx]);
tevStr.mRoomNo = current.roomNo;
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(Bgc_c::M_gnd_work[mBgc.mMaxGroundIdx]);
}
if (m648 > 0) {
@@ -1928,8 +1928,8 @@ namespace daObjMovebox {
BOOL Act_c::Draw() {
if (mpModel) {
int tevType = !i_attr()->mbUseBGTevType ? TEV_TYPE_ACTOR : TEV_TYPE_BG0;
g_env_light.settingTevStruct(tevType, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(tevType, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -1998,7 +1998,7 @@ actor_process_profile_definition g_profile_Obj_Movebox = {
/* ListID */ 3,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Movebox,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjMovebox::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,
+11 -11
View File
@@ -159,9 +159,9 @@ BOOL daObjMtest::Act_c::Create() {
mCyl.SetStts(&mStts);
mCyl.SetTgVec((cXyz&)cXyz::Zero);
mCyl.OnTgNoHitMark();
f32 scale = mScale.x < mScale.z ? mScale.x : mScale.z;
mCyl.SetR(scale * 50.0f);
mCyl.SetH(mScale.y * 100.0f);
f32 scaleMag = scale.x < scale.z ? scale.x : scale.z;
mCyl.SetR(scaleMag * 50.0f);
mCyl.SetH(scale.y * 100.0f);
}
return TRUE;
@@ -295,9 +295,9 @@ s32 daObjMtest::Act_c::Mthd_Create() {
mbAppear = chk_appear();
cXyz& scl_mult = M_scl_mult[M_type];
mScale.x *= scl_mult.x;
mScale.y *= scl_mult.y;
mScale.z *= scl_mult.z;
scale.x *= scl_mult.x;
scale.y *= scl_mult.y;
scale.z *= scl_mult.z;
phase_state = MoveBGCreate(M_arcname[M_type], dzb_data[dzb_idx][M_type], NULL, heap_size[dzb_idx][M_type]);
@@ -333,14 +333,14 @@ void daObjMtest::Act_c::set_mtx() {
if (mpModel) {
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
}
mDoMtx_stack_c::scaleM(mScale);
mDoMtx_stack_c::scaleM(scale);
mDoMtx_copy(mDoMtx_stack_c::get(), mMtx);
}
/* 00000A4C-00000A90 .text init_mtx__Q210daObjMtest5Act_cFv */
void daObjMtest::Act_c::init_mtx() {
if (mpModel) {
mpModel->setBaseScale(mScale);
mpModel->setBaseScale(scale);
}
set_mtx();
}
@@ -371,8 +371,8 @@ BOOL daObjMtest::Act_c::Execute(Mtx** pMtx) {
/* 00000B80-00000C64 .text Draw__Q210daObjMtest5Act_cFv */
BOOL daObjMtest::Act_c::Draw() {
if (mbAppear && mpModel && prm_get_arg1() != 3 && prm_get_arg1() != 4) {
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &mTevStr);
g_env_light.setLightTevColorType(mpModel, &mTevStr);
g_env_light.settingTevStruct(TEV_TYPE_BG0, &current.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
dComIfGd_setListBG();
mDoExt_modelUpdateDL(mpModel);
dComIfGd_setList();
@@ -417,7 +417,7 @@ actor_process_profile_definition g_profile_Obj_Mtest = {
/* ListID */ 3,
/* ListPrio */ fpcLy_CURRENT_e,
/* ProcName */ PROC_Obj_Mtest,
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daObjMtest::Act_c),
/* SizeOther */ 0,
/* Parameters */ 0,

Some files were not shown because too many files have changed in this diff Show More