mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-20 13:45:14 -04:00
rename fopAc_ac_c member vars to match TP decomp
This commit is contained in:
+22
-22
@@ -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
@@ -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
@@ -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(¤t.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, ¶m_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, ¶m_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,
|
||||
|
||||
@@ -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
@@ -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, ¢erPos, 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
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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, ¤t.pos, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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, ¤t.pos, rotation, &mScale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, ¤t.pos, rotation, &scale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, ¤t.pos, NULL, &scale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &scale);
|
||||
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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
@@ -190,8 +190,8 @@ BOOL daBomb_c::draw() {
|
||||
return true;
|
||||
}
|
||||
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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, ¤t.pos, rotation, &mScale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, ¤t.pos, rotation, &scale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CLOUD, ¤t.pos, NULL, &scale);
|
||||
dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &scale);
|
||||
dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.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, ¤t.pos, rotation, &mScale);
|
||||
JPABaseEmitter* emitter = dComIfGp_particle_setP1(dPa_name::ID_COMMON_LIGHT_FLASH, ¤t.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, ¤t.pos, NULL, &mScale);
|
||||
emitter = dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &mScale);
|
||||
dComIfGp_particle_setBombSmoke(0x232A, ¤t.pos, NULL, &scale);
|
||||
emitter = dComIfGp_particle_setBombSmoke(dPa_name::ID_COMMON_SMOKE_CIRCLE, ¤t.pos, NULL, &scale);
|
||||
if(emitter) {
|
||||
emitter->mLifeTime = 0x46;
|
||||
}
|
||||
|
||||
emitter = dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.pos, NULL, &mScale);
|
||||
emitter = dComIfGp_particle_setToonP1(dPa_name::ID_COMMON_SMOKE_DEBRIS, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mModel[activeIdx], &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mModel, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mWindModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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, ¤t.pos, NULL, &mScale, 0xFF, &mRippleCb);
|
||||
dComIfGp_particle_setShipTail(0x33, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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
@@ -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, ¤t.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, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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
@@ -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(¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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(¤t.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, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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(
|
||||
¤t.pos, mAcch.GetGroundH(), shadowSize, mAcch.m_gnd,
|
||||
@@ -194,7 +194,7 @@ void daItemBase_c::setShadow() {
|
||||
} else {
|
||||
mShadowId = dComIfGd_setShadow(
|
||||
mShadowId, 1, mpModel, ¤t.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()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpMorf->getModel(), &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mAnimMorf->getModel(), &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.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, ¤t.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
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model1, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model2, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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(¤t.angle.y, dstPos, mEyePos, current.angle.y, field_0xC88, temp2);
|
||||
m_jnt.lookAtTarget(¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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
@@ -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, ¤t.pos, NULL, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &mTevStr.mColorK0, &mTevStr.mColorK0);
|
||||
m0508[1] = dComIfGp_particle_set(0x819D, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(0, ¤t.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, ¤t.pos, ¤t.angle, NULL, 0xFF, NULL, fopAcM_GetRoomNo(this), &mTevStr.mColorK0, &mTevStr.mColorK0);
|
||||
(*pEmitter) = dComIfGp_particle_set(particleID, ¤t.pos, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG1, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG3, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG1, ¤t.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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -89,8 +89,8 @@ bool daObj_Bscurtain_c::_execute() {
|
||||
|
||||
bool daObj_Bscurtain_c::_draw() {
|
||||
dComIfGd_setListBG();
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model, &mTevStr);
|
||||
dDlst_texSpecmapST(&mEyePos, &mTevStr, modelData, attr().spec);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpMdl, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, ¤t.angle, NULL, 0xFF,
|
||||
NULL, current.roomNo, &mTevStr.mColorK0, &color
|
||||
NULL, current.roomNo, &tevStr.mColorK0, &color
|
||||
);
|
||||
dComIfGp_particle_setToon(
|
||||
0xA2A3, ¤t.pos, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, ¤t.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, ¤t.pos, ¤t.angle, NULL, 0xFF, NULL, current.roomNo, &mTevStr.mColorK0, &emitter2Color);
|
||||
mEmitters[1] = dComIfGp_particle_setProjection(0x8186, ¤t.pos, ¤t.angle, NULL, 0xFF, NULL, current.roomNo, &tevStr.mColorK0, &emitter2Color);
|
||||
|
||||
mEmitters[2] = dComIfGp_particle_setToon(0xA187, ¤t.pos, ¤t.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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mBreakMdl, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mBreakMdl, &tevStr);
|
||||
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mMainMdl, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG1, ¤t.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,
|
||||
|
||||
@@ -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(¢erPos);
|
||||
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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(tevType, ¤t.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,
|
||||
|
||||
@@ -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, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.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,
|
||||
|
||||
@@ -79,7 +79,7 @@ void daObjOjtree::Act_c::set_mtx() {
|
||||
|
||||
/* 000003B8-000003F4 .text init_mtx__Q211daObjOjtree5Act_cFv */
|
||||
void daObjOjtree::Act_c::init_mtx() {
|
||||
mpModel->setBaseScale(mScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
set_mtx();
|
||||
}
|
||||
|
||||
@@ -99,8 +99,8 @@ int daObjOjtree::Act_c::Execute(Mtx** pMtx) {
|
||||
|
||||
/* 0000045C-000004FC .text Draw__Q211daObjOjtree5Act_cFv */
|
||||
BOOL daObjOjtree::Act_c::Draw() {
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
dComIfGd_setListBG();
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
dComIfGd_setList();
|
||||
@@ -144,7 +144,7 @@ actor_process_profile_definition g_profile_Obj_Ojtree = {
|
||||
/* ListID */ 3,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Ojtree,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjOjtree::Act_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -114,12 +114,12 @@ namespace daObjPaper {
|
||||
|
||||
if (result == cPhs_COMPLEATE_e) {
|
||||
if (fopAcM_entrySolidHeap(this, solidHeapCB, attr(mType).mHeapSize)) {
|
||||
mEyePos.y += attr(mType).mEyeOffset;
|
||||
eyePos.y += attr(mType).mEyeOffset;
|
||||
|
||||
mAttentionInfo.mPosition.y += attr(mType).mAttentionOffset;
|
||||
mAttentionInfo.mDistances[1] = attr(mType).mAttentionDist1;
|
||||
mAttentionInfo.mDistances[3] = attr(mType).mAttentionDist2;
|
||||
mAttentionInfo.mFlags |= fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_READ_e;
|
||||
attention_info.position.y += attr(mType).mAttentionOffset;
|
||||
attention_info.distances[1] = attr(mType).mAttentionDist1;
|
||||
attention_info.distances[3] = attr(mType).mAttentionDist2;
|
||||
attention_info.flags |= fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_READ_e;
|
||||
|
||||
mMsgId = fpcM_ERROR_PROCESS_ID_e;
|
||||
|
||||
@@ -168,11 +168,11 @@ namespace daObjPaper {
|
||||
|
||||
/* 00000748-00000784 .text mode_wait__Q210daObjPaper5Act_cFv */
|
||||
void daObjPaper::Act_c::mode_wait() {
|
||||
if (mEvtInfo.mCommand == dEvtCmd_INTALK_e) {
|
||||
if (eventInfo.mCommand == dEvtCmd_INTALK_e) {
|
||||
mode_talk0_init();
|
||||
}
|
||||
else {
|
||||
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace daObjPaper {
|
||||
/* 000007A4-00000820 .text mode_talk0__Q210daObjPaper5Act_cFv */
|
||||
void daObjPaper::Act_c::mode_talk0() {
|
||||
if (mMsgId == fpcM_ERROR_PROCESS_ID_e && dComIfGp_checkCameraAttentionStatus(dComIfGp_getPlayerCameraID(0), 4)) {
|
||||
mMsgId = fopMsgM_messageSet(prm_get_msgNo(), &mEyePos);
|
||||
mMsgId = fopMsgM_messageSet(prm_get_msgNo(), &eyePos);
|
||||
|
||||
mode_talk1_init();
|
||||
}
|
||||
@@ -232,7 +232,7 @@ namespace daObjPaper {
|
||||
|
||||
/* 00000948-00000984 .text init_mtx__Q210daObjPaper5Act_cFv */
|
||||
void daObjPaper::Act_c::init_mtx() {
|
||||
mpModel->setBaseScale(mScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
set_mtx();
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ namespace daObjPaper {
|
||||
void daObjPaper::Act_c::damage_cc_proc() {
|
||||
u32 hitResult = mCylinderCol.ChkTgHit();
|
||||
if (hitResult) {
|
||||
daObj::HitSeStart(&mEyePos, current.roomNo, &mCylinderCol, 0x0D);
|
||||
daObj::HitSeStart(&eyePos, current.roomNo, &mCylinderCol, 0x0D);
|
||||
dKy_Sound_set(current.pos, 4, fopAcM_GetID(this), 100);
|
||||
|
||||
daObj::HitEff_hibana(this, &mCylinderCol);
|
||||
@@ -279,8 +279,8 @@ namespace daObjPaper {
|
||||
|
||||
/* 00000B58-00000BD4 .text _draw__Q210daObjPaper5Act_cFv */
|
||||
bool daObjPaper::Act_c::_draw() {
|
||||
g_env_light.settingTevStruct(attr(mType).mTevType == 0 ? TEV_TYPE_BG0 : TEV_TYPE_ACTOR, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(attr(mType).mTevType == 0 ? TEV_TYPE_BG0 : TEV_TYPE_ACTOR, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
|
||||
@@ -328,7 +328,7 @@ actor_process_profile_definition g_profile_Obj_Paper = {
|
||||
7,
|
||||
fpcLy_CURRENT_e,
|
||||
PROC_Obj_Paper,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daObjPaper::Act_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
@@ -35,7 +35,7 @@ void daObjPbka_c::CreateInit() {
|
||||
|
||||
/* 000001CC-0000024C .text set_mtx__11daObjPbka_cFv */
|
||||
void daObjPbka_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());
|
||||
@@ -73,7 +73,7 @@ static BOOL daObjPbka_Delete(void* i_this) {
|
||||
|
||||
BOOL daObjPbka_c::_draw() {
|
||||
dKy_tevstr_c * pTevStr;
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, pTevStr = &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, pTevStr);
|
||||
dComIfGd_setListBG();
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
@@ -118,7 +118,7 @@ actor_process_profile_definition g_profile_Obj_Pbka = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Pbka,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjPbka_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -517,8 +517,8 @@ void daObjTpost_c::eventOrder() {
|
||||
};
|
||||
|
||||
if(field_0x8F7 == 1 || field_0x8F7 == 2) {
|
||||
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
mEvtInfo.onCondition(dEvtCnd_CANTALKITEM_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANTALKITEM_e);
|
||||
|
||||
if(field_0x8F7 == 1) {
|
||||
fopAcM_orderSpeakEvent(this);
|
||||
@@ -531,12 +531,12 @@ void daObjTpost_c::eventOrder() {
|
||||
|
||||
/* 00000DC0-00000E48 .text checkOrder__12daObjTpost_cFv */
|
||||
void daObjTpost_c::checkOrder() {
|
||||
if(mEvtInfo.checkCommandDemoAccrpt()) {
|
||||
if(eventInfo.checkCommandDemoAccrpt()) {
|
||||
field_0x8F7 = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if(mEvtInfo.checkCommandTalk()) {
|
||||
if(eventInfo.checkCommandTalk()) {
|
||||
if(field_0x8F7 == 1 || field_0x8F7 == 2) {
|
||||
field_0x8F7 = 0;
|
||||
if(dComIfGp_event_chkTalkXY()) {
|
||||
@@ -553,10 +553,10 @@ void daObjTpost_c::checkOrder() {
|
||||
|
||||
/* 00000E48-00000EA4 .text setAttention__12daObjTpost_cFv */
|
||||
void daObjTpost_c::setAttention() {
|
||||
mAttentionInfo.mPosition = current.pos;
|
||||
mAttentionInfo.mPosition.y += l_HIO.attn_pos_offset;
|
||||
mEyePos = current.pos;
|
||||
mEyePos.y += l_HIO.eye_pos_offset;
|
||||
attention_info.position = current.pos;
|
||||
attention_info.position.y += l_HIO.attn_pos_offset;
|
||||
eyePos = current.pos;
|
||||
eyePos.y += l_HIO.eye_pos_offset;
|
||||
}
|
||||
|
||||
/* 00000EA4-0000100C .text setAnm__12daObjTpost_cFScb */
|
||||
@@ -632,7 +632,7 @@ void daObjTpost_c::setAnm(s8 param_1, bool param_2) {
|
||||
/* 0000100C-00001094 .text setMtx__12daObjTpost_cFv */
|
||||
void daObjTpost_c::setMtx() {
|
||||
J3DModel* pModel = mMorf->getModel();
|
||||
pModel->setBaseScale(mScale);
|
||||
pModel->setBaseScale(scale);
|
||||
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(shape_angle.y);
|
||||
@@ -857,7 +857,7 @@ bool daObjTpost_c::_execute() {
|
||||
mAcch.CrrPos(*dComIfG_Bgsp());
|
||||
mStts.Move();
|
||||
if(mCyl.ChkTgHit()) {
|
||||
daObj::HitSeStart(&mEyePos, current.roomNo, &mCyl, 0x0B);
|
||||
daObj::HitSeStart(&eyePos, current.roomNo, &mCyl, 0x0B);
|
||||
}
|
||||
daObj::HitEff_kikuzu(this, &mCyl);
|
||||
fopAcM_rollPlayerCrash(this, 40.0f, 7);
|
||||
@@ -882,8 +882,8 @@ bool daObjTpost_c::_draw() {
|
||||
}
|
||||
|
||||
J3DModel* pModel = mMorf->getModel();
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(pModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(pModel, &tevStr);
|
||||
mMorf->entryDL();
|
||||
dComIfGd_setSimpleShadow2(¤t.pos, mAcch.GetGroundH(), 40.0f, mAcch.m_gnd, shape_angle.y, 1.0f, 0);
|
||||
|
||||
@@ -916,9 +916,9 @@ void daObjTpost_c::createInit() {
|
||||
mCurrMsgBsPcId = fpcM_ERROR_PROCESS_ID_e;
|
||||
mpCurrMsg = 0;
|
||||
|
||||
mAttentionInfo.mDistances[1] = 5;
|
||||
mAttentionInfo.mDistances[3] = 6;
|
||||
mAttentionInfo.mFlags = fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_CHECK_e;
|
||||
attention_info.distances[1] = 5;
|
||||
attention_info.distances[3] = 6;
|
||||
attention_info.flags = fopAc_Attn_LOCKON_TALK_e | fopAc_Attn_ACTION_TALK_e | fopAc_Attn_TALKFLAG_CHECK_e;
|
||||
|
||||
setAnm(1, false);
|
||||
setMtx();
|
||||
@@ -938,7 +938,7 @@ void daObjTpost_c::createInit() {
|
||||
mAcchCir.SetWall(30.0f, 30.0f);
|
||||
mAcch.Set(¤t.pos, &old.pos, this, 1, &mAcchCir, &speed);
|
||||
mAcch.SetRoofNone();
|
||||
mGravity = -4.5f;
|
||||
gravity = -4.5f;
|
||||
|
||||
mEventCut.setActorInfo2("Tpost", this);
|
||||
}
|
||||
@@ -1010,7 +1010,7 @@ actor_process_profile_definition g_profile_OBJ_TORIPOST = {
|
||||
3,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_OBJ_TORIPOST,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daObjTpost_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
@@ -29,7 +29,7 @@ BOOL daObjTower_c::CreateHeap() {
|
||||
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(shape_angle.y);
|
||||
mDoMtx_stack_c::scaleM(mScale.x, mScale.y, mScale.z);
|
||||
mDoMtx_stack_c::scaleM(scale.x, scale.y, scale.z);
|
||||
mDoMtx_copy(mDoMtx_stack_c::get(), mMtx);
|
||||
|
||||
mpBgW = new dBgW();
|
||||
@@ -53,7 +53,7 @@ void daObjTower_c::CreateInit() {
|
||||
|
||||
/* 0000028C-0000030C .text set_mtx__12daObjTower_cFv */
|
||||
void daObjTower_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());
|
||||
@@ -104,8 +104,8 @@ static BOOL daObjTower_Delete(void* i_this) {
|
||||
}
|
||||
|
||||
BOOL daObjTower_c::_draw() {
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
dComIfGd_setListBG();
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
@@ -120,8 +120,8 @@ static BOOL daObjTower_Draw(void* i_this) {
|
||||
}
|
||||
|
||||
BOOL daObjTower_c::_execute() {
|
||||
if (mDemoActorId != 0) {
|
||||
dDemo_actor_c* pdVar1 = dComIfGp_demo_getActor(mDemoActorId);
|
||||
if (demoActorID != 0) {
|
||||
dDemo_actor_c* pdVar1 = dComIfGp_demo_getActor(demoActorID);
|
||||
if (pdVar1 != NULL && pdVar1->checkEnable(0x02)) {
|
||||
current.pos = pdVar1->mTranslation;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ struct actor_process_profile_definition g_profile_Obj_Tower = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Tower,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjTower_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -128,7 +128,7 @@ void daObjVfan::Act_c::set_mtx() {
|
||||
|
||||
/* 00000680-000006BC .text init_mtx__Q29daObjVfan5Act_cFv */
|
||||
void daObjVfan::Act_c::init_mtx() {
|
||||
mpModel->setBaseScale(mScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
|
||||
set_mtx();
|
||||
}
|
||||
@@ -166,7 +166,7 @@ int daObjVfan::Act_c::Execute(Mtx** mtx) {
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (mEvtInfo.checkCommandDemoAccrpt()) {
|
||||
if (eventInfo.checkCommandDemoAccrpt()) {
|
||||
mDoAud_seStart(JA_SE_READ_RIDDLE_1);
|
||||
fopAcM_seStartCurrent(this, JA_SE_OBJ_GN_SW_DR_LIGHT, 0);
|
||||
|
||||
@@ -203,8 +203,8 @@ int daObjVfan::Act_c::Execute(Mtx** mtx) {
|
||||
|
||||
/* 00000C74-00000D20 .text Draw__Q29daObjVfan5Act_cFv */
|
||||
BOOL daObjVfan::Act_c::Draw() {
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
dComIfGd_setListBG();
|
||||
// This comparison is necessary to generate "cmplwi 0x1; bne" instead of "cmplwi 0x0; beq"
|
||||
@@ -247,7 +247,7 @@ actor_process_profile_definition g_profile_Obj_Vfan = {
|
||||
/* ListID */ 3,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Vfan,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjVfan::Act_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -71,7 +71,7 @@ actor_process_profile_definition g_profile_Obj_Wood = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Wood,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjWood::Act_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -187,7 +187,7 @@ void daObjZouk::Act_c::set_mtx() {
|
||||
cXyz trans(0.0f, 0.0f, 0.0f);
|
||||
mDoMtx_stack_c::transS(trans);
|
||||
mDoMtx_copy(mDoMtx_stack_c::get(), mBgMtx);
|
||||
M_anm->getModel()->setBaseScale(mScale);
|
||||
M_anm->getModel()->setBaseScale(scale);
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::ZXYrotM(shape_angle);
|
||||
M_anm->getModel()->setBaseTRMtx(mDoMtx_stack_c::get());
|
||||
@@ -205,7 +205,7 @@ void daObjZouk::Act_c::play_stop_joint_anime() {
|
||||
|
||||
/* 00001270-000012F0 .text jokai_demo__Q29daObjZouk5Act_cFv */
|
||||
BOOL daObjZouk::Act_c::jokai_demo() {
|
||||
if (dComIfGp_demo_getActor(mDemoActorId) != NULL) {
|
||||
if (dComIfGp_demo_getActor(demoActorID) != NULL) {
|
||||
dDemo_setDemoData(this, 0x6a, M_anm, "VzouK", 0, 0, 0, 0);
|
||||
return true;
|
||||
} else {
|
||||
@@ -266,10 +266,10 @@ static void dummy() {
|
||||
|
||||
/* 00001510-000015F0 .text _draw__Q29daObjZouk5Act_cFv */
|
||||
bool daObjZouk::Act_c::_draw() {
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &tevStr);
|
||||
dComIfGd_setListBG();
|
||||
g_env_light.setLightTevColorType(M_anm->getModel(), &mTevStr);
|
||||
setEffectMtx(&mEyePos, 0.5f);
|
||||
g_env_light.setLightTevColorType(M_anm->getModel(), &tevStr);
|
||||
setEffectMtx(&eyePos, 0.5f);
|
||||
M_anm->updateDL();
|
||||
dComIfGd_setList();
|
||||
dComIfGd_setSimpleShadow2(¤t.pos, mGndY, 388.0f, mGndChk, shape_angle.y, 1.0f, dDlst_shadowControl_c::getSimpleTex());
|
||||
@@ -277,20 +277,20 @@ bool daObjZouk::Act_c::_draw() {
|
||||
}
|
||||
|
||||
/* 000015F0-00001804 .text setEffectMtx__Q29daObjZouk5Act_cFPC4cXyzf */
|
||||
void daObjZouk::Act_c::setEffectMtx(const cXyz* pos, f32 scale) {
|
||||
void daObjZouk::Act_c::setEffectMtx(const cXyz* pos, f32 scaleMag) {
|
||||
static Mtx mtx_adj = {
|
||||
0.5f, 0.0f, 0.0f, 0.5f,
|
||||
0.0f, -0.5f, 0.0f, 0.5f,
|
||||
0.0f, 0.0f, 1.0f, 0.0f,
|
||||
};
|
||||
|
||||
f32 inv = 1.0f / scale;
|
||||
f32 inv = 1.0f / scaleMag;
|
||||
camera_class * camera = dCam_getCamera();
|
||||
cXyz lookDir = *pos - camera->mLookat.mEye;
|
||||
cXyz lightDir;
|
||||
cXyz refl;
|
||||
|
||||
dKyr_get_vectle_calc(&mTevStr.mLightPosWorld, (cXyz*)pos, &lightDir);
|
||||
dKyr_get_vectle_calc(&tevStr.mLightPosWorld, (cXyz*)pos, &lightDir);
|
||||
C_VECHalfAngle(&lookDir, &lightDir, &refl);
|
||||
Mtx lookatMtx;
|
||||
C_MTXLookAt(lookatMtx, &cXyz::Zero, &cXyz::BaseY, &refl);
|
||||
@@ -350,7 +350,7 @@ actor_process_profile_definition g_profile_Obj_Zouk = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_Obj_Zouk,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daObjZouk::Act_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -59,9 +59,9 @@ BOOL daPy_lk_c::procFoodThrow_init() {
|
||||
f32 offset2 = cM_scos(shape_angle.y) * 150.0f;
|
||||
cXyz start;
|
||||
start.set(
|
||||
mAttentionInfo.mPosition.x,
|
||||
mAttentionInfo.mPosition.y - 50.0f,
|
||||
mAttentionInfo.mPosition.z
|
||||
attention_info.position.x,
|
||||
attention_info.position.y - 50.0f,
|
||||
attention_info.position.z
|
||||
);
|
||||
cXyz end;
|
||||
end.set(
|
||||
|
||||
@@ -305,7 +305,7 @@ void daPy_lk_c::seStartSwordCut(u32 i_seNum) {
|
||||
|
||||
/* 8010314C-801031A4 .text voiceStart__9daPy_lk_cFUl */
|
||||
void daPy_lk_c::voiceStart(u32 param_1) {
|
||||
mDoAud_linkVoiceStart(param_1, &mEyePos, mDoAud_getLinkVoiceVowel(param_1), mReverb);
|
||||
mDoAud_linkVoiceStart(param_1, &eyePos, mDoAud_getLinkVoiceVowel(param_1), mReverb);
|
||||
}
|
||||
|
||||
/* 801031A4-801031DC .text itemButton__9daPy_lk_cCFv */
|
||||
@@ -737,7 +737,7 @@ void daPy_lk_c::setDrawHandModel() {
|
||||
|
||||
/* 80106BD0-80106C40 .text entryDLSetLight__9daPy_lk_cFP8J3DModelUl */
|
||||
void daPy_lk_c::entryDLSetLight(J3DModel* model, u32 param_2) {
|
||||
g_env_light.setLightTevColorType(model, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model, &tevStr);
|
||||
if (param_2 != 0) {
|
||||
dMat_control_c::iceEntryDL(model, -1, NULL);
|
||||
} else {
|
||||
@@ -747,7 +747,7 @@ void daPy_lk_c::entryDLSetLight(J3DModel* model, u32 param_2) {
|
||||
|
||||
/* 80106C40-80106CB0 .text updateDLSetLight__9daPy_lk_cFP8J3DModelUl */
|
||||
void daPy_lk_c::updateDLSetLight(J3DModel* model, u32 param_2) {
|
||||
g_env_light.setLightTevColorType(model, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model, &tevStr);
|
||||
if (param_2 != 0) {
|
||||
dMat_control_c::iceUpdateDL(model, -1, NULL);
|
||||
} else {
|
||||
@@ -786,7 +786,7 @@ BOOL daPy_lk_c::draw() {
|
||||
if (mSightPacket.getDrawFlg()) {
|
||||
mSightPacket.setSight();
|
||||
}
|
||||
g_env_light.settingTevStruct(TEV_TYPE_PLAYER, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_PLAYER, ¤t.pos, &tevStr);
|
||||
if (checkPlayerNoDraw()) {
|
||||
offBodyEffect();
|
||||
drawMirrorLightModel();
|
||||
@@ -801,11 +801,11 @@ BOOL daPy_lk_c::draw() {
|
||||
|
||||
s16 origFogR, origFogG, origFogB;
|
||||
f32 origFogStartZ, origFogEndZ;
|
||||
origFogR = mTevStr.mFogColor.r;
|
||||
origFogG = mTevStr.mFogColor.g;
|
||||
origFogB = mTevStr.mFogColor.b;
|
||||
origFogStartZ = mTevStr.mFogStartZ;
|
||||
origFogEndZ = mTevStr.mFogEndZ;
|
||||
origFogR = tevStr.mFogColor.r;
|
||||
origFogG = tevStr.mFogColor.g;
|
||||
origFogB = tevStr.mFogColor.b;
|
||||
origFogStartZ = tevStr.mFogStartZ;
|
||||
origFogEndZ = tevStr.mFogEndZ;
|
||||
if (!checkFreezeState() && mCurProc != daPyProc_ELEC_DAMAGE_e &&
|
||||
(daPy_dmEcallBack_c::checkCurse() || checkConfuse() || mDamageWaitTimer > 0)
|
||||
) {
|
||||
@@ -813,16 +813,16 @@ BOOL daPy_lk_c::draw() {
|
||||
mDoLib_pos2camera(¤t.pos, &sp18);
|
||||
f32 f2 = fabsf(cM_ssin(g_Counter.mTimer * 0x800));
|
||||
if (daPy_dmEcallBack_c::checkCurse() || checkConfuse()) {
|
||||
mTevStr.mFogColor.r = 0x80;
|
||||
mTevStr.mFogColor.g = 0x00;
|
||||
mTevStr.mFogColor.b = 0xFF;
|
||||
tevStr.mFogColor.r = 0x80;
|
||||
tevStr.mFogColor.g = 0x00;
|
||||
tevStr.mFogColor.b = 0xFF;
|
||||
} else {
|
||||
mTevStr.mFogColor.r = 0xFF;
|
||||
mTevStr.mFogColor.g = 0x3C;
|
||||
mTevStr.mFogColor.b = 0x3C;
|
||||
tevStr.mFogColor.r = 0xFF;
|
||||
tevStr.mFogColor.g = 0x3C;
|
||||
tevStr.mFogColor.b = 0x3C;
|
||||
}
|
||||
mTevStr.mFogStartZ = -sp18.z - 200.0f + 200.0f * f2;
|
||||
mTevStr.mFogEndZ = mTevStr.mFogStartZ + 300.0f;
|
||||
tevStr.mFogStartZ = -sp18.z - 200.0f + 200.0f * f2;
|
||||
tevStr.mFogEndZ = tevStr.mFogStartZ + 300.0f;
|
||||
}
|
||||
|
||||
u16 material_num = mpAnmTexPatternData->getUpdateMaterialNum();
|
||||
@@ -845,7 +845,7 @@ BOOL daPy_lk_c::draw() {
|
||||
mpCLModelData->setTexMtxAnimator(mpTexScrollResData, m_texMtxAnm, NULL);
|
||||
mpAnmTexPatternData->setFrame(m3530);
|
||||
mpTexScrollResData->setFrame(m3532);
|
||||
g_env_light.setLightTevColorType(mpCLModel, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpCLModel, &tevStr);
|
||||
J3DJoint* link_root_joint = mpCLModelData->getJointNodePointer(0x00); // link_root joint
|
||||
mpCLModelData->getJointNodePointer(0x08)->getMesh()->getShape()->hide(); // cl_LhandA joint
|
||||
mpCLModelData->getJointNodePointer(0x0C)->getMesh()->getShape()->hide(); // cl_RhandA joint
|
||||
@@ -984,11 +984,11 @@ BOOL daPy_lk_c::draw() {
|
||||
entryDLSetLight(mpHbootsModels[1], mNoResetFlg1 & daPyFlg1_FREEZE_STATE);
|
||||
}
|
||||
|
||||
mTevStr.mFogColor.r = origFogR;
|
||||
mTevStr.mFogColor.g = origFogG;
|
||||
mTevStr.mFogColor.b = origFogB;
|
||||
mTevStr.mFogStartZ = origFogStartZ;
|
||||
mTevStr.mFogEndZ = origFogEndZ;
|
||||
tevStr.mFogColor.r = origFogR;
|
||||
tevStr.mFogColor.g = origFogG;
|
||||
tevStr.mFogColor.b = origFogB;
|
||||
tevStr.mFogStartZ = origFogStartZ;
|
||||
tevStr.mFogEndZ = origFogEndZ;
|
||||
|
||||
if (!r24) {
|
||||
if (mCurProc == daPyProc_CUT_F_e || mCurProc == daPyProc_BT_VERTICAL_JUMP_CUT_e) {
|
||||
@@ -1196,7 +1196,7 @@ void daPy_lk_c::posMove() {
|
||||
/* 80109E80-80109ED8 .text setShapeAngleToAtnActor__9daPy_lk_cFv */
|
||||
void daPy_lk_c::setShapeAngleToAtnActor() {
|
||||
if (mpAttnActorLockOn != NULL) {
|
||||
s16 targetAngle = cLib_targetAngleY(¤t.pos, &mpAttnActorLockOn->mEyePos);
|
||||
s16 targetAngle = cLib_targetAngleY(¤t.pos, &mpAttnActorLockOn->eyePos);
|
||||
cLib_addCalcAngleS(&shape_angle.y, targetAngle, 2, 0x2000, 0x800);
|
||||
}
|
||||
}
|
||||
@@ -2059,7 +2059,7 @@ BOOL daPy_lk_c::commonProcInit(daPy_PROC proc) {
|
||||
setSmallFanModel();
|
||||
} else if (mCurProc == daPyProc_FAN_GLIDE_e) {
|
||||
deleteEquipItem(FALSE);
|
||||
mMaxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
maxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
setSmallFanModel();
|
||||
mHeldItemType = dItem_DEKU_LEAF_e;
|
||||
m35F0 = m3688.y;
|
||||
@@ -2067,7 +2067,7 @@ BOOL daPy_lk_c::commonProcInit(daPy_PROC proc) {
|
||||
m34E0 = 0;
|
||||
m34E4 = 0;
|
||||
} else if (mCurProc == daPyProc_SLOW_FALL_e) {
|
||||
mMaxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
maxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
} else if (mCurProc == daPyProc_DEMO_TOOL_e) {
|
||||
resetDemoAnime = TRUE;
|
||||
speed.y = 0.0f;
|
||||
@@ -2125,7 +2125,7 @@ BOOL daPy_lk_c::commonProcInit(daPy_PROC proc) {
|
||||
dComIfGp_clearPlayerStatus0(0, ~(daPyStts0_BOOMERANG_WAIT_e | daPyStts0_UNK10_e));
|
||||
dComIfGp_clearPlayerStatus1(0, ~(daPyStts1_SAIL_e | daPyStts1_UNK8000_e | daPyStts1_UNK40000_e) & 0x000FFFFF);
|
||||
|
||||
mGravity = daPy_HIO_autoJump_c0::m.field_0xC;
|
||||
gravity = daPy_HIO_autoJump_c0::m.field_0xC;
|
||||
m34F2 = 0;
|
||||
m34F4 = 0;
|
||||
onResetFlg0(daPyRFlg0_UNK8000000);
|
||||
@@ -2734,11 +2734,11 @@ void daPy_lk_c::autoGroundHit() {
|
||||
/* 8011AD9C-8011AE20 .text checkAttentionPosAngle__9daPy_lk_cFP10fopAc_ac_cPP4cXyz */
|
||||
BOOL daPy_lk_c::checkAttentionPosAngle(fopAc_ac_c* actor, cXyz** pOutPos) {
|
||||
if (actor) {
|
||||
s16 targetAngle = cLib_targetAngleY(¤t.pos, &actor->mEyePos);
|
||||
s16 targetAngle = cLib_targetAngleY(¤t.pos, &actor->eyePos);
|
||||
int angleDiff = cLib_distanceAngleS(targetAngle, m34DE);
|
||||
if (angleDiff <= 0x6000) {
|
||||
*pOutPos = &actor->mEyePos;
|
||||
if (actor->mGroup == fopAc_ENEMY_e) {
|
||||
*pOutPos = &actor->eyePos;
|
||||
if (actor->group == fopAc_ENEMY_e) {
|
||||
onNoResetFlg1(daPyFlg1_UNK400);
|
||||
}
|
||||
return TRUE;
|
||||
@@ -3107,7 +3107,7 @@ BOOL daPy_lk_c::execute() {
|
||||
}
|
||||
|
||||
if (checkNoControll()) {
|
||||
mAttentionInfo.mFlags = 0;
|
||||
attention_info.flags = 0;
|
||||
fopAcM_SetStatusMap(this, 0x10);
|
||||
if (!dComIfGp_checkPlayerStatus0(0, daPyStts0_SHIP_RIDE_e)) {
|
||||
mStts.SetWeight(0xFF);
|
||||
@@ -3116,7 +3116,7 @@ BOOL daPy_lk_c::execute() {
|
||||
mStts.SetWeight(120);
|
||||
}
|
||||
} else {
|
||||
mAttentionInfo.mFlags = ~0;
|
||||
attention_info.flags = ~0;
|
||||
fopAcM_SetStatusMap(this, 0x01);
|
||||
mStts.SetWeight(120);
|
||||
}
|
||||
@@ -3137,7 +3137,7 @@ BOOL daPy_lk_c::execute() {
|
||||
|
||||
if (dComIfGp_event_runCheck()) {
|
||||
mStaffIdx = dComIfGp_evmng_getMyStaffId("Link", this);
|
||||
if (mEvtInfo.checkCommandDoor() && !dComIfGp_event_chkEventFlag(0x4) && mHeldItemType == 0x101) {
|
||||
if (eventInfo.checkCommandDoor() && !dComIfGp_event_chkEventFlag(0x4) && mHeldItemType == 0x101) {
|
||||
fopAc_ac_c* equipActor = mActorKeepEquip.getActor();
|
||||
if (equipActor) {
|
||||
s16 angle = shape_angle.y + 0x8000;
|
||||
@@ -3200,7 +3200,7 @@ BOOL daPy_lk_c::execute() {
|
||||
daPy_matAnm_c::decMorfFrame();
|
||||
daPy_matAnm_c::decMabaTimer();
|
||||
|
||||
if (mCurProc == daPyProc_BOTTLE_SWING_e && mEvtInfo.checkCommandCatch()) {
|
||||
if (mCurProc == daPyProc_BOTTLE_SWING_e && eventInfo.checkCommandCatch()) {
|
||||
mDemo.setDemoType(5);
|
||||
}
|
||||
|
||||
@@ -3429,8 +3429,8 @@ BOOL daPy_lk_c::execute() {
|
||||
|
||||
equipActor = mActorKeepEquip.getActor();
|
||||
if (equipActor) {
|
||||
equipActor->mTevStr.mRoomNo = mTevStr.mRoomNo;
|
||||
equipActor->mTevStr.mEnvrIdxOverride = mTevStr.mEnvrIdxOverride;
|
||||
equipActor->tevStr.mRoomNo = tevStr.mRoomNo;
|
||||
equipActor->tevStr.mEnvrIdxOverride = tevStr.mEnvrIdxOverride;
|
||||
equipActor->current.roomNo = roomNo;
|
||||
}
|
||||
|
||||
@@ -3493,7 +3493,7 @@ BOOL daPy_lk_c::execute() {
|
||||
}
|
||||
}
|
||||
|
||||
cMtx_multVec(mpCLModel->getAnmMtx(0x13), &l_eye_offset, &mEyePos);
|
||||
cMtx_multVec(mpCLModel->getAnmMtx(0x13), &l_eye_offset, &eyePos);
|
||||
|
||||
m36D0 = mSwordTopPos;
|
||||
m36DC = m36C4;
|
||||
@@ -3533,12 +3533,12 @@ BOOL daPy_lk_c::execute() {
|
||||
|
||||
if (!checkNoResetFlg0((daPy_FLG0)(daPyFlg0_UNK20000000 | daPyFlg0_UNK80000000))) {
|
||||
if (mAcch.ChkGroundHit() && !daPy_lk_c::checkPlayerFly()) {
|
||||
mEvtInfo.onCondition(dEvtCnd_CANTALK_e | dEvtCnd_CANDOOR_e | dEvtCnd_CANGETITEM_e | dEvtCnd_UNK10_e | dEvtCnd_CANCATCH_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANTALK_e | dEvtCnd_CANDOOR_e | dEvtCnd_CANGETITEM_e | dEvtCnd_UNK10_e | dEvtCnd_CANCATCH_e);
|
||||
} else if (dComIfGp_checkPlayerStatus0(0, daPyStts0_SHIP_RIDE_e) || (checkModeFlg(ModeFlg_SWIM) && checkNoResetFlg0(daPyFlg0_UNK100))) {
|
||||
mEvtInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANTALK_e);
|
||||
}
|
||||
}
|
||||
mEvtInfo.onCondition(dEvtCnd_CANGETITEM_e);
|
||||
eventInfo.onCondition(dEvtCnd_CANGETITEM_e);
|
||||
|
||||
JPABaseEmitter* emitter = mSmokeEcallBack.getEmitter();
|
||||
if (emitter) {
|
||||
@@ -4063,8 +4063,8 @@ void daPy_lk_c::playerInit() {
|
||||
mAcch.ClrRoofNone();
|
||||
mAcch.SetRoofCrrHeight(125.0f);
|
||||
field_0x2a8 = daPy_HIO_move_c0::m.field_0x18;
|
||||
mGravity = daPy_HIO_autoJump_c0::m.field_0xC;
|
||||
mMaxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
gravity = daPy_HIO_autoJump_c0::m.field_0xC;
|
||||
maxFallSpeed = daPy_HIO_autoJump_c0::m.field_0x10;
|
||||
mAcchCir[0].SetWall(30.1f, 35.0f);
|
||||
mAcchCir[1].SetWall(89.9f, 35.0f);
|
||||
mAcchCir[2].SetWall(125.0f, 35.0f);
|
||||
@@ -4256,11 +4256,11 @@ int phase_1(daPy_lk_c* i_this) {
|
||||
dComIfGp_setLinkPlayer(i_this);
|
||||
|
||||
fopAcM_setStageLayer(i_this);
|
||||
i_this->mAttentionInfo.mFlags = ~0;
|
||||
i_this->attention_info.flags = ~0;
|
||||
|
||||
i_this->mAttentionInfo.mPosition.x = i_this->current.pos.x;
|
||||
i_this->mAttentionInfo.mPosition.y = i_this->current.pos.y + 125.0f;
|
||||
i_this->mAttentionInfo.mPosition.z = i_this->current.pos.z;
|
||||
i_this->attention_info.position.x = i_this->current.pos.x;
|
||||
i_this->attention_info.position.y = i_this->current.pos.y + 125.0f;
|
||||
i_this->attention_info.position.z = i_this->current.pos.z;
|
||||
|
||||
return cPhs_NEXT_e;
|
||||
}
|
||||
@@ -4624,7 +4624,7 @@ actor_process_profile_definition2 g_profile_PLAYER = {
|
||||
/* ListID */ 5,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_PLAYER,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daPy_lk_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -40,7 +40,7 @@ BOOL daPy_npc_c::check_moveStop() {
|
||||
speedF = 0.0f;
|
||||
m4E8 = 0;
|
||||
}
|
||||
if (dComIfGp_getPlayer(0)->mEvtInfo.mCommand != dEvtCmd_INDOOR_e) {
|
||||
if (dComIfGp_getPlayer(0)->eventInfo.mCommand != dEvtCmd_INDOOR_e) {
|
||||
offNpcCallCommand();
|
||||
}
|
||||
return TRUE;
|
||||
@@ -51,7 +51,7 @@ BOOL daPy_npc_c::check_moveStop() {
|
||||
/* 8015A524-8015A590 .text setRestart__10daPy_npc_cFSc */
|
||||
void daPy_npc_c::setRestart(s8 option) {
|
||||
if (option == dComIfGs_getRestartOption()) {
|
||||
bool playerInDoor = dComIfGp_getPlayer(0)->mEvtInfo.checkCommandDoor();
|
||||
bool playerInDoor = dComIfGp_getPlayer(0)->eventInfo.checkCommandDoor();
|
||||
s8 roomNo = current.roomNo;
|
||||
s8 optionRoomNo = dComIfGs_getRestartOptionRoomNo();
|
||||
if (!playerInDoor && roomNo != optionRoomNo) {
|
||||
@@ -162,7 +162,7 @@ BOOL daPy_npc_c::checkNowPosMove(const char* pName) {
|
||||
if (!dComIfGp_event_runCheck()) {
|
||||
return TRUE;
|
||||
}
|
||||
if (mEvtInfo.checkCommandTalk()) {
|
||||
if (eventInfo.checkCommandTalk()) {
|
||||
return TRUE;
|
||||
}
|
||||
if (isEventAccept() && !isReturnLink()) {
|
||||
@@ -186,12 +186,12 @@ void daPy_npc_c::drawDamageFog() {
|
||||
cXyz camPos;
|
||||
mDoLib_pos2camera(¤t.pos, &camPos);
|
||||
f32 adjust = fabsf(cM_ssin(g_Counter.mTimer * 0x800));
|
||||
mTevStr.mFogColor.r = 255;
|
||||
mTevStr.mFogColor.g = 60;
|
||||
mTevStr.mFogColor.b = 60;
|
||||
tevStr.mFogColor.r = 255;
|
||||
tevStr.mFogColor.g = 60;
|
||||
tevStr.mFogColor.b = 60;
|
||||
|
||||
mTevStr.mFogStartZ = (-camPos.z - 200.0f) + 200.0f * adjust;
|
||||
mTevStr.mFogEndZ = mTevStr.mFogStartZ + 300.0f;
|
||||
tevStr.mFogStartZ = (-camPos.z - 200.0f) + 200.0f * adjust;
|
||||
tevStr.mFogEndZ = tevStr.mFogStartZ + 300.0f;
|
||||
}
|
||||
|
||||
/* 8015AD20-8015AEF8 .text chkMoveBlock__10daPy_npc_cFP4cXyz */
|
||||
|
||||
@@ -57,7 +57,7 @@ void daPy_lk_c::initShipRideUseItem(int param_1, int param_2) {
|
||||
return;
|
||||
}
|
||||
dComIfGp_getShipActor()->m034D = 2; // TODO probably inline setter
|
||||
mGravity = 0.0f;
|
||||
gravity = 0.0f;
|
||||
speed.y = 0.0f;
|
||||
if (param_1 == 1) {
|
||||
setOldRootQuaternion(0, 0x4000, 0);
|
||||
|
||||
@@ -208,9 +208,9 @@ BOOL daPy_lk_c::procTactWait_init(int r30) {
|
||||
f32 f31 = 200.0f * cM_ssin(shape_angle.y);
|
||||
f32 f30 = 200.0f * cM_scos(shape_angle.y);
|
||||
cXyz startPos(
|
||||
mAttentionInfo.mPosition.x,
|
||||
mAttentionInfo.mPosition.y - 50.0f,
|
||||
mAttentionInfo.mPosition.z
|
||||
attention_info.position.x,
|
||||
attention_info.position.y - 50.0f,
|
||||
attention_info.position.z
|
||||
);
|
||||
cXyz endPos(
|
||||
startPos.x + f31,
|
||||
|
||||
@@ -43,7 +43,7 @@ static dCcD_SrcCyl l_cyl_src = {
|
||||
|
||||
/* 00000078-000000F8 .text set_mtx__12daRaceItem_cFv */
|
||||
void daRaceItem_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());
|
||||
@@ -90,9 +90,9 @@ BOOL daRaceItem_c::CreateInit() {
|
||||
mCyl.SetStts(&mStts);
|
||||
f32 height = getHeight();
|
||||
f32 radius = getR();
|
||||
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);
|
||||
@@ -129,8 +129,8 @@ static BOOL daRaceItem_Execute(daRaceItem_c* i_this) {
|
||||
BOOL daRaceItem_c::execute() {
|
||||
field_0x634++;
|
||||
animPlay(1.0f, 1.0f, 1.0f, 1.0f, 1.0f);
|
||||
mEyePos = current.pos;
|
||||
mEyePos.y += mScale.x * dItem_data::getH(m_itemNo) / 2.0f;
|
||||
eyePos = current.pos;
|
||||
eyePos.y += scale.x * dItem_data::getH(m_itemNo) / 2.0f;
|
||||
|
||||
daPy_lk_c* player;
|
||||
cXyz headPos;
|
||||
@@ -153,12 +153,12 @@ BOOL daRaceItem_c::execute() {
|
||||
current.angle.x = 0;
|
||||
shape_angle.z = 0;
|
||||
shape_angle.x = 0;
|
||||
mScale.setall(1.0f);
|
||||
scale.setall(1.0f);
|
||||
|
||||
field_0x63C = 0xD;
|
||||
|
||||
speed.set(0.0f, 23.0f, 0.0f);
|
||||
mGravity = -6.0f;
|
||||
gravity = -6.0f;
|
||||
|
||||
mCyl.ClrTgHit();
|
||||
mCyl.ClrCoHit();
|
||||
@@ -240,7 +240,7 @@ BOOL daRaceItem_c::execute() {
|
||||
}
|
||||
|
||||
if(!checkOffsetPos()) {
|
||||
mScale.setall(1.0f);
|
||||
scale.setall(1.0f);
|
||||
}
|
||||
|
||||
set_mtx();
|
||||
@@ -277,7 +277,7 @@ extern actor_process_profile_definition g_profile_RACEITEM = {
|
||||
7,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_RACEITEM,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daRaceItem_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
+32
-32
@@ -427,7 +427,7 @@ bool daRd_c::createArrowHeap() {
|
||||
};
|
||||
mpJntHit = JntHit_create(mpMorf->getModel(), search_data, ARRAY_SIZE(search_data));
|
||||
if (mpJntHit) {
|
||||
mJntHit = mpJntHit;
|
||||
jntHit = mpJntHit;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
@@ -610,7 +610,7 @@ bool daRd_c::checkTgHit() {
|
||||
fopAcM_seStart(this, JA_SE_LK_ARROW_HIT, 0x44);
|
||||
mEnemyIce.mFreezeDuration = l_HIO.m4A;
|
||||
enemy_fire_remove(&mEnemyFire);
|
||||
mHealth += 4;
|
||||
health += 4;
|
||||
mHitType = 9;
|
||||
break;
|
||||
case AT_TYPE_FIRE_ARROW:
|
||||
@@ -645,7 +645,7 @@ bool daRd_c::checkTgHit() {
|
||||
}
|
||||
break;
|
||||
case AT_TYPE_GRAPPLING_HOOK:
|
||||
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &mAttentionInfo.mPosition);
|
||||
dComIfGp_particle_set(dPa_name::ID_COMMON_STARS_BLOW, &attention_info.position);
|
||||
fopAcM_seStart(this, JA_SE_LK_W_WEP_HIT, 0x44);
|
||||
mHitType = 0xE;
|
||||
r29 = false;
|
||||
@@ -659,11 +659,11 @@ bool daRd_c::checkTgHit() {
|
||||
if (r29) {
|
||||
cXyz* hitPos = mCyl.GetTgHitPosP();
|
||||
cc_at_check(this, &atInfo);
|
||||
if (mHitType == 1 || mHitType == 7 || mHitType == 8 || mHealth <= 0) {
|
||||
if (mHitType == 1 || mHitType == 7 || mHitType == 8 || health <= 0) {
|
||||
dComIfGp_particle_set(0x10, mCyl.GetTgHitPosP());
|
||||
cXyz scale(2.0f, 2.0f, 2.0f);
|
||||
dComIfGp_particle_set(dPa_name::ID_COMMON_BIG_HIT, hitPos, &player->shape_angle, &scale);
|
||||
if (mHealth <= 0) {
|
||||
if (health <= 0) {
|
||||
modeProcInit(MODE_DEATH);
|
||||
} else {
|
||||
modeProcInit(MODE_DAMAGE);
|
||||
@@ -673,10 +673,10 @@ bool daRd_c::checkTgHit() {
|
||||
modeProcInit(MODE_DAMAGE);
|
||||
}
|
||||
} else if (mHitType == 0xE) {
|
||||
s8 origHealth = mHealth;
|
||||
mHealth = 0xA;
|
||||
s8 origHealth = health;
|
||||
health = 0xA;
|
||||
cc_at_check(this, &atInfo);
|
||||
mHealth = origHealth;
|
||||
health = origHealth;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -734,17 +734,17 @@ void daRd_c::setAttention() {
|
||||
cXyz attnPos(60.0f, 0.0f, 0.0f);
|
||||
cXyz eyePos(60.0f, 0.0f, 0.0f);
|
||||
mDoMtx_stack_c::copy(mpMorf->getModel()->getAnmMtx(0x0C)); // ree_atama_1 joint
|
||||
mDoMtx_stack_c::multVec(&attnPos, &mAttentionInfo.mPosition);
|
||||
mDoMtx_stack_c::multVec(&attnPos, &attention_info.position);
|
||||
mDoMtx_stack_c::multVecZero(&eyePos);
|
||||
mEyePos = eyePos;
|
||||
mAttentionInfo.mPosition.y += l_HIO.m58;
|
||||
mEyePos.y += l_HIO.m5C;
|
||||
eyePos = eyePos;
|
||||
attention_info.position.y += l_HIO.m58;
|
||||
eyePos.y += l_HIO.m5C;
|
||||
|
||||
if (dComIfGp_event_runCheck()) {
|
||||
mAttentionInfo.mPosition = current.pos;
|
||||
mEyePos = current.pos;
|
||||
mAttentionInfo.mPosition.y += 150.0f;
|
||||
mEyePos.y += 150.0f;
|
||||
attention_info.position = current.pos;
|
||||
eyePos = current.pos;
|
||||
attention_info.position.y += 150.0f;
|
||||
eyePos.y += 150.0f;
|
||||
}
|
||||
|
||||
if (mEnemyIce.mFreezeTimer > 20) {
|
||||
@@ -757,7 +757,7 @@ void daRd_c::setAttention() {
|
||||
/* 00001970-000019F8 .text setMtx__6daRd_cFv */
|
||||
void daRd_c::setMtx() {
|
||||
J3DModel* model = mpMorf->getModel();
|
||||
model->setBaseScale(mScale);
|
||||
model->setBaseScale(scale);
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(shape_angle.y);
|
||||
model->setBaseTRMtx(mDoMtx_stack_c::get());
|
||||
@@ -963,7 +963,7 @@ void daRd_c::modeCry() {
|
||||
|
||||
f32 stickPosX = g_mDoCPd_cpadInfo[0].mMainStickPosX;
|
||||
f32 stickPosY = g_mDoCPd_cpadInfo[0].mMainStickPosY;
|
||||
if (mEvtInfo.checkCommandDemoAccrpt() || dComIfGp_evmng_startCheck("DEFAULT_RD_CRY")) {
|
||||
if (eventInfo.checkCommandDemoAccrpt() || dComIfGp_evmng_startCheck("DEFAULT_RD_CRY")) {
|
||||
if (isLinkControl()) {
|
||||
dComIfGp_event_reset();
|
||||
modeProcInit(MODE_RETURN);
|
||||
@@ -1072,7 +1072,7 @@ void daRd_c::modeAttack() {
|
||||
|
||||
f32 stickPosX = g_mDoCPd_cpadInfo[0].mMainStickPosX;
|
||||
f32 stickPosY = g_mDoCPd_cpadInfo[0].mMainStickPosY;
|
||||
if (mEvtInfo.checkCommandDemoAccrpt()) {
|
||||
if (eventInfo.checkCommandDemoAccrpt()) {
|
||||
daPy_py_c* player = (daPy_py_c*)dComIfGp_getLinkPlayer();
|
||||
if (isAnm(AnmPrm_ATACK)) {
|
||||
f32 frame = player->getBaseAnimeFrame();
|
||||
@@ -1344,10 +1344,10 @@ void daRd_c::modeProc(daRd_c::Proc_e proc, int newMode) {
|
||||
|
||||
if (newMode == MODE_DEATH || newMode == MODE_SW_WAIT) {
|
||||
fopAcM_OffStatus(this, fopAcStts_SHOWMAP_e);
|
||||
cLib_offBit<u32>(mAttentionInfo.mFlags, fopAc_Attn_LOCKON_ENEMY_e);
|
||||
cLib_offBit<u32>(attention_info.flags, fopAc_Attn_LOCKON_ENEMY_e);
|
||||
} else {
|
||||
fopAcM_OnStatus(this, fopAcStts_SHOWMAP_e);
|
||||
cLib_onBit<u32>(mAttentionInfo.mFlags, fopAc_Attn_LOCKON_ENEMY_e);
|
||||
cLib_onBit<u32>(attention_info.flags, fopAc_Attn_LOCKON_ENEMY_e);
|
||||
}
|
||||
|
||||
mMode = newMode;
|
||||
@@ -1695,7 +1695,7 @@ bool daRd_c::_execute() {
|
||||
modeProc(PROC_EXEC, MODE_NULL);
|
||||
setAnm(AnmPrm_NULL, false);
|
||||
setBtkAnm(0x5);
|
||||
g_env_light.settingTevStruct(0, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(0, ¤t.pos, &tevStr);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -1725,7 +1725,7 @@ bool daRd_c::_draw() {
|
||||
|
||||
J3DModel* model = mpMorf->getModel();
|
||||
J3DModelData* modelData = model->getModelData();
|
||||
g_env_light.setLightTevColorType(model, &mTevStr);
|
||||
g_env_light.setLightTevColorType(model, &tevStr);
|
||||
|
||||
if (mEnemyIce.mFreezeTimer > 20) {
|
||||
dMat_control_c::iceEntryDL(mpMorf, -1, &mInvisModel);
|
||||
@@ -1740,7 +1740,7 @@ bool daRd_c::_draw() {
|
||||
cXyz shadowPos(current.pos.x, current.pos.y + 150.0f, current.pos.z);
|
||||
mShadowId = dComIfGd_setShadow(
|
||||
mShadowId, 1, mpMorf->getModel(), &shadowPos, 800.0f, 40.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()
|
||||
);
|
||||
|
||||
@@ -1794,13 +1794,13 @@ void daRd_c::createInit() {
|
||||
mpMorf->play(¤t.pos, 0, 0);
|
||||
mBrkAnm.setFrame(0.0f);
|
||||
mpMorf->calc();
|
||||
g_env_light.settingTevStruct(0, ¤t.pos, &mTevStr);
|
||||
g_env_light.settingTevStruct(0, ¤t.pos, &tevStr);
|
||||
fopAcM_SetMtx(this, mpMorf->getModel()->getBaseTRMtx());
|
||||
fopAcM_setCullSizeBox(this, -100.0f, -10.0f, -100.0f, 100.0f, 250.0f, 150.0f);
|
||||
|
||||
mD3C = 1;
|
||||
mD40 = 1;
|
||||
mStealItemLeft = 5;
|
||||
stealItemLeft = 5;
|
||||
|
||||
mEnemyFire.mpMcaMorf = mpMorf;
|
||||
mEnemyFire.mpActor = this;
|
||||
@@ -1820,18 +1820,18 @@ void daRd_c::createInit() {
|
||||
mEnemyIce.mWallRadius = 50.0f;
|
||||
mEnemyIce.mCylHeight = 250.0f;
|
||||
|
||||
mMaxHealth = l_HIO.m46;
|
||||
mHealth = mMaxHealth;
|
||||
max_health = l_HIO.m46;
|
||||
health = max_health;
|
||||
mSpawnPos = current.pos;
|
||||
mSpawnAngle = shape_angle.y;
|
||||
mGravity = -4.5f;
|
||||
gravity = -4.5f;
|
||||
|
||||
// TODO: figure out if 1 and 2 actually drop different items
|
||||
if (mWhichIdleAnm == 0) {
|
||||
mItemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Rdead1", 0);
|
||||
itemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Rdead1", 0);
|
||||
}
|
||||
if (mWhichIdleAnm == 1) {
|
||||
mItemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Rdead2", 0);
|
||||
itemTableIdx = dComIfGp_CharTbl()->GetNameIndex("Rdead2", 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1916,7 +1916,7 @@ actor_process_profile_definition g_profile_RD = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_RD,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daRd_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -42,7 +42,7 @@ actor_process_profile_definition g_profile_RECTANGLE = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcLy_CURRENT_e,
|
||||
/* ProcName */ PROC_RECTANGLE,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(RECTANGLE_class),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -66,7 +66,7 @@ actor_process_profile_definition g_profile_SCENECHG = {
|
||||
3,
|
||||
fpcLy_CURRENT_e,
|
||||
PROC_SCENECHG,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(d_a_scene_change_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
@@ -401,7 +401,7 @@ actor_process_profile_definition g_profile_SEA = {
|
||||
/* ListID */ 2,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_SEA,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(sea_class),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -45,7 +45,7 @@ actor_process_profile_definition g_profile_SEATAG = {
|
||||
2,
|
||||
fpcLy_CURRENT_e,
|
||||
PROC_SEATAG,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daSeatag_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
@@ -84,7 +84,7 @@ void daShopItem_c::CreateInit() {
|
||||
}
|
||||
show();
|
||||
|
||||
mScale = getData()[m_itemNo].mScale;
|
||||
scale = getData()[m_itemNo].mScale;
|
||||
home.pos = current.pos;
|
||||
set_mtx();
|
||||
|
||||
@@ -132,7 +132,7 @@ BOOL daShopItem_c::clothCreate() {
|
||||
ResTIMG* shopArc = (ResTIMG*)dComIfG_getObjectRes(getShopArcname(), clothRes[field_0x648]);
|
||||
ResTIMG* clothArc = (ResTIMG*)dComIfG_getObjectRes(m_cloth_arcname, CLOTH_BTI_CLOTHTOON);
|
||||
|
||||
field_0x644 = (*clothFunc[field_0x648])(shopArc, clothArc, &mTevStr, 0);
|
||||
field_0x644 = (*clothFunc[field_0x648])(shopArc, clothArc, &tevStr, 0);
|
||||
if (field_0x644 == 0) {
|
||||
return 0;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ BOOL daShopItem_c::clothCreate() {
|
||||
|
||||
/* 000003BC-000005A8 .text set_mtx__12daShopItem_cFv */
|
||||
void daShopItem_c::set_mtx() {
|
||||
mpModel->setBaseScale(mScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
MTXTrans(mDoMtx_stack_c::get(), current.pos.x, current.pos.y, current.pos.z);
|
||||
mDoMtx_stack_c::ZXYrotM(current.angle.x, current.angle.y, current.angle.z);
|
||||
MTXCopy(mDoMtx_stack_c::get(), field_0x64C);
|
||||
@@ -173,7 +173,7 @@ void daShopItem_c::set_mtx() {
|
||||
|
||||
mDoMtx_stack_c::transM(local[field_0x648]);
|
||||
mDoMtx_stack_c::YrotM(0x4000);
|
||||
field_0x644->setScale(mScale);
|
||||
field_0x644->setScale(scale);
|
||||
field_0x644->setMtx(mDoMtx_stack_c::get());
|
||||
}
|
||||
}
|
||||
@@ -203,17 +203,17 @@ bool daShopItem_c::_draw() {
|
||||
/* 00000694-0000070C .text settingBeforeDraw__12daShopItem_cFv */
|
||||
void daShopItem_c::settingBeforeDraw() {
|
||||
if(isBomb(m_itemNo) || (m_itemNo == BOMB_BAG) || (m_itemNo == dItem_SKULL_HAMMER_e) || m_itemNo == dItem_SMALL_KEY_e || m_itemNo == PRESIDENT_STATUE) {
|
||||
dDlst_texSpecmapST(&mEyePos, &mTevStr, mpModel->getModelData(), 1.0f);
|
||||
dDlst_texSpecmapST(&eyePos, &tevStr, mpModel->getModelData(), 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
/* 0000070C-000007A4 .text setTevStr__12daShopItem_cFv */
|
||||
void daShopItem_c::setTevStr() {
|
||||
g_env_light.settingTevStruct(tevType, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(tevType, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
for(int i = 0; i < 2; i++) {
|
||||
if(mpModelArrow[i] != 0) {
|
||||
g_env_light.setLightTevColorType(mpModelArrow[i], &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModelArrow[i], &tevStr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ actor_process_profile_definition g_profile_ShopItem = {
|
||||
7,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_ShopItem,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daShopItem_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
@@ -54,14 +54,14 @@ static dCcD_SrcCyl l_cyl_src = {
|
||||
/* 8015DAF4-8015DBC0 .text set_mtx__13daSpcItem01_cFv */
|
||||
void daSpcItem01_c::set_mtx() {
|
||||
csXyz angle = current.angle;
|
||||
cXyz scale = mScale;
|
||||
cXyz scaleVec = scale;
|
||||
f32 offsetY = 0.0f;
|
||||
switch (m_itemNo) {
|
||||
case BOKO_BELT:
|
||||
offsetY = -24.0f;
|
||||
break;
|
||||
}
|
||||
mpModel->setBaseScale(scale);
|
||||
mpModel->setBaseScale(scaleVec);
|
||||
|
||||
mDoMtx_stack_c::transS(current.pos.x, current.pos.y + offsetY, current.pos.z);
|
||||
mDoMtx_stack_c::ZXYrotM(angle);
|
||||
@@ -103,9 +103,9 @@ BOOL daSpcItem01_c::CreateInit() {
|
||||
mCyl.SetStts(&mStts);
|
||||
f32 tempVar1 = (f32)getHeight();
|
||||
f32 tempVar2 = (f32)getR();
|
||||
if (mScale.x > 1.0f) {
|
||||
tempVar1 *= mScale.x;
|
||||
tempVar2 *= mScale.x;
|
||||
if (scale.x > 1.0f) {
|
||||
tempVar1 *= scale.x;
|
||||
tempVar2 *= scale.x;
|
||||
}
|
||||
mCyl.SetR(tempVar2);
|
||||
mCyl.SetH(tempVar1);
|
||||
@@ -116,9 +116,9 @@ BOOL daSpcItem01_c::CreateInit() {
|
||||
fopAcM_SetGravity(this, -4.0f);
|
||||
switch ((s8)m_itemNo) {
|
||||
case SHIELD:
|
||||
mScale.x = 1.5f;
|
||||
mScale.y = 1.5f;
|
||||
mScale.z = 1.5f;
|
||||
scale.x = 1.5f;
|
||||
scale.y = 1.5f;
|
||||
scale.z = 1.5f;
|
||||
current.angle.x = 4000;
|
||||
current.angle.y = 4200;
|
||||
current.angle.z = 5200;
|
||||
@@ -131,8 +131,8 @@ BOOL daSpcItem01_c::CreateInit() {
|
||||
|
||||
/* 8015DF4C-8015DFE8 .text _execute__13daSpcItem01_cFv */
|
||||
BOOL daSpcItem01_c::_execute() {
|
||||
mEyePos = current.pos;
|
||||
mAttentionInfo.mPosition = current.pos;
|
||||
eyePos = current.pos;
|
||||
attention_info.position = current.pos;
|
||||
field_0x634++;
|
||||
set_effect();
|
||||
scale_anim();
|
||||
@@ -154,9 +154,9 @@ void daSpcItem01_c::set_effect() {
|
||||
/* 8015E070-8015E0D8 .text scale_anim__13daSpcItem01_cFv */
|
||||
void daSpcItem01_c::scale_anim() {
|
||||
if (isRupee(m_itemNo)) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ void daSpcItem01_c::move() {
|
||||
if (mAcch.ChkGroundLanding()) {
|
||||
field_0x642 += 1;
|
||||
f32 newGravity = field_0x63C * 0.62f;
|
||||
if (newGravity > mGravity - 0.5f) {
|
||||
if (newGravity > gravity - 0.5f) {
|
||||
speedF = 0.0f;
|
||||
} else {
|
||||
speed.x = 0.0f;
|
||||
@@ -229,16 +229,16 @@ BOOL daSpcItem01_c::_draw() {
|
||||
/* 8015E2A8-8015E368 .text setTevStr__13daSpcItem01_cFv */
|
||||
void daSpcItem01_c::setTevStr() {
|
||||
if (m_itemNo == BOKO_BELT) {
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG1, ¤t.pos, &mTevStr);
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_BG1, ¤t.pos, &tevStr);
|
||||
} else {
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &mTevStr);
|
||||
dKy_getEnvlight().settingTevStruct(TEV_TYPE_ACTOR, ¤t.pos, &tevStr);
|
||||
}
|
||||
dKy_getEnvlight().setLightTevColorType(mpModel, &mTevStr);
|
||||
dKy_getEnvlight().setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
for (s32 modelIndex = 0; modelIndex < (s32)ARRAY_SIZE(mpModelArrow); modelIndex++) {
|
||||
J3DModel* modelArrow = mpModelArrow[modelIndex];
|
||||
if (modelArrow != NULL) {
|
||||
dKy_getEnvlight().setLightTevColorType(modelArrow, &mTevStr);
|
||||
dKy_getEnvlight().setLightTevColorType(modelArrow, &tevStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -281,7 +281,7 @@ actor_process_profile_definition g_profile_SPC_ITEM01 = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_SPC_ITEM01,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daSpcItem01_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
s32 daSpotbox_c::create() {
|
||||
fopAcM_SetupActor(this, daSpotbox_c);
|
||||
f32 baseScale = getType() != 0 ? 1000.0f : 100.0f;
|
||||
mScale.x *= baseScale;
|
||||
mScale.y *= baseScale;
|
||||
mScale.z *= (baseScale * 1.2f);
|
||||
current.pos.y += mScale.y * 0.5f;
|
||||
scale.x *= baseScale;
|
||||
scale.y *= baseScale;
|
||||
scale.z *= (baseScale * 1.2f);
|
||||
current.pos.y += scale.y * 0.5f;
|
||||
fopAcM_SetMtx(this, mMtx);
|
||||
fopAcM_setCullSizeBox(this, -0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f);
|
||||
|
||||
@@ -33,7 +33,7 @@ BOOL daSpotbox_c::draw() {
|
||||
BOOL daSpotbox_c::execute() {
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(current.angle.y);
|
||||
mDoMtx_stack_c::scaleM(mScale);
|
||||
mDoMtx_stack_c::scaleM(scale);
|
||||
cMtx_copy(mDoMtx_stack_c::get(), mMtx);
|
||||
return TRUE;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ actor_process_profile_definition g_profile_SPOTBOX = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_SPOTBOX,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daSpotbox_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -50,8 +50,8 @@ void daSwAt_c::CreateInit() {
|
||||
mStts.Init(0xFF, 0xFF, this);
|
||||
mCyl.Set(l_cyl_src);
|
||||
mCyl.SetStts(&mStts);
|
||||
mCyl.SetR(mScale.x * 25.0f);
|
||||
mCyl.SetH(mScale.y * 50.0f);
|
||||
mCyl.SetR(scale.x * 25.0f);
|
||||
mCyl.SetH(scale.y * 50.0f);
|
||||
mAtType = daSwAt_prm::getAtType(this);
|
||||
mSwitchNo = daSwAt_prm::getSwitchNo(this);
|
||||
fopAcM_offDraw(this);
|
||||
@@ -165,7 +165,7 @@ actor_process_profile_definition g_profile_SW_ATTACK = {
|
||||
/* ListID */ 7,
|
||||
/* ListPrio */ fpcPi_CURRENT_e,
|
||||
/* ProcName */ PROC_SW_ATTACK,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.mBase,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(daSwAt_c),
|
||||
/* SizeOther */ 0,
|
||||
/* Parameters */ 0,
|
||||
|
||||
@@ -17,7 +17,7 @@ static BOOL daSwc00_Execute(swc00_class* i_this) {
|
||||
|
||||
f32 xz_dist2 = fopAcM_searchPlayerDistanceXZ2(i_this);
|
||||
f32 y_diff = fopAcM_searchPlayerDistanceY(i_this);
|
||||
if(xz_dist2 < i_this->mScale.x && (-100.0f < y_diff && y_diff < i_this->mScale.y)) {
|
||||
if(xz_dist2 < i_this->scale.x && (-100.0f < y_diff && y_diff < i_this->scale.y)) {
|
||||
dComIfGs_onSwitch(swBit, fopAcM_GetRoomNo(i_this));
|
||||
|
||||
if(daSwc00_getType(i_this) != 0) {
|
||||
@@ -58,10 +58,10 @@ static s32 daSwc00_Create(fopAc_ac_c* i_actor) {
|
||||
}
|
||||
}
|
||||
|
||||
i_this->mScale.x *= 100.0f;
|
||||
i_this->mScale.x += 30.0f;
|
||||
i_this->mScale.x *= i_this->mScale.x;
|
||||
i_this->mScale.y *= 100.0f;
|
||||
i_this->scale.x *= 100.0f;
|
||||
i_this->scale.x += 30.0f;
|
||||
i_this->scale.x *= i_this->scale.x;
|
||||
i_this->scale.y *= 100.0f;
|
||||
|
||||
return cPhs_COMPLEATE_e;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ actor_process_profile_definition g_profile_SWC00 = {
|
||||
7,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_SWC00,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(swc00_class),
|
||||
0,
|
||||
0,
|
||||
|
||||
+13
-13
@@ -145,11 +145,11 @@ s32 daSwhit0_c::CreateInit() {
|
||||
|
||||
mColStatus.Init(0xFF, 0xFF, this);
|
||||
|
||||
mAttentionInfo.mPosition.x += cM_ssin(home.angle.x) * 65.0f * cM_ssin(home.angle.y);
|
||||
mAttentionInfo.mPosition.y += cM_scos(home.angle.x) * 65.0f;
|
||||
mAttentionInfo.mPosition.z += cM_ssin(home.angle.x) * 65.0f * cM_scos(home.angle.y);
|
||||
attention_info.position.x += cM_ssin(home.angle.x) * 65.0f * cM_ssin(home.angle.y);
|
||||
attention_info.position.y += cM_scos(home.angle.x) * 65.0f;
|
||||
attention_info.position.z += cM_ssin(home.angle.x) * 65.0f * cM_scos(home.angle.y);
|
||||
|
||||
mEyePos = mAttentionInfo.mPosition;
|
||||
eyePos = attention_info.position;
|
||||
|
||||
if (mRetType == 0) {
|
||||
mColCyl.Set(l_cyl_src);
|
||||
@@ -161,7 +161,7 @@ s32 daSwhit0_c::CreateInit() {
|
||||
|
||||
mColSph.Set(l_sph_src);
|
||||
mColSph.SetStts(&mColStatus);
|
||||
mColSph.SetC(mAttentionInfo.mPosition);
|
||||
mColSph.SetC(attention_info.position);
|
||||
|
||||
if (dComIfGs_isSwitch(getSwNo(), current.roomNo)) {
|
||||
mState = 4;
|
||||
@@ -249,7 +249,7 @@ s32 daSwhit0_c::actionOffWait() {
|
||||
mState = 2;
|
||||
|
||||
fopAcM_orderOtherEventId(this, mEventIdx, getEvNo());
|
||||
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
eventInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
|
||||
break;
|
||||
default:
|
||||
@@ -279,7 +279,7 @@ s32 daSwhit0_c::actionToOnReady() {
|
||||
mState = 2;
|
||||
|
||||
fopAcM_orderOtherEventId(this, mEventIdx, getEvNo());
|
||||
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
eventInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
@@ -287,7 +287,7 @@ s32 daSwhit0_c::actionToOnReady() {
|
||||
|
||||
/* 00000E24-00000EC8 .text actionToOnOrder__10daSwhit0_cFv */
|
||||
s32 daSwhit0_c::actionToOnOrder() {
|
||||
if (mEvtInfo.checkCommandDemoAccrpt()) {
|
||||
if (eventInfo.checkCommandDemoAccrpt()) {
|
||||
mState = 3;
|
||||
mStaffId = dComIfGp_evmng_getMyStaffId("SWITCH");
|
||||
|
||||
@@ -295,7 +295,7 @@ s32 daSwhit0_c::actionToOnOrder() {
|
||||
}
|
||||
else {
|
||||
fopAcM_orderOtherEventId(this, mEventIdx, getEvNo());
|
||||
mEvtInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
eventInfo.onCondition(dEvtCnd_UNK2_e);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
@@ -363,7 +363,7 @@ s32 daSwhit0_c::actionOnTimer() {
|
||||
|
||||
/* 0000115C-000011E4 .text setDrawMtx__10daSwhit0_cFv */
|
||||
void daSwhit0_c::setDrawMtx() {
|
||||
mpModel->setBaseScale(mScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::XYZrotM(current.angle);
|
||||
@@ -379,8 +379,8 @@ s32 daSwhit0_c::draw() {
|
||||
{ 0x78, 0x64, 0x32, 0x64 }
|
||||
};
|
||||
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &mTevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &mTevStr);
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
J3DModelData* modelData = mpModel->getModelData();
|
||||
s32 flag = checkFlag(0x01);
|
||||
@@ -478,7 +478,7 @@ actor_process_profile_definition g_profile_SWHIT0 = {
|
||||
8,
|
||||
fpcPi_CURRENT_e,
|
||||
PROC_SWHIT0,
|
||||
&g_fpcLf_Method.mBase,
|
||||
&g_fpcLf_Method.base,
|
||||
sizeof(daSwhit0_c),
|
||||
0,
|
||||
0,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user