1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-24 16:01:26 +00:00

Document ACTOR_FLAG_SFX_ flags and functions (#2162)

* Document `ACTOR_FLAG_SFX_` flags and functions

* format
This commit is contained in:
Dragorn421 2024-09-08 22:26:01 +02:00 committed by GitHub
parent de1a08c061
commit a903f8b8bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 227 additions and 218 deletions

View file

@ -488,7 +488,7 @@ void func_80ADEAC4(EnPoh* this, PlayState* play) {
EnPoh_SetupIdle(this);
}
if (this->lightColor.a == 255) {
func_8002F974(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
}
}
@ -510,7 +510,7 @@ void EnPoh_Idle(EnPoh* this, PlayState* play) {
}
}
if (this->lightColor.a == 255) {
func_8002F974(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
}
}
@ -539,7 +539,7 @@ void func_80ADEC9C(EnPoh* this, PlayState* play) {
EnPoh_SetupAttack(this);
}
if (this->lightColor.a == 255) {
func_8002F974(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_FLY - SFX_FLAG);
}
}
@ -708,7 +708,7 @@ void func_80ADF894(EnPoh* this, PlayState* play) {
this->actor.world.rot.y = this->actor.shape.rot.y;
EnPoh_SetupIdle(this);
}
func_8002F974(&this->actor, NA_SE_EN_PO_AWAY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_AWAY - SFX_FLAG);
}
void EnPoh_Death(EnPoh* this, PlayState* play) {
@ -808,7 +808,7 @@ void EnPoh_TalkRegular(EnPoh* this, PlayState* play) {
if (this->actor.textId != 0x5005) {
func_80ADFA90(this, -13);
} else {
func_8002F974(&this->actor, NA_SE_EN_PO_BIG_CRY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_BIG_CRY - SFX_FLAG);
}
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) {
if (Message_ShouldAdvance(play)) {
@ -834,7 +834,7 @@ void EnPoh_TalkRegular(EnPoh* this, PlayState* play) {
}
void EnPoh_TalkComposer(EnPoh* this, PlayState* play) {
func_8002F974(&this->actor, NA_SE_EN_PO_BIG_CRY - SFX_FLAG);
Actor_PlaySfx_Flagged(&this->actor, NA_SE_EN_PO_BIG_CRY - SFX_FLAG);
if (Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) {
if (Message_ShouldAdvance(play)) {
if (play->msgCtx.choiceIndex == 0) {