mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 06:21:16 +00:00
Introduce Player csMode enum (#1462)
* player csmode enum * cleanup * missed one, player2 * spell out enum name * use CSMODE_MAX for data
This commit is contained in:
parent
0aff024c01
commit
aa48c66e10
63 changed files with 655 additions and 535 deletions
|
@ -1499,7 +1499,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) {
|
|||
case 0:
|
||||
this->csState2 = 1;
|
||||
func_80064520(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 0x39);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_57);
|
||||
this->subCamId = Play_CreateSubCamera(play);
|
||||
Play_ChangeCameraStatus(play, CAM_ID_MAIN, CAM_STAT_WAIT);
|
||||
Play_ChangeCameraStatus(play, this->subCamId, CAM_STAT_ACTIVE);
|
||||
|
@ -1639,7 +1639,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) {
|
|||
Animation_MorphToPlayOnce(&this->skelAnime, &gTwinrovaIntroAnim, 0.0f);
|
||||
this->workf[ANIM_SW_TGT] = Animation_GetLastFrame(&gTwinrovaIntroAnim);
|
||||
this->timers[0] = 50;
|
||||
func_8002DF54(play, &this->actor, 2);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_2);
|
||||
Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM);
|
||||
SEQCMD_PLAY_SEQUENCE(SEQ_PLAYER_BGM_MAIN, 0, 0, NA_BGM_BOSS);
|
||||
}
|
||||
|
@ -1682,7 +1682,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (this->timers[3] == 19) {
|
||||
func_8002DF54(play, &this->actor, 5);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_5);
|
||||
}
|
||||
|
||||
if (this->timers[3] == 16) {
|
||||
|
@ -1715,7 +1715,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) {
|
|||
this->subCamId = SUB_CAM_ID_DONE;
|
||||
this->csState2 = this->subCamId;
|
||||
func_80064534(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 7);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_7);
|
||||
this->work[TW_PLLR_IDX] = 0;
|
||||
this->targetPos = sTwinrovaPillarPos[0];
|
||||
BossTw_TwinrovaSetupFly(this, play);
|
||||
|
@ -1795,7 +1795,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) {
|
|||
player->actor.world.pos.x = player->actor.world.pos.z = .0f;
|
||||
this->csState2 = 1;
|
||||
func_80064520(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 0x39);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_57);
|
||||
this->subCamId = Play_CreateSubCamera(play);
|
||||
Play_ChangeCameraStatus(play, CAM_ID_MAIN, CAM_STAT_WAIT);
|
||||
Play_ChangeCameraStatus(play, this->subCamId, CAM_STAT_ACTIVE);
|
||||
|
@ -2278,7 +2278,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) {
|
|||
this->subCamId = SUB_CAM_ID_DONE;
|
||||
this->csState2 = this->subCamId;
|
||||
func_80064534(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 7);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_7);
|
||||
BossTw_SetupWait(this, play);
|
||||
}
|
||||
break;
|
||||
|
@ -2682,7 +2682,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) {
|
|||
case 0:
|
||||
this->csState2 = 1;
|
||||
func_80064520(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 8);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_8);
|
||||
this->subCamId = Play_CreateSubCamera(play);
|
||||
Play_ChangeCameraStatus(play, CAM_ID_MAIN, CAM_STAT_WAIT);
|
||||
Play_ChangeCameraStatus(play, this->subCamId, CAM_STAT_ACTIVE);
|
||||
|
@ -2721,7 +2721,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) {
|
|||
sKoumePtr->actor.world.pos.z = sKotakePtr->actor.world.pos.z;
|
||||
sKoumePtr->work[YAW_TGT] = sKotakePtr->work[YAW_TGT] = sKoumePtr->actor.shape.rot.x =
|
||||
sKotakePtr->actor.shape.rot.x = sKoumePtr->actor.shape.rot.y = sKotakePtr->actor.shape.rot.y = 0;
|
||||
func_8002DF54(play, &sKoumePtr->actor, 1);
|
||||
func_8002DF54(play, &sKoumePtr->actor, PLAYER_CSMODE_1);
|
||||
sKoumePtr->actor.flags |= ACTOR_FLAG_0;
|
||||
}
|
||||
break;
|
||||
|
@ -2810,7 +2810,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) {
|
|||
this->csState2 = 4;
|
||||
this->subCamId = SUB_CAM_ID_DONE;
|
||||
func_80064534(play, &play->csCtx);
|
||||
func_8002DF54(play, &this->actor, 7);
|
||||
func_8002DF54(play, &this->actor, PLAYER_CSMODE_7);
|
||||
SEQCMD_PLAY_SEQUENCE(SEQ_PLAYER_BGM_MAIN, 0, 0, NA_BGM_BOSS_CLEAR);
|
||||
Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_DOOR_WARP1, 600.0f, 230.0f, 0.0f, 0, 0, 0,
|
||||
WARP_DUNGEON_ADULT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue