mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 07:21:19 +00:00
Document z_lib Sfx Functions (#1470)
* document lib sfx * rename functions
This commit is contained in:
parent
18d609c1a3
commit
b8aa2a251e
112 changed files with 399 additions and 388 deletions
|
@ -558,14 +558,14 @@ void func_80AEBA2C(EnRu1* this, PlayState* play) {
|
|||
|
||||
void func_80AEBAFC(EnRu1* this) {
|
||||
if (this->unk_298 == 0) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_DIVE_INTO_WATER);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_EV_DIVE_INTO_WATER);
|
||||
this->unk_298 = 1;
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AEBB3C(EnRu1* this) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 5.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_FACE_UP);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_PL_FACE_UP);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -574,13 +574,13 @@ void func_80AEBB78(EnRu1* this) {
|
|||
|
||||
if (Animation_OnFrame(skelAnime, 4.0f) || Animation_OnFrame(skelAnime, 13.0f) ||
|
||||
Animation_OnFrame(skelAnime, 22.0f) || Animation_OnFrame(skelAnime, 31.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_SWIM);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_PL_SWIM);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AEBBF4(EnRu1* this) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 8.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_SUBMERGE);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_PL_SUBMERGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -596,7 +596,7 @@ void func_80AEBC30(PlayState* play) {
|
|||
|
||||
void func_80AEBC84(EnRu1* this, PlayState* play) {
|
||||
if (play->csCtx.curFrame == 130) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_LAUGH_0);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_LAUGH_0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -831,14 +831,14 @@ void func_80AEC650(EnRu1* this) {
|
|||
|
||||
if (this->unk_280 == 0) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 2.0f) || Animation_OnFrame(&this->skelAnime, 7.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_WALK_GROUND + SURFACE_SFX_OFFSET_JABU);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_PL_WALK_GROUND + SURFACE_SFX_OFFSET_JABU);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AEC6B0(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_FALL_DOWN_DIRT);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_FALL);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_EV_FALL_DOWN_DIRT);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_FALL);
|
||||
}
|
||||
|
||||
void func_80AEC6E4(EnRu1* this, PlayState* play) {
|
||||
|
@ -1189,7 +1189,7 @@ void func_80AED44C(EnRu1* this, PlayState* play) {
|
|||
}
|
||||
|
||||
void func_80AED4FC(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_LAND_DIRT);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_EV_LAND_DIRT);
|
||||
}
|
||||
|
||||
void func_80AED520(EnRu1* this, PlayState* play) {
|
||||
|
@ -1197,25 +1197,25 @@ void func_80AED520(EnRu1* this, PlayState* play) {
|
|||
|
||||
Audio_PlaySfxGeneral(NA_SE_PL_PULL_UP_RUTO, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale,
|
||||
&gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_LIFT);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_LIFT);
|
||||
}
|
||||
|
||||
void func_80AED57C(EnRu1* this) {
|
||||
if (this->actor.speed != 0.0f) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_THROW);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_THROW);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AED5B8(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_CRASH);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_CRASH);
|
||||
}
|
||||
|
||||
void func_80AED5DC(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_UNBALLANCE);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_UNBALLANCE);
|
||||
}
|
||||
|
||||
void func_80AED600(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_DISCOVER);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_DISCOVER);
|
||||
}
|
||||
|
||||
s32 func_80AED624(EnRu1* this, PlayState* play) {
|
||||
|
@ -1804,7 +1804,7 @@ void func_80AEEFEC(EnRu1* this, PlayState* play) {
|
|||
|
||||
void func_80AEF080(EnRu1* this) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 11.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_EV_LAND_DIRT);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_EV_LAND_DIRT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1897,7 +1897,7 @@ void func_80AEF40C(EnRu1* this) {
|
|||
if (Animation_OnFrame(skelAnime, 2.0f) || Animation_OnFrame(skelAnime, 7.0f) ||
|
||||
Animation_OnFrame(skelAnime, 12.0f) || Animation_OnFrame(skelAnime, 18.0f) ||
|
||||
Animation_OnFrame(skelAnime, 25.0f) || Animation_OnFrame(skelAnime, 33.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_WALK_GROUND + SURFACE_SFX_OFFSET_JABU);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_PL_WALK_GROUND + SURFACE_SFX_OFFSET_JABU);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1907,12 +1907,12 @@ void func_80AEF4A8(EnRu1* this, PlayState* play) {
|
|||
|
||||
void func_80AEF4E0(EnRu1* this) {
|
||||
if (Animation_OnFrame(&this->skelAnime, 5.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_LAUGH_0);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_LAUGH_0);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AEF51C(EnRu1* this) {
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_THROW);
|
||||
Sfx_PlaySfxAtPos(&this->actor.projectedPos, NA_SE_VO_RT_THROW);
|
||||
}
|
||||
|
||||
void func_80AEF540(EnRu1* this) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue