summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_b_gg.cpp
diff options
context:
space:
mode:
authorHuitzi <73550465+marwernerh@users.noreply.github.com>2026-03-09 21:33:31 -0400
committerGitHub <noreply@github.com>2026-03-09 18:33:31 -0700
commit0b0fdd1f60193d1e3e610326cc2cf2a7b558d366 (patch)
treea39b648ba460b5f80dad748690fa43f6f780e5a6 /src/d/actor/d_a_b_gg.cpp
parent30e839c28be83fb07bfbe008d3eb9eb9127e3801 (diff)
Actor status consolidation & process profile definition editing (#3117)
* Consolidate fopAcM_STATUS into fopAc_Status_e * Add _e suffix to fopAcStts enums * Prepare for profile enumeration * Correct typo in scene_process_profile_definition * Manually handle g_profile_Obj_DamCps (inline preprocessing) * Correct g_profile_TAG_LV5SOUP procname to enum * Create d_priority.h * Update process profile definitions * Moved inline comments to the left * Add missing fopAcStts enums * Add d_priority.h include in f_pc_leaf.h * Manually update d_a_obj_damCps profile * Replace fopAcStts enums replacing and anticipatory profile size correction * Changed profile size from literal to sizeof() in anticipation of PR #3116 * Provided putative names to staff-related status enums * Replaced appropriate literals with fopAcStts enums * Fix borked merge * Rename item number enums and move to d_item_data.h * Rename process profile name & draw priority enums * Move process profile name & draw priority enums to appropriate files * Moved fpcNm_ enums from d/d_procname.h to f_pc/f_pc_name.h * Moved fpcDwPi_ enums from d/d_priority.h to f_pc/f_pc_draw_priority.h * ACTUALLY (whoops) stage merge * Correct item mistranslation Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com> --------- Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
Diffstat (limited to 'src/d/actor/d_a_b_gg.cpp')
-rw-r--r--src/d/actor/d_a_b_gg.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/d/actor/d_a_b_gg.cpp b/src/d/actor/d_a_b_gg.cpp
index 212225ece2..dc14f1215c 100644
--- a/src/d/actor/d_a_b_gg.cpp
+++ b/src/d/actor/d_a_b_gg.cpp
@@ -1191,8 +1191,8 @@ void daB_GG_c::Md_DemoAction() {
} else if (mpModelMorf->getFrame() > 18.0f && mAnm == BCK_GGB_TAKE_OFF) {
var_r29 = 1;
} else if (mAnm == BCK_GGB_WAIT_B && mTimers[0] == 0) {
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGB_TAKE_OFF, 0, 5.0f, 1.0f);
mSound.startCreatureVoice(Z2SE_EN_GG_V_TAKE_OFF, -1);
@@ -1802,7 +1802,7 @@ void daB_GG_c::F_AttackAction() {
speedF = field_0x5bc;
field_0x5c0 = (100.0f + (s_LinkPos->y - current.pos.y)) / ((0.9f * var_f31) / speedF);
speed.y = field_0x5c0;
- fopAcM_OffStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x80000_e);
}
break;
case 1: {
@@ -1842,7 +1842,7 @@ void daB_GG_c::F_AttackAction() {
}
} else if (current.pos.y - field_0x648 > 500.0f || (field_0x650 == current.pos.y - field_0x648 && mAnm == BCK_GGA_ATTACK_4)) {
mCcHookCyl.OnTgSetBit();
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
if (field_0x5b6 != 0) {
SetAnm(BCK_GGA_ATTACK_2, 2, 5.0f, 1.0f);
@@ -1887,8 +1887,8 @@ void daB_GG_c::F_AttackAction() {
mCcHookCyl.OnTgSetBit();
SetAnm(BCK_GGA_PREPARATION, 2, 5.0f, 1.0f);
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
if (field_0x6ba != 0) {
mTimers[0] = l_HIO.fly_attack_wait_time * 0.5f;
@@ -2002,8 +2002,8 @@ void daB_GG_c::F_DamageAction() {
if (mTimers[0] == 1 && mAnm == BCK_GGA_PULL) {
mMode++;
fopAcM_cancelHookCarryNow(this);
- fopAcM_OffStatus(this, 0x80000);
- fopAcM_OnStatus(this, 0x200000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x80000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x200000_e);
mTimers[0] = 5;
}
break;
@@ -2031,8 +2031,8 @@ void daB_GG_c::F_DamageAction() {
s_M_Action = 0;
s_W_Action = 0;
- fopAcM_OffStatus(this, 0x80000);
- fopAcM_OnStatus(this, 0x200000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x80000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x200000_e);
} else {
cXyz* hookshot_top = player->getHookshotTopPos();
cXyz sp24(0.0f, 0.0f, 0.0f);
@@ -2046,8 +2046,8 @@ void daB_GG_c::F_DamageAction() {
if (mAcch.ChkWallHit() && mTimers[0] == 0) {
SetAction(ACTION_FLY, SUBACT_MOVE, 0);
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGA_WAIT, 2, 5.0f + BREG_F(12), 1.0f);
@@ -2084,8 +2084,8 @@ void daB_GG_c::F_DamageAction() {
}
} else if (current.pos.y < (field_0x648 - 50.0f)) {
SetAction(ACTION_FLY, SUBACT_MOVE, 0);
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGA_WAIT, 2, 5.0f + BREG_F(12), 1.0f);
@@ -2546,8 +2546,8 @@ void daB_GG_c::G_MoveAction() {
mTimers[1] = 0;
gravity = 0.0f;
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGA_WAIT, 2, 5.0f, 1.0f);
@@ -2576,8 +2576,8 @@ void daB_GG_c::FallChk() {
if (current.pos.y < (field_0x648 - 10.0f) && field_0x5b6 != 0) {
if (!mAcch.ChkGroundHit()) {
SetAction(ACTION_FLY, SUBACT_MOVE, 0);
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGA_WAIT, 2, 5.0f + BREG_F(12), 1.0f);
@@ -2615,8 +2615,8 @@ void daB_GG_c::FallChk() {
} else if (current.pos.y < (field_0x648 - 10.0f)) {
SpeedClear();
SetAction(ACTION_FLY, SUBACT_MOVE, 0);
- fopAcM_OffStatus(this, 0x200000);
- fopAcM_OnStatus(this, 0x80000);
+ fopAcM_OffStatus(this, fopAcStts_UNK_0x200000_e);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x80000_e);
SetAnm(BCK_GGA_WAIT, 2, 5.0f + BREG_F(12), 1.0f);
@@ -4409,7 +4409,7 @@ int daB_GG_c::Create() {
mMode = 0;
SetAnm(BCK_GG_WAIT, 2, 5.0f, 1.0f);
- fopAcM_OnStatus(this, 0x200000);
+ fopAcM_OnStatus(this, fopAcStts_UNK_0x200000_e);
if (-G_CM3D_F_INF != mAcch.GetGroundH()) {
current.pos.y = mAcch.GetGroundH();
@@ -4462,20 +4462,20 @@ static actor_method_class l_daB_GG_Method = {
};
actor_process_profile_definition g_profile_B_GG = {
- fpcLy_CURRENT_e, // mLayerID
- 7, // mListID
- fpcPi_CURRENT_e, // mListPrio
- PROC_B_GG, // mProcName
- &g_fpcLf_Method.base, // sub_method
- sizeof(daB_GG_c), // mSize
- 0, // mSizeOther
- 0, // mParameters
- &g_fopAc_Method.base, // sub_method
- 230, // mPriority
- &l_daB_GG_Method, // sub_method
- 0x000C0100, // mStatus
- fopAc_ENEMY_e, // mActorType
- fopAc_CULLBOX_CUSTOM_e, // cullType
+ /* Layer ID */ fpcLy_CURRENT_e,
+ /* List ID */ 7,
+ /* List Prio */ fpcPi_CURRENT_e,
+ /* Proc Name */ fpcNm_B_GG_e,
+ /* Proc SubMtd */ &g_fpcLf_Method.base,
+ /* Size */ sizeof(daB_GG_c),
+ /* Size Other */ 0,
+ /* Parameters */ 0,
+ /* Leaf SubMtd */ &g_fopAc_Method.base,
+ /* Draw Prio */ fpcDwPi_B_GG_e,
+ /* Actor SubMtd */ &l_daB_GG_Method,
+ /* Status */ fopAcStts_UNK_0x80000_e | fopAcStts_UNK_0x40000_e | fopAcStts_CULL_e,
+ /* Group */ fopAc_ENEMY_e,
+ /* Cull Type */ fopAc_CULLBOX_CUSTOM_e,
};
AUDIO_INSTANCES