mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
Various SFX fixes (#237)
* Various SFX fixes * Fix sfx references in z_en_zl2.c
This commit is contained in:
parent
a5aee3d691
commit
61544b873d
45 changed files with 362 additions and 342 deletions
|
@ -157,7 +157,7 @@ void ArmsHook_Shoot(ArmsHook* this, GlobalContext* globalCtx) {
|
|||
return;
|
||||
}
|
||||
|
||||
func_8002F8F0(&player->actor, 0x100B);
|
||||
func_8002F8F0(&player->actor, NA_SE_IT_HOOKSHOT_CHAIN - SFX_FLAG);
|
||||
ArmsHook_CheckForCancel(this);
|
||||
|
||||
if (this->timer != 0) {
|
||||
|
|
|
@ -77,7 +77,7 @@ void ArrowFire_Charge(ArrowFire* this, GlobalContext* globalCtx) {
|
|||
this->actor.posRot.pos = arrow->actor.posRot.pos;
|
||||
this->actor.shape.rot = arrow->actor.shape.rot;
|
||||
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_FIRE);
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_FIRE - SFX_FLAG);
|
||||
|
||||
// If arrow's attached is null, Link has fired the arrow
|
||||
if (arrow->actor.attachedA == NULL) {
|
||||
|
|
|
@ -78,7 +78,7 @@ void ArrowIce_Charge(ArrowIce* this, GlobalContext* globalCtx) {
|
|||
this->actor.posRot.pos = arrow->actor.posRot.pos;
|
||||
this->actor.shape.rot = arrow->actor.shape.rot;
|
||||
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_ICE);
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_ICE - SFX_FLAG);
|
||||
|
||||
// If arrow's attached is null, Link has fired the arrow
|
||||
if (arrow->actor.attachedA == NULL) {
|
||||
|
|
|
@ -78,7 +78,7 @@ void ArrowLight_Charge(ArrowLight* this, GlobalContext* globalCtx) {
|
|||
this->actor.posRot.pos = arrow->actor.posRot.pos;
|
||||
this->actor.shape.rot = arrow->actor.shape.rot;
|
||||
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_LIGHT);
|
||||
func_8002F974(&this->actor, NA_SE_PL_ARROW_CHARGE_LIGHT - SFX_FLAG);
|
||||
|
||||
// If arrow's attached is null, Link has fired the arrow
|
||||
if (arrow->actor.attachedA == NULL) {
|
||||
|
|
|
@ -210,7 +210,7 @@ void func_8086C1A0(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
func_800AA000(0.0f, 0x78, 0x14, 0xA);
|
||||
this->unk_16A = 0xB;
|
||||
}
|
||||
func_8002F974(&this->dyna.actor, 0x208F);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BUYOSTAND_RISING - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -246,7 +246,7 @@ void func_8086C3D8(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
this->dyna.actor.velocity.y)) {
|
||||
this->dyna.actor.posRot.rot.y = 0;
|
||||
this->unk_16A = 0x3C;
|
||||
Audio_PlayActorSound2(&this->dyna.actor, 0x289F);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U);
|
||||
this->dyna.actor.attachedB->posRot.pos.y = this->dyna.actor.posRot.pos.y + 140.0f;
|
||||
this->actionFunc = func_8086C5BC;
|
||||
func_800800F8(globalCtx, 0xC08, -0x63, this->dyna.actor.attachedB, 0);
|
||||
|
@ -257,7 +257,7 @@ void func_8086C3D8(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
player->actor.posRot.rot.y = player->actor.shape.rot.y;
|
||||
func_800AA000(0.0f, 0xFF, 0x1E, 0x96);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x2090);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BUYOSTAND_FALL - SFX_FLAG);
|
||||
if (this->unk_16A != 0) {
|
||||
this->unk_16A -= 1;
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ void func_8086C7D0(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_A);
|
||||
this->actionFunc = BgBdanObjects_DoNothing;
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x208F);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BUYOSTAND_RISING - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -387,12 +387,12 @@ void func_8086C9F0(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
Flags_UnsetSwitch(globalCtx, this->unk_168);
|
||||
this->actionFunc = func_8086C9A8;
|
||||
}
|
||||
func_8002F948(this, 0x205E);
|
||||
func_8002F948(this, NA_SE_EV_WATER_LEVEL_DOWN - SFX_FLAG);
|
||||
} else {
|
||||
if (Math_ApproxF(&this->dyna.actor.posRot.pos.y, this->dyna.actor.initPosRot.pos.y + 75.0f, 0.5f)) {
|
||||
this->actionFunc = func_8086CABC;
|
||||
}
|
||||
func_8002F948(this, 0x205E);
|
||||
func_8002F948(this, NA_SE_EV_WATER_LEVEL_DOWN - SFX_FLAG);
|
||||
}
|
||||
globalCtx->colCtx.stat.colHeader->waterBoxes[7].unk_02 = this->dyna.actor.posRot.pos.y;
|
||||
}
|
||||
|
@ -427,7 +427,7 @@ void func_8086CB8C(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||
this->actionFunc = BgBdanObjects_DoNothing;
|
||||
func_800C078C(globalCtx, 0, -1);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x2090);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BUYOSTAND_FALL - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,8 @@ void BgDdanKd_LowerStairs(BgDdanKd* this, GlobalContext* globalCtx) {
|
|||
func_8003555C(globalCtx, &sp5C, &D_808718FC, &D_80871908);
|
||||
}
|
||||
func_8005AA1C(&globalCtx->cameras, 0, sp4C * 0.6f, 3);
|
||||
Audio_PlaySoundGeneral(0x2027, &this->dyna.actor.projectedPos, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
Audio_PlaySoundGeneral(NA_SE_EV_PILLAR_SINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, &D_801333E0,
|
||||
&D_801333E0, &D_801333E8);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ void func_80878300(BgGateShutter* this, GlobalContext* globalCtx) {
|
|||
Actor* thisx = &this->dyna.actor;
|
||||
|
||||
if (this->unk_178 == 0) {
|
||||
Audio_PlayActorSound2(thisx, 0x2067);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG);
|
||||
thisx->posRot.pos.x -= 2.0f;
|
||||
Math_SmoothScaleMaxF(&thisx->posRot.pos.z, -1375.0f, 0.8f, 0.3f);
|
||||
if (thisx->posRot.pos.x < -89.0f) {
|
||||
|
@ -105,7 +105,7 @@ void func_808783D4(BgGateShutter* this, GlobalContext* globalCtx) {
|
|||
Actor* thisx = &this->dyna.actor;
|
||||
|
||||
if (this->unk_178 == 0) {
|
||||
Audio_PlayActorSound2(thisx, 0x2067);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG);
|
||||
thisx->posRot.pos.x += 2.0f;
|
||||
Math_SmoothScaleMaxF(&thisx->posRot.pos.z, -1350.0f, 0.8f, 0.3f);
|
||||
if (thisx->posRot.pos.x > 90.0f) {
|
||||
|
|
|
@ -202,7 +202,7 @@ void func_808801B8(BgHakaTrap* this, GlobalContext* globalCtx) {
|
|||
|
||||
if ((D_80880F30 == 0) && (func_8008E988(globalCtx) == 0)) {
|
||||
if (!Math_ApproxF(&this->dyna.actor.posRot.pos.x, this->dyna.actor.initPosRot.pos.x, 0.5f)) {
|
||||
func_8002F974(&this->dyna.actor, 0x2058);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_TRAP_OBJ_SLIDE - SFX_FLAG);
|
||||
} else if (this->dyna.actor.params == HAKA_TRAP_SPIKED_WALL) {
|
||||
D_80881018 |= 1;
|
||||
} else if (this->dyna.actor.params == HAKA_TRAP_SPIKED_WALL_2) {
|
||||
|
@ -232,7 +232,7 @@ void func_808802D8(BgHakaTrap* this, GlobalContext* globalCtx) {
|
|||
this->timer--;
|
||||
}
|
||||
|
||||
func_8002F974(&this->dyna.actor, 0x205B);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BURN_OUT - SFX_FLAG);
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
f32 rand = Math_Rand_ZeroOne();
|
||||
|
@ -355,7 +355,7 @@ void func_808806BC(BgHakaTrap* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
if (this->dyna.actor.velocity.y >= 0.01f) {
|
||||
func_8002F974(&this->dyna.actor, 0x204D);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_CHINETRAP_DOWN - SFX_FLAG);
|
||||
}
|
||||
|
||||
if (this->timer == 0) {
|
||||
|
@ -425,7 +425,7 @@ void func_80880AE8(BgHakaTrap* this, GlobalContext* globalCtx) {
|
|||
|
||||
this->dyna.actor.shape.rot.z += this->dyna.actor.posRot.rot.z;
|
||||
if (this->dyna.actor.posRot.rot.z >= 0x1801) {
|
||||
func_8002F974(&this->dyna.actor, 0x2057);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_WIND_TRAP - SFX_FLAG);
|
||||
}
|
||||
|
||||
func_808809E4(this, globalCtx, this->dyna.actor.posRot.rot.z);
|
||||
|
@ -436,7 +436,7 @@ void func_80880C0C(BgHakaTrap* this, GlobalContext* globalCtx) {
|
|||
this->timer--;
|
||||
}
|
||||
|
||||
func_8002F974(&this->dyna.actor, 0x2057);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_WIND_TRAP - SFX_FLAG);
|
||||
|
||||
if (this->timer == 0) {
|
||||
this->timer = 1;
|
||||
|
@ -512,6 +512,6 @@ void BgHakaTrap_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
sp2C.y = thisx->posRot.pos.y + 110.0f;
|
||||
|
||||
func_800A6EF4(&globalCtx->mf_11D60, &sp2C, &this->unk_16C);
|
||||
func_80078914(&this->unk_16C, 0x200D);
|
||||
func_80078914(&this->unk_16C, NA_SE_EV_BRIDGE_CLOSE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -186,7 +186,7 @@ void BgHidanFirewall_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
BgHidanFirewall_ColliderFollowPlayer(this, globalCtx);
|
||||
CollisionCheck_SetAT(globalCtx, &globalCtx->colChkCtx, &this->collider);
|
||||
CollisionCheck_SetOC(globalCtx, &globalCtx->colChkCtx, &this->collider);
|
||||
func_8002F974(&this->actor, 0x2034);
|
||||
func_8002F974(&this->actor, NA_SE_EV_FIRE_PLATE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ void func_8088706C(BgHidanFslift* this, GlobalContext* globalCtx) {
|
|||
Audio_PlayActorSound2(thisx, NA_SE_EV_BLOCK_BOUND);
|
||||
func_80886FB4(this);
|
||||
} else {
|
||||
func_8002F974(thisx, 0x20b9);
|
||||
func_8002F974(thisx, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG);
|
||||
}
|
||||
func_80886F24(this);
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ void func_808870D8(BgHidanFslift* this, GlobalContext* globalCtx) {
|
|||
Audio_PlayActorSound2(thisx, NA_SE_EV_BLOCK_BOUND);
|
||||
func_80886FB4(this);
|
||||
} else {
|
||||
func_8002F974(thisx, 0x20b9);
|
||||
func_8002F974(thisx, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG);
|
||||
}
|
||||
} else {
|
||||
func_80886FB4(this);
|
||||
|
|
|
@ -127,7 +127,7 @@ void func_80889C18(BgHidanKousi* this, GlobalContext* globalCtx) {
|
|||
BgHidanKousi_SetupAction(this, func_80889C90);
|
||||
}
|
||||
Actor_MoveForward(&this->dyna.actor);
|
||||
func_8002F974(&this->dyna.actor, 0x2036);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG);
|
||||
}
|
||||
|
||||
void func_80889C90(BgHidanKousi* this, GlobalContext* globalCtx) {
|
||||
|
@ -138,7 +138,7 @@ void func_80889C90(BgHidanKousi* this, GlobalContext* globalCtx) {
|
|||
BgHidanKousi_SetupAction(this, func_80889D28);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x2036);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ void func_8088F514(BgHidanSyoku* this, GlobalContext* globalCtx) {
|
|||
if (this->unk_16A == 0) {
|
||||
func_8088F47C(this);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x20b9);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ void func_8088F5A0(BgHidanSyoku* this, GlobalContext* globalCtx) {
|
|||
if (this->unk_16A == 0) {
|
||||
func_8088F47C(this);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x20b9);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ void func_80893438(BgJyaAmishutter* this) {
|
|||
func_808934B0(this);
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EV_METALDOOR_STOP);
|
||||
} else {
|
||||
func_8002F974(&this->actor, 0x2036);
|
||||
func_8002F974(&this->actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ void func_8089350C(BgJyaAmishutter* this) {
|
|||
func_808933BC(this);
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EV_METALDOOR_STOP);
|
||||
} else {
|
||||
func_8002F974(&this->actor, 0x2036);
|
||||
func_8002F974(&this->actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ void BgJyaLift_Move(BgJyaLift* this, GlobalContext* globalCtx) {
|
|||
BgJyaLift_SetFinalPosY(this);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x200C);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ void BgMenkuriKaiten_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
BgMenkuriKaiten* this = THIS;
|
||||
|
||||
if (!Flags_GetSwitch(globalCtx, this->actor.params) && func_80043590(&this->actor)) {
|
||||
func_8002F974(&this->actor, 0x2024);
|
||||
func_8002F974(&this->actor, NA_SE_EV_ELEVATOR_MOVE - SFX_FLAG);
|
||||
this->actor.shape.rot.y += 0x80;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ void func_8089F788(BgMizuUzu* this, GlobalContext* globalCtx) {
|
|||
} else {
|
||||
func_8003EC50(globalCtx, &globalCtx->colCtx.dyna, this->dyna.dynaPolyId);
|
||||
}
|
||||
Audio_PlayActorSound2(thisx, 0x20CD);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_WATER_CONVECTION - SFX_FLAG);
|
||||
thisx->shape.rot.y += 0x1C0;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ void BgSpot01Idohashira_PlayBreakSfx1(BgSpot01Idohashira* this) {
|
|||
}
|
||||
|
||||
void BgSpot01Idohashira_PlayBreakSfx2(BgSpot01Idohashira* this, GlobalContext* globalCtx) {
|
||||
Audio_PlaySoundAtPosition(globalCtx, &this->dyna.actor.posRot.pos, 0x3C, NA_SE_EV_WOODBOX_BREAK);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &this->dyna.actor.posRot.pos, 60, NA_SE_EV_WOODBOX_BREAK);
|
||||
}
|
||||
|
||||
void func_808AAD3C(GlobalContext* globalCtx, Vec3f* vec, u32 arg2) {
|
||||
|
|
|
@ -123,7 +123,7 @@ void func_808B318C(BgSpot12Gate* this, GlobalContext* globalCtx) {
|
|||
Quake_SetCountdown(var, 0xC);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP);
|
||||
} else {
|
||||
func_8002F974(thisx, 0x2067);
|
||||
func_8002F974(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -111,9 +111,9 @@ void func_808B3604(BgSpot12Saku* this, GlobalContext* globalCtx) {
|
|||
this->dyna.actor.initPosRot.pos.z - (Math_Coss(this->dyna.actor.shape.rot.y + 0x4000) * temp_f18);
|
||||
if (fabsf(temp_ret) < 0.0001f) {
|
||||
func_808B3714(this);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, 0x280E);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x2067);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_METALGATE_OPEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -70,10 +70,10 @@ void func_808B4930(BgSpot15Saku* this, GlobalContext* globalCtx) {
|
|||
void func_808B4978(BgSpot15Saku* this, GlobalContext* globalCtx) {
|
||||
Actor* thisx = &this->dyna.actor;
|
||||
if (!this->unk_17C) {
|
||||
Audio_PlayActorSound2(thisx, 0x2067);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG);
|
||||
thisx->posRot.pos.z -= 2.0f;
|
||||
if (thisx->posRot.pos.z < 2660.0f) {
|
||||
Audio_PlayActorSound2(thisx, 0x280E);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP);
|
||||
this->unk_17C = 0x1E;
|
||||
this->actionFunc = func_808B4A04;
|
||||
}
|
||||
|
|
|
@ -263,10 +263,10 @@ void func_808B8F08(BgSpot18Obj* this, GlobalContext* globalCtx) {
|
|||
this->dyna.unk_150 = 0.0f;
|
||||
player->stateFlags2 &= ~0x10;
|
||||
Flags_SetSwitch(globalCtx, (this->dyna.actor.params >> 8) & 0x3F);
|
||||
func_80078884(0x4802);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, 0x2835);
|
||||
func_80078884(NA_SE_SY_CORRECT_CHIME);
|
||||
Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND);
|
||||
} else {
|
||||
func_8002F974(&this->dyna.actor, 0x200A);
|
||||
func_8002F974(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ void func_808BAF40(BgTokiSwd* this, GlobalContext* globalCtx) {
|
|||
globalCtx->csCtx.segment = D_808BB7A0;
|
||||
}
|
||||
Audio_SetBGM(NA_BGM_STOP);
|
||||
Audio_SetBGM(NA_SE_PL_BOUND_DIRT);
|
||||
Audio_SetBGM(0x53);
|
||||
gSaveContext.cutsceneTrigger = 1;
|
||||
this->actor.attachedA = NULL;
|
||||
BgTokiSwd_SetupAction(this, func_808BB0AC);
|
||||
|
|
|
@ -83,7 +83,7 @@ void func_8097C8A8(DemoGo* this, GlobalContext* globalCtx) {
|
|||
|
||||
if ((thisx->params == 0) || (thisx->params == 1)) {
|
||||
func_800A6E10(&globalCtx->mf_11D60, &thisx->posRot.pos, &sp20, &sp1C);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &sp20, 20, 0x28A0);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &sp20, 20, NA_SE_EV_OBJECT_FALL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ void EnBoom_Fly(EnBoom* this, GlobalContext* globalCtx) {
|
|||
// Set xyz speed, move forward, and play the boomerang sound
|
||||
func_8002D9A4(&this->actor, 12.0f);
|
||||
Actor_MoveForward(&this->actor);
|
||||
func_8002F974(this, 0x1010);
|
||||
func_8002F974(this, NA_SE_IT_BOOMERANG_FLY - SFX_FLAG);
|
||||
|
||||
// If the boomerang collides with EnItem00 or a Skulltula token, set grabbed pointer to pick it up
|
||||
collided = (this->collider.base.atFlags & 0x2);
|
||||
|
|
|
@ -925,7 +925,7 @@ void EnFloormas_Merge(EnFloormas* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
}
|
||||
}
|
||||
func_8002F974(&this->actor, 0x3133);
|
||||
func_8002F974(&this->actor, NA_SE_EN_FLOORMASTER_RESTORE - SFX_FLAG);
|
||||
}
|
||||
|
||||
void EnFloormas_SmWait(EnFloormas* this, GlobalContext* globalCtx) {
|
||||
|
|
|
@ -725,7 +725,7 @@ void func_80A5475C(EnHeishi2* this, GlobalContext* globalCtx) {
|
|||
|
||||
if (this->unk_300 == 4) {
|
||||
this->unk_309 = 1;
|
||||
func_80078884(0x4807);
|
||||
func_80078884(NA_SE_SY_TRE_BOX_APPEAR);
|
||||
this->actionFunc = func_80A540C0;
|
||||
}
|
||||
return;
|
||||
|
|
|
@ -77,7 +77,8 @@ void EnPubox_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
thisx->speedXZ = (thisx->speedXZ < -2.5f) ? -2.5f : ((thisx->speedXZ > 2.5f) ? 2.5f : thisx->speedXZ);
|
||||
Math_SmoothScaleMaxMinF(&thisx->speedXZ, 0.0f, 1.0f, 1.0f, 0.0f);
|
||||
if (thisx->speedXZ != 0.0f) {
|
||||
Audio_PlaySoundGeneral(0x200A, &thisx->projectedPos, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
Audio_PlaySoundGeneral(NA_SE_EV_ROCK_SLIDE - SFX_FLAG, &thisx->projectedPos, 4, &D_801333E0, &D_801333E0,
|
||||
&D_801333E8);
|
||||
}
|
||||
this->dyna.unk_154 = 0.0f;
|
||||
this->dyna.unk_150 = 0.0f;
|
||||
|
|
|
@ -1227,7 +1227,8 @@ void func_80AED4FC(EnRu1* this) {
|
|||
func_80AED520(EnRu1* this, GlobalContext* globalCtx) {
|
||||
Player* player = PLAYER;
|
||||
|
||||
Audio_PlaySoundGeneral(0x883, &player->actor.projectedPos, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
Audio_PlaySoundGeneral(NA_SE_PL_PULL_UP_RUTO, &player->actor.projectedPos, 4, &D_801333E0, &D_801333E0,
|
||||
&D_801333E8);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_LIFT);
|
||||
}
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, GlobalContext* globalCtx) {
|
|||
if (this->collider.base.at == &player->actor) {
|
||||
EnTuboTrap_SpawnFragments(this, globalCtx);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &this->actor.posRot.pos, 40, NA_SE_EV_POT_BROKEN);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &player->actor.posRot.pos, 40, 0x83E);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &player->actor.posRot.pos, 40, NA_SE_PL_BODY_HIT);
|
||||
EnTuboTrap_DropCollectible(this, globalCtx);
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
|
@ -271,7 +271,7 @@ void EnTuboTrap_Fly(EnTuboTrap* this, GlobalContext* globalCtx) {
|
|||
f32 dy = this->originPos.y - this->actor.posRot.pos.y;
|
||||
f32 dz = this->originPos.z - this->actor.posRot.pos.z;
|
||||
|
||||
Audio_PlayActorSound2(&this->actor, 0x3037);
|
||||
Audio_PlayActorSound2(&this->actor, NA_SE_EN_TUBOOCK_FLY - SFX_FLAG);
|
||||
|
||||
if (240.0f < sqrtf(SQ(dx) + SQ(dy) + SQ(dz))) {
|
||||
Math_SmoothScaleMaxF(&this->actor.gravity, -3.0f, 0.2f, 0.5f);
|
||||
|
|
|
@ -420,7 +420,7 @@ void func_80B4BBC4(EnZl1* this, GlobalContext* globalCtx) {
|
|||
|
||||
SkelAnime_ChangeAnim(&this->skelAnime, &D_06000438, 1.0f, 0.0f, frameCount, 0, 0.0f);
|
||||
func_8002DF54(globalCtx, &this->actor, 1);
|
||||
func_8002F7DC(&player->actor, 0x6836);
|
||||
func_8002F7DC(&player->actor, NA_SE_VO_LI_SURPRISE_KID);
|
||||
this->actor.textId = 0x7039;
|
||||
func_8010B680(globalCtx, this->actor.textId, 0);
|
||||
this->unk_1E2 = 0;
|
||||
|
|
|
@ -647,18 +647,18 @@ void func_80B4FD90(EnZl2* this, GlobalContext* globalCtx) {
|
|||
|
||||
void func_80B4FDD4(EnZl2* this) {
|
||||
if (func_800A56C8(&this->skelAnime, 14.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, 0x802);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_WALK_CONCRETE);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80B4FE10(GlobalContext* globalCtx) {
|
||||
if ((globalCtx->csCtx.frames >= 830) && (globalCtx->csCtx.frames < 1081)) {
|
||||
func_800788CC(0x2098);
|
||||
func_800788CC(NA_SE_EV_EARTHQUAKE - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80B4FE48(EnZl2* this) {
|
||||
func_80078914(&this->actor.projectedPos, 0x2086);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_GOTO_HEAVEN - SFX_FLAG);
|
||||
}
|
||||
|
||||
void func_80B4FE6C(EnZl2* this) {
|
||||
|
@ -1493,7 +1493,7 @@ void func_80B51D24(EnZl2* this, GlobalContext* globalCtx) {
|
|||
|
||||
if ((func_800A56C8(skelAnime, 6.0f)) || (func_800A56C8(skelAnime, 0.0f))) {
|
||||
if (this->actor.bgCheckFlags & 1) {
|
||||
sfxId = 0x800;
|
||||
sfxId = SFX_FLAG;
|
||||
sfxId += func_80041F34(&globalCtx->colCtx, this->actor.floorPoly, this->actor.floorPolySource);
|
||||
func_80078914(&this->actor.projectedPos, sfxId);
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ void MagicWind_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
// "Indicates start" = %s
|
||||
// Means start
|
||||
LOG_STRING("表示開始", "../z_magic_wind.c", 486);
|
||||
func_8002F7DC(player, 0x087B);
|
||||
func_8002F7DC(player, NA_SE_PL_MAGIC_WIND_WARP);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ void MagicWind_WaitForTimer(MagicWind* this, GlobalContext* globalCtx) {
|
|||
|
||||
// Means start
|
||||
LOG_STRING("表示開始", "../z_magic_wind.c", 539);
|
||||
func_8002F7DC(&player->actor, 0x87A);
|
||||
func_8002F7DC(&player->actor, NA_SE_PL_MAGIC_WIND_NORMAL);
|
||||
MagicWind_UpdateAlpha(1.0f);
|
||||
MagicWind_SetupAction(this, MagicWind_Grow);
|
||||
SkelCurve_Update(globalCtx, &this->skelCurve);
|
||||
|
|
|
@ -111,7 +111,7 @@ void func_80B92D44(ObjElevator* this, GlobalContext* globalCtx) {
|
|||
Audio_PlayActorSound2(thisx, NA_SE_EV_FOOT_SWITCH);
|
||||
func_80B92C5C(this);
|
||||
} else {
|
||||
Audio_PlayActorSound2(thisx, 0x201E);
|
||||
Audio_PlayActorSound2(thisx, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue