mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Audio Sequence Player Ids Enum (#1040)
* bgm.h -> sequence.h * First round of filling in enum * More * seqCmd * format
This commit is contained in:
parent
d9c1dffe09
commit
783ef3a117
35 changed files with 413 additions and 393 deletions
|
@ -520,7 +520,7 @@ void BossTw_Init(Actor* thisx, GlobalContext* globalCtx2) {
|
|||
this->actor.world.pos.x = -600.0f;
|
||||
this->actor.world.pos.y = 400.0f;
|
||||
this->actor.world.pos.z = 0.0f;
|
||||
Audio_QueueSeqCmd(NA_BGM_BOSS);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS);
|
||||
} else {
|
||||
BossTw_SetupCSWait(this, globalCtx);
|
||||
}
|
||||
|
@ -1513,7 +1513,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
this->workf[UNK_F9] = 0.0f;
|
||||
this->workf[UNK_F10] = 0.0f;
|
||||
this->workf[UNK_F11] = 600.0f;
|
||||
Audio_QueueSeqCmd(0x10C800FF);
|
||||
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0xC800FF);
|
||||
this->work[CS_TIMER_2] = 0;
|
||||
// fallthrough
|
||||
case 1:
|
||||
|
@ -1642,7 +1642,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
this->timers[0] = 50;
|
||||
func_8002DF54(globalCtx, &this->actor, 2);
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM);
|
||||
Audio_QueueSeqCmd(NA_BGM_BOSS);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1783,7 +1783,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
if (this->csSfxTimer == 180) {
|
||||
func_80078914(&D_8094A7D0, NA_SE_EN_TWINROBA_LAUGH);
|
||||
func_80078914(&D_8094A7D0, NA_SE_EN_TWINROBA_LAUGH2);
|
||||
Audio_QueueSeqCmd(NA_BGM_KOTAKE_KOUME);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_KOTAKE_KOUME);
|
||||
}
|
||||
|
||||
this->csSfxTimer++;
|
||||
|
@ -2209,7 +2209,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
if (this->work[CS_TIMER_1] == 90) {
|
||||
Audio_QueueSeqCmd(0x105A00FF);
|
||||
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x5A00FF);
|
||||
}
|
||||
|
||||
if (this->work[CS_TIMER_1] == 120) {
|
||||
|
@ -2220,7 +2220,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
TitleCard_InitBossName(globalCtx, &globalCtx->actorCtx.titleCtx,
|
||||
SEGMENTED_TO_VIRTUAL(object_tw_Blob_02E170), 0xA0, 0xB4, 0x80, 0x28);
|
||||
gSaveContext.eventChkInf[7] |= 0x20;
|
||||
Audio_QueueSeqCmd(NA_BGM_BOSS);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS);
|
||||
}
|
||||
|
||||
if (this->work[CS_TIMER_1] >= 160) {
|
||||
|
@ -2514,7 +2514,7 @@ void BossTw_DeathCSMsgSfx(BossTw* this, GlobalContext* globalCtx) {
|
|||
|
||||
if (this->work[CS_TIMER_2] == 820) {
|
||||
msgId1 = 0x6057;
|
||||
Audio_QueueSeqCmd(0x105000FF);
|
||||
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x5000FF);
|
||||
}
|
||||
|
||||
if (this->work[CS_TIMER_2] == 860) {
|
||||
|
@ -2692,7 +2692,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
Gameplay_ChangeCameraStatus(globalCtx, this->subCamId, CAM_STAT_ACTIVE);
|
||||
this->subCamEye = mainCam->eye;
|
||||
this->subCamAt = mainCam->at;
|
||||
Audio_QueueSeqCmd(0x100100FF);
|
||||
Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF);
|
||||
break;
|
||||
case 1:
|
||||
spD0.x = Math_SinS(this->actor.world.rot.y) * 200.0f;
|
||||
|
@ -2767,7 +2767,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
sKoumePtr->visible = 1;
|
||||
sKotakePtr->visible = 1;
|
||||
func_80078884(NA_SE_EN_TWINROBA_TRANSFORM);
|
||||
Audio_QueueSeqCmd(NA_BGM_KOTAKE_KOUME);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_KOTAKE_KOUME);
|
||||
this->csState2 = 3;
|
||||
this->work[CS_TIMER_2] = 0;
|
||||
this->subCamYaw = this->subCamYawStep = this->actor.speedXZ = this->subCamDistStep = 0.0f;
|
||||
|
@ -2815,7 +2815,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, GlobalContext* globalCtx) {
|
|||
this->subCamId = 0;
|
||||
func_80064534(globalCtx, &globalCtx->csCtx);
|
||||
func_8002DF54(globalCtx, &this->actor, 7);
|
||||
Audio_QueueSeqCmd(NA_BGM_BOSS_CLEAR);
|
||||
Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS_CLEAR);
|
||||
Actor_SpawnAsChild(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_DOOR_WARP1, 600.0f, 230.0f,
|
||||
0.0f, 0, 0, 0, WARP_DUNGEON_ADULT);
|
||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_ITEM_B_HEART, -600.0f, 230.f, 0.0f, 0, 0, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue