mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-27 14:51:03 +00:00
Name player's generic actionVar
s (#1392)
* action-vars * single bracket
This commit is contained in:
parent
4e9e6c007c
commit
1d1e6ef03b
@ -1221,8 +1221,8 @@ typedef struct Player {
|
|||||||
/* 0xADE */ u8 unk_ADE;
|
/* 0xADE */ u8 unk_ADE;
|
||||||
/* 0xADF */ s8 unk_ADF[4]; // Circular buffer used for testing for triggering a quickspin
|
/* 0xADF */ s8 unk_ADF[4]; // Circular buffer used for testing for triggering a quickspin
|
||||||
/* 0xAE3 */ s8 unk_AE3[4]; // Circular buffer used for ?
|
/* 0xAE3 */ s8 unk_AE3[4]; // Circular buffer used for ?
|
||||||
/* 0xAE7 */ s8 unk_AE7; // a timer, used as an index for multiple kinds of animations too, room index?, etc
|
/* 0xAE7 */ s8 actionVar1; // context dependent variable that has different meanings depending on what action is currently running
|
||||||
/* 0xAE8 */ s16 unk_AE8; // multipurpose timer
|
/* 0xAE8 */ s16 actionVar2; // context dependent variable that has different meanings depending on what action is currently running
|
||||||
/* 0xAEC */ f32 unk_AEC;
|
/* 0xAEC */ f32 unk_AEC;
|
||||||
/* 0xAF0 */ union {
|
/* 0xAF0 */ union {
|
||||||
Vec3f unk_AF0[2];
|
Vec3f unk_AF0[2];
|
||||||
|
@ -369,13 +369,13 @@ void func_80122F28(Player* player) {
|
|||||||
s32 func_80122F9C(PlayState* play) {
|
s32 func_80122F9C(PlayState* play) {
|
||||||
Player* player = GET_PLAYER(play);
|
Player* player = GET_PLAYER(play);
|
||||||
|
|
||||||
return (player->stateFlags2 & PLAYER_STATE2_80000) && (player->unk_AE7 == 2);
|
return (player->stateFlags2 & PLAYER_STATE2_80000) && (player->actionVar1 == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 func_80122FCC(PlayState* play) {
|
s32 func_80122FCC(PlayState* play) {
|
||||||
Player* player = GET_PLAYER(play);
|
Player* player = GET_PLAYER(play);
|
||||||
|
|
||||||
return (player->stateFlags2 & PLAYER_STATE2_80000) && ((player->unk_AE7 == 1) || (player->unk_AE7 == 3));
|
return (player->stateFlags2 & PLAYER_STATE2_80000) && ((player->actionVar1 == 1) || (player->actionVar1 == 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
void func_8012300C(PlayState* play, s32 arg1) {
|
void func_8012300C(PlayState* play, s32 arg1) {
|
||||||
@ -389,15 +389,15 @@ void func_8012301C(Actor* thisx, PlayState* play2) {
|
|||||||
PlayState* play = play2;
|
PlayState* play = play2;
|
||||||
Player* this = (Player*)thisx;
|
Player* this = (Player*)thisx;
|
||||||
|
|
||||||
this->unk_AE7++;
|
this->actionVar1++;
|
||||||
|
|
||||||
if (this->unk_AE7 == 2) {
|
if (this->actionVar1 == 2) {
|
||||||
s16 objectId = gPlayerFormObjectIndices[GET_PLAYER_FORM];
|
s16 objectId = gPlayerFormObjectIndices[GET_PLAYER_FORM];
|
||||||
|
|
||||||
gActorOverlayTable[ACTOR_PLAYER].initInfo->objectId = objectId;
|
gActorOverlayTable[ACTOR_PLAYER].initInfo->objectId = objectId;
|
||||||
func_8012F73C(&play->objectCtx, this->actor.objBankIndex, objectId);
|
func_8012F73C(&play->objectCtx, this->actor.objBankIndex, objectId);
|
||||||
this->actor.objBankIndex = Object_GetIndex(&play->objectCtx, GAMEPLAY_KEEP);
|
this->actor.objBankIndex = Object_GetIndex(&play->objectCtx, GAMEPLAY_KEEP);
|
||||||
} else if (this->unk_AE7 >= 3) {
|
} else if (this->actionVar1 >= 3) {
|
||||||
s32 objBankIndex = Object_GetIndex(&play->objectCtx, gActorOverlayTable[ACTOR_PLAYER].initInfo->objectId);
|
s32 objBankIndex = Object_GetIndex(&play->objectCtx, gActorOverlayTable[ACTOR_PLAYER].initInfo->objectId);
|
||||||
|
|
||||||
if (Object_IsLoaded(&play->objectCtx, objBankIndex)) {
|
if (Object_IsLoaded(&play->objectCtx, objBankIndex)) {
|
||||||
@ -3744,7 +3744,7 @@ void Player_PostLimbDrawGameplay(PlayState* play, s32 limbIndex, Gfx** dList1, G
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player->stateFlags1 & (PLAYER_STATE1_2 | PLAYER_STATE1_100)) && (player->unk_AE8 != 0)) {
|
if ((player->stateFlags1 & (PLAYER_STATE1_2 | PLAYER_STATE1_100)) && (player->actionVar2 != 0)) {
|
||||||
static Vec3f D_801C0E40[PLAYER_FORM_MAX] = {
|
static Vec3f D_801C0E40[PLAYER_FORM_MAX] = {
|
||||||
{ 0.0f, 0.0f, 0.0f }, // PLAYER_FORM_FIERCE_DEITY
|
{ 0.0f, 0.0f, 0.0f }, // PLAYER_FORM_FIERCE_DEITY
|
||||||
{ -578.3f, -1100.9f, 0.0f }, // PLAYER_FORM_GORON
|
{ -578.3f, -1100.9f, 0.0f }, // PLAYER_FORM_GORON
|
||||||
@ -3764,7 +3764,7 @@ void Player_PostLimbDrawGameplay(PlayState* play, s32 limbIndex, Gfx** dList1, G
|
|||||||
}
|
}
|
||||||
|
|
||||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 0, 0, 255, (u8)player->unk_AE8);
|
gDPSetEnvColor(POLY_XLU_DISP++, 0, 0, 255, (u8)player->actionVar2);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gameplay_keep_DL_054C90);
|
gSPDisplayList(POLY_XLU_DISP++, gameplay_keep_DL_054C90);
|
||||||
|
|
||||||
Matrix_Pop();
|
Matrix_Pop();
|
||||||
|
@ -685,7 +685,7 @@ void Boss03_ChasePlayer(Boss03* this, PlayState* play) {
|
|||||||
(player->actor.shape.feetPos[0].y >= WATER_HEIGHT + 8.0f)) ||
|
(player->actor.shape.feetPos[0].y >= WATER_HEIGHT + 8.0f)) ||
|
||||||
(this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0)) {
|
(this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0)) {
|
||||||
if (&this->actor == player->actor.parent) {
|
if (&this->actor == player->actor.parent) {
|
||||||
player->unk_AE8 = 101;
|
player->actionVar2 = 101;
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->csMode = PLAYER_CSMODE_NONE;
|
player->csMode = PLAYER_CSMODE_NONE;
|
||||||
}
|
}
|
||||||
@ -781,7 +781,7 @@ void Boss03_CatchPlayer(Boss03* this, PlayState* play) {
|
|||||||
(player->actor.shape.feetPos[FOOT_LEFT].y >= WATER_HEIGHT + 8.0f)) ||
|
(player->actor.shape.feetPos[FOOT_LEFT].y >= WATER_HEIGHT + 8.0f)) ||
|
||||||
(this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0)) {
|
(this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0)) {
|
||||||
if (&this->actor == player->actor.parent) {
|
if (&this->actor == player->actor.parent) {
|
||||||
player->unk_AE8 = 101;
|
player->actionVar2 = 101;
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->csMode = PLAYER_CSMODE_NONE;
|
player->csMode = PLAYER_CSMODE_NONE;
|
||||||
Play_DisableMotionBlur();
|
Play_DisableMotionBlur();
|
||||||
@ -909,7 +909,7 @@ void Boss03_ChewPlayer(Boss03* this, PlayState* play) {
|
|||||||
// Stop chewing when the timer runs out
|
// Stop chewing when the timer runs out
|
||||||
if (this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0) {
|
if (this->workTimer[WORK_TIMER_CURRENT_ACTION] == 0) {
|
||||||
if (&this->actor == player->actor.parent) {
|
if (&this->actor == player->actor.parent) {
|
||||||
player->unk_AE8 = 101;
|
player->actionVar2 = 101;
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->csMode = PLAYER_CSMODE_NONE;
|
player->csMode = PLAYER_CSMODE_NONE;
|
||||||
Play_DisableMotionBlur();
|
Play_DisableMotionBlur();
|
||||||
@ -1751,7 +1751,7 @@ void Boss03_SetupStunned(Boss03* this, PlayState* play) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (&this->actor == player->actor.parent) {
|
if (&this->actor == player->actor.parent) {
|
||||||
player->unk_AE8 = 101;
|
player->actionVar2 = 101;
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->csMode = PLAYER_CSMODE_NONE;
|
player->csMode = PLAYER_CSMODE_NONE;
|
||||||
Play_DisableMotionBlur();
|
Play_DisableMotionBlur();
|
||||||
@ -1903,7 +1903,7 @@ void Boss03_UpdateCollision(Boss03* this, PlayState* play) {
|
|||||||
Boss03_PlayUnderwaterSfx(&this->actor.projectedPos, NA_SE_EN_KONB_DAMAGE_OLD);
|
Boss03_PlayUnderwaterSfx(&this->actor.projectedPos, NA_SE_EN_KONB_DAMAGE_OLD);
|
||||||
|
|
||||||
if (&this->actor == player->actor.parent) {
|
if (&this->actor == player->actor.parent) {
|
||||||
player->unk_AE8 = 101;
|
player->actionVar2 = 101;
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->csMode = PLAYER_CSMODE_NONE;
|
player->csMode = PLAYER_CSMODE_NONE;
|
||||||
Play_DisableMotionBlur();
|
Play_DisableMotionBlur();
|
||||||
|
@ -132,7 +132,7 @@ void DoorAna_WaitOpen(DoorAna* this, PlayState* play) {
|
|||||||
if (Math_StepToF(&this->actor.scale.x, 0.01f, 0.001f)) {
|
if (Math_StepToF(&this->actor.scale.x, 0.01f, 0.001f)) {
|
||||||
if ((this->actor.targetMode != TARGET_MODE_0) && (play->transitionTrigger == TRANS_TRIGGER_OFF) &&
|
if ((this->actor.targetMode != TARGET_MODE_0) && (play->transitionTrigger == TRANS_TRIGGER_OFF) &&
|
||||||
(play->transitionMode == TRANS_MODE_OFF) && (player->stateFlags1 & PLAYER_STATE1_80000000) &&
|
(play->transitionMode == TRANS_MODE_OFF) && (player->stateFlags1 & PLAYER_STATE1_80000000) &&
|
||||||
(player->unk_AE7 == 0)) {
|
(player->actionVar1 == 0)) {
|
||||||
|
|
||||||
if (grottoType == DOORANA_TYPE_VISIBLE_SCENE_EXIT) {
|
if (grottoType == DOORANA_TYPE_VISIBLE_SCENE_EXIT) {
|
||||||
s32 exitIndex = DOORANA_GET_EXIT_INDEX(&this->actor);
|
s32 exitIndex = DOORANA_GET_EXIT_INDEX(&this->actor);
|
||||||
|
@ -168,7 +168,7 @@ void EnBigokuta_ShootPlayer(EnBigokuta* this, PlayState* play) {
|
|||||||
|
|
||||||
if (&this->picto.actor == player->actor.parent) {
|
if (&this->picto.actor == player->actor.parent) {
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
player->actor.velocity.y = 0.0f;
|
player->actor.velocity.y = 0.0f;
|
||||||
player->actor.world.pos.x += 20.0f * Math_SinS(this->picto.actor.home.rot.y);
|
player->actor.world.pos.x += 20.0f * Math_SinS(this->picto.actor.home.rot.y);
|
||||||
player->actor.world.pos.z += 20.0f * Math_CosS(this->picto.actor.home.rot.y);
|
player->actor.world.pos.z += 20.0f * Math_CosS(this->picto.actor.home.rot.y);
|
||||||
@ -309,7 +309,7 @@ void EnBigokuta_SuckInPlayer(EnBigokuta* this, PlayState* play) {
|
|||||||
this->timer++;
|
this->timer++;
|
||||||
}
|
}
|
||||||
|
|
||||||
player->unk_AE8 = 0;
|
player->actionVar2 = 0;
|
||||||
Math_Vec3f_Copy(&player->actor.world.pos, &this->playerPos);
|
Math_Vec3f_Copy(&player->actor.world.pos, &this->playerPos);
|
||||||
if (Math_Vec3f_StepTo(&player->actor.world.pos, &this->playerHoldPos, sqrtf(this->timer) * 5.0f) < 0.1f) {
|
if (Math_Vec3f_StepTo(&player->actor.world.pos, &this->playerHoldPos, sqrtf(this->timer) * 5.0f) < 0.1f) {
|
||||||
s16 rotY = this->picto.actor.shape.rot.y;
|
s16 rotY = this->picto.actor.shape.rot.y;
|
||||||
|
@ -729,7 +729,7 @@ void EnBigslime_SetPlayerParams(EnBigslime* this, PlayState* play) {
|
|||||||
|
|
||||||
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
func_800B8D98(play, &this->actor, 10.0f, this->actor.world.rot.y, 10.0f);
|
func_800B8D98(play, &this->actor, 10.0f, this->actor.world.rot.y, 10.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1528,7 +1528,7 @@ void EnBigslime_CutsceneGrabPlayer(EnBigslime* this, PlayState* play) {
|
|||||||
s32 i;
|
s32 i;
|
||||||
s32 j;
|
s32 j;
|
||||||
|
|
||||||
player->unk_AE8 = 0;
|
player->actionVar2 = 0;
|
||||||
Math_ScaledStepToS(&this->gekkoRot.x, 0, 0x400);
|
Math_ScaledStepToS(&this->gekkoRot.x, 0, 0x400);
|
||||||
EnBigslime_UpdateCameraGrabPlayer(this, play);
|
EnBigslime_UpdateCameraGrabPlayer(this, play);
|
||||||
if (this->grabPlayerTimer > 0) {
|
if (this->grabPlayerTimer > 0) {
|
||||||
@ -1577,7 +1577,7 @@ void EnBigslime_AttackPlayerInBigslime(EnBigslime* this, PlayState* play) {
|
|||||||
Player* player = GET_PLAYER(play);
|
Player* player = GET_PLAYER(play);
|
||||||
s16 pitch = this->scaleFactor * 0x3333; // polar (zenith) angle
|
s16 pitch = this->scaleFactor * 0x3333; // polar (zenith) angle
|
||||||
|
|
||||||
player->unk_AE8 = 0;
|
player->actionVar2 = 0;
|
||||||
Math_ScaledStepToS(&this->gekkoRot.x, 0, 0x400);
|
Math_ScaledStepToS(&this->gekkoRot.x, 0, 0x400);
|
||||||
EnBigslime_UpdateCameraGrabPlayer(this, play);
|
EnBigslime_UpdateCameraGrabPlayer(this, play);
|
||||||
EnBigslime_UpdateWavySurface(this);
|
EnBigslime_UpdateWavySurface(this);
|
||||||
@ -1710,7 +1710,7 @@ void EnBigslime_WindupThrowPlayer(EnBigslime* this, PlayState* play) {
|
|||||||
if (this->windupPunchTimer == -5) {
|
if (this->windupPunchTimer == -5) {
|
||||||
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
player->actor.velocity.y = 0.0f;
|
player->actor.velocity.y = 0.0f;
|
||||||
|
@ -450,7 +450,7 @@ s32 func_8089AE00(EnDinofos* this, PlayState* play) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((GET_PLAYER_FORM == PLAYER_FORM_GORON) && (player->actor.velocity.y < -5.0f) && (player->unk_AE7 == 1) &&
|
if ((GET_PLAYER_FORM == PLAYER_FORM_GORON) && (player->actor.velocity.y < -5.0f) && (player->actionVar1 == 1) &&
|
||||||
(this->unk_28B == 0)) {
|
(this->unk_28B == 0)) {
|
||||||
this->unk_28B = 1;
|
this->unk_28B = 1;
|
||||||
for (i = 0; i < ARRAY_COUNT(this->colliderJntSphElement) - 3; i++) {
|
for (i = 0; i < ARRAY_COUNT(this->colliderJntSphElement) - 3; i++) {
|
||||||
|
@ -548,7 +548,7 @@ void EnDragon_Grab(EnDragon* this, PlayState* play) {
|
|||||||
|
|
||||||
play->unk_18770(play, player);
|
play->unk_18770(play, player);
|
||||||
player->actor.parent = &this->actor;
|
player->actor.parent = &this->actor;
|
||||||
player->unk_AE8 = 50;
|
player->actionVar2 = 50;
|
||||||
this->action = DEEP_PYTHON_ACTION_GRAB;
|
this->action = DEEP_PYTHON_ACTION_GRAB;
|
||||||
Actor_PlaySfx(&this->actor, NA_SE_EN_UTSUBO_EAT);
|
Actor_PlaySfx(&this->actor, NA_SE_EN_UTSUBO_EAT);
|
||||||
EnDragon_SetupAttack(this);
|
EnDragon_SetupAttack(this);
|
||||||
@ -626,7 +626,7 @@ void EnDragon_Attack(EnDragon* this, PlayState* play) {
|
|||||||
this->grabWaitTimer = 30;
|
this->grabWaitTimer = 30;
|
||||||
CutsceneManager_Stop(this->grabCsId);
|
CutsceneManager_Stop(this->grabCsId);
|
||||||
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->actor.flags &= ~ACTOR_FLAG_100000;
|
this->actor.flags &= ~ACTOR_FLAG_100000;
|
||||||
|
@ -319,7 +319,7 @@ void EnRaf_Idle(EnRaf* this, PlayState* play) {
|
|||||||
if (player->transformation == PLAYER_FORM_GORON) {
|
if (player->transformation == PLAYER_FORM_GORON) {
|
||||||
this->grabTarget = EN_RAF_GRAB_TARGET_GORON_PLAYER;
|
this->grabTarget = EN_RAF_GRAB_TARGET_GORON_PLAYER;
|
||||||
} else {
|
} else {
|
||||||
player->unk_AE8 = 50;
|
player->actionVar2 = 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->playerRotYWhenGrabbed = player->actor.world.rot.y;
|
this->playerRotYWhenGrabbed = player->actor.world.rot.y;
|
||||||
@ -455,7 +455,7 @@ void EnRaf_Chew(EnRaf* this, PlayState* play) {
|
|||||||
case EN_RAF_GRAB_TARGET_GORON_PLAYER:
|
case EN_RAF_GRAB_TARGET_GORON_PLAYER:
|
||||||
if (this->chewCount > (BREG(54) + 4)) {
|
if (this->chewCount > (BREG(54) + 4)) {
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->unk_AE8 = 1000;
|
player->actionVar2 = 1000;
|
||||||
EnRaf_Explode(this, play);
|
EnRaf_Explode(this, play);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -463,7 +463,7 @@ void EnRailgibud_Grab(EnRailgibud* this, PlayState* play) {
|
|||||||
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
||||||
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
||||||
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, EN_RAILGIBUD_ANIM_GRAB_END);
|
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, EN_RAILGIBUD_ANIM_GRAB_END);
|
||||||
|
@ -842,7 +842,7 @@ void EnRd_Grab(EnRd* this, PlayState* play) {
|
|||||||
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
||||||
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
||||||
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
}
|
}
|
||||||
Animation_Change(&this->skelAnime, &gGibdoRedeadGrabEndAnim, 0.5f, 0.0f,
|
Animation_Change(&this->skelAnime, &gGibdoRedeadGrabEndAnim, 0.5f, 0.0f,
|
||||||
Animation_GetLastFrame(&gGibdoRedeadGrabEndAnim), ANIMMODE_ONCE_INTERP, 0.0f);
|
Animation_GetLastFrame(&gGibdoRedeadGrabEndAnim), ANIMMODE_ONCE_INTERP, 0.0f);
|
||||||
|
@ -299,7 +299,7 @@ void func_808FA4F4(EnRr* this, PlayState* play) {
|
|||||||
|
|
||||||
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
if (player->stateFlags2 & PLAYER_STATE2_80) {
|
||||||
player->actor.parent = NULL;
|
player->actor.parent = NULL;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
this->actor.flags |= ACTOR_FLAG_TARGETABLE;
|
this->actor.flags |= ACTOR_FLAG_TARGETABLE;
|
||||||
this->unk_1F0 = 110;
|
this->unk_1F0 = 110;
|
||||||
this->unk_1F6 = 2500;
|
this->unk_1F6 = 2500;
|
||||||
@ -636,7 +636,7 @@ void func_808FB1C0(EnRr* this, PlayState* play) {
|
|||||||
Actor_PlaySfx(&this->actor, NA_SE_EN_EYEGOLE_DEMO_EYE);
|
Actor_PlaySfx(&this->actor, NA_SE_EN_EYEGOLE_DEMO_EYE);
|
||||||
}
|
}
|
||||||
|
|
||||||
player->unk_AE8 = 0;
|
player->actionVar2 = 0;
|
||||||
this->unk_1F0 = 8;
|
this->unk_1F0 = 8;
|
||||||
this->unk_1EA--;
|
this->unk_1EA--;
|
||||||
|
|
||||||
@ -654,7 +654,7 @@ void func_808FB2C0(EnRr* this, PlayState* play) {
|
|||||||
Player* player = GET_PLAYER(play);
|
Player* player = GET_PLAYER(play);
|
||||||
|
|
||||||
this->unk_1E6--;
|
this->unk_1E6--;
|
||||||
player->unk_AE8 = 0;
|
player->actionVar2 = 0;
|
||||||
Math_StepToF(&player->actor.world.pos.x, this->unk_228.x, 30.0f);
|
Math_StepToF(&player->actor.world.pos.x, this->unk_228.x, 30.0f);
|
||||||
Math_StepToF(&player->actor.world.pos.y, this->unk_228.y + this->unk_218, 30.0f);
|
Math_StepToF(&player->actor.world.pos.y, this->unk_228.y + this->unk_218, 30.0f);
|
||||||
Math_StepToF(&player->actor.world.pos.z, this->unk_228.z, 30.0f);
|
Math_StepToF(&player->actor.world.pos.z, this->unk_228.z, 30.0f);
|
||||||
|
@ -421,7 +421,7 @@ void EnTalkGibud_Grab(EnTalkGibud* this, PlayState* play) {
|
|||||||
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
if (!(player->stateFlags2 & PLAYER_STATE2_80) || (player->unk_B62 != 0)) {
|
||||||
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
if ((player->unk_B62 != 0) && (player->stateFlags2 & PLAYER_STATE2_80)) {
|
||||||
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
player->stateFlags2 &= ~PLAYER_STATE2_80;
|
||||||
player->unk_AE8 = 100;
|
player->actionVar2 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, EN_TALK_GIBUD_ANIM_GRAB_END);
|
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, EN_TALK_GIBUD_ANIM_GRAB_END);
|
||||||
|
@ -332,7 +332,7 @@ void func_80BA3DBC(EnToto* this, PlayState* play) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
player = GET_PLAYER(play);
|
player = GET_PLAYER(play);
|
||||||
if ((player->stateFlags1 & PLAYER_STATE1_400) && player->unk_AE7 != 0) {
|
if ((player->stateFlags1 & PLAYER_STATE1_400) && (player->actionVar1 != 0)) {
|
||||||
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_RECEIVED_CIRCUS_LEADERS_MASK);
|
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_RECEIVED_CIRCUS_LEADERS_MASK);
|
||||||
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_MET_TOTO);
|
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_MET_TOTO);
|
||||||
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_MET_GORMAN);
|
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_MET_GORMAN);
|
||||||
|
@ -638,8 +638,8 @@ void EnWizFire_Update(Actor* thisx, PlayState* play2) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player->stateFlags2 & PLAYER_STATE2_4000) && (player->unk_AE8 < 90)) {
|
if ((player->stateFlags2 & PLAYER_STATE2_4000) && (player->actionVar2 < 90)) {
|
||||||
player->unk_AE8 = 90;
|
player->actionVar2 = 90;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->hitByIceArrow && !sPoolHitByIceArrow &&
|
if (!this->hitByIceArrow && !sPoolHitByIceArrow &&
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1049,6 +1049,8 @@ wordReplace = {
|
|||||||
"player->unk_AA0": "player->closestSecretDistSq",
|
"player->unk_AA0": "player->closestSecretDistSq",
|
||||||
"player->unk_AAC": "player->headLimbRot",
|
"player->unk_AAC": "player->headLimbRot",
|
||||||
"player->unk_AB2": "player->upperLimbRot",
|
"player->unk_AB2": "player->upperLimbRot",
|
||||||
|
"player->unk_AE7": "player->actionVar1",
|
||||||
|
"player->unk_AE8": "player->actionVar2",
|
||||||
"player->unk_B2A": "player->getItemDrawIdPlusOne",
|
"player->unk_B2A": "player->getItemDrawIdPlusOne",
|
||||||
"player->getItemDrawId": "player->getItemDrawIdPlusOne",
|
"player->getItemDrawId": "player->getItemDrawIdPlusOne",
|
||||||
"player->unk_B68": "player->fallStartHeight",
|
"player->unk_B68": "player->fallStartHeight",
|
||||||
|
Loading…
Reference in New Issue
Block a user