mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 14:20:11 +00:00
New tool: sfxconvert (#514)
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * ZAP2 stuff * ZAP why * ZAP again * new tool * python function conventions * new name * new error handling * whoops comments
This commit is contained in:
parent
96512ee3ab
commit
0c2b92125f
5 changed files with 185 additions and 9 deletions
|
@ -245,7 +245,7 @@ void BgGanonOtyuka_Fall(BgGanonOtyuka* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
|
||||
func_80033DB8(globalCtx, 10, 15);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &this->dyna.actor.posRot.pos, 0x28, 0x2839);
|
||||
Audio_PlaySoundAtPosition(globalCtx, &this->dyna.actor.posRot.pos, 0x28, NA_SE_EV_BOX_BREAK);
|
||||
}
|
||||
Actor_Kill(&this->dyna.actor);
|
||||
}
|
||||
|
|
|
@ -1444,7 +1444,7 @@ void func_809818FC(DemoGt* this, GlobalContext* globalCtx) {
|
|||
u16 frames = globalCtx->csCtx.frames;
|
||||
|
||||
if (frames == 845) {
|
||||
func_80078914(&this->dyna.actor.projectedPos, 0x20DE);
|
||||
func_80078914(&this->dyna.actor.projectedPos, NA_SE_EV_TOWER_PARTS_BROKEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
void func_80981930(DemoGt* this, GlobalContext* globalCtx) {
|
||||
|
@ -1626,7 +1626,7 @@ void func_809820AC(DemoGt* this, GlobalContext* globalCtx) {
|
|||
u16 frames = globalCtx->csCtx.frames;
|
||||
|
||||
if (frames == 154) {
|
||||
func_80078914(&this->dyna.actor.projectedPos, 0x20DE);
|
||||
func_80078914(&this->dyna.actor.projectedPos, NA_SE_EV_TOWER_PARTS_BROKEN - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -585,7 +585,7 @@ void func_80AEBAFC(EnRu1* this) {
|
|||
|
||||
void func_80AEBB3C(EnRu1* this) {
|
||||
if (func_800A56C8(&this->skelAnime, 5.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, 0x863);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_FACE_UP);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -595,13 +595,13 @@ void func_80AEBB78(EnRu1* this) {
|
|||
if ((((func_800A56C8(skelAnime, 4.0f)) || (func_800A56C8(skelAnime, 13.0f))) ||
|
||||
(func_800A56C8(skelAnime, 22.0f))) ||
|
||||
(func_800A56C8(skelAnime, 31.0f))) {
|
||||
func_80078914(&this->actor.projectedPos, 0x839);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_SWIM);
|
||||
}
|
||||
}
|
||||
|
||||
void func_80AEBBF4(EnRu1* this) {
|
||||
if (func_800A56C8(&this->skelAnime, 8.0f)) {
|
||||
func_80078914(&this->actor.projectedPos, 0x873);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_SUBMERGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -856,7 +856,7 @@ void func_80AEC650(EnRu1* this) {
|
|||
s32 pad[2];
|
||||
if (this->unk_280 == 0) {
|
||||
if ((func_800A56C8(&this->skelAnime, 2.0f)) || (func_800A56C8(&this->skelAnime, 7.0f))) {
|
||||
func_80078914(&this->actor.projectedPos, 0x803);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_WALK_DIRT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1926,7 +1926,7 @@ void func_80AEF40C(EnRu1* this) {
|
|||
|
||||
if ((func_800A56C8(skelAnime, 2.0f)) || (func_800A56C8(skelAnime, 7.0f)) || (func_800A56C8(skelAnime, 12.0f)) ||
|
||||
(func_800A56C8(skelAnime, 18.0f)) || (func_800A56C8(skelAnime, 25.0f)) || (func_800A56C8(skelAnime, 33.0f))) {
|
||||
func_80078914(&this->actor.projectedPos, 0x803);
|
||||
func_80078914(&this->actor.projectedPos, NA_SE_PL_WALK_DIRT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ void ObjKibako_Idle(ObjKibako* this, GlobalContext* globalCtx) {
|
|||
void ObjKibako_SetupHeld(ObjKibako* this) {
|
||||
this->actionFunc = ObjKibako_Held;
|
||||
this->actor.room = -1;
|
||||
func_8002F7DC(&this->actor, 0x878);
|
||||
func_8002F7DC(&this->actor, NA_SE_PL_PULL_UP_WOODBOX);
|
||||
}
|
||||
|
||||
void ObjKibako_Held(ObjKibako* this, GlobalContext* globalCtx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue