Skip to content

Commit 8edee0d

Browse files
committed
Add more sound ids
More sound ids Name BoomerangSound enum values Add boomerang ignore flag definition
1 parent 5da5d26 commit 8edee0d

7 files changed

Lines changed: 113 additions & 48 deletions

File tree

include/ty/boomerang.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "ty/effects/Explosion.h"
1414
#include "ty/soundbank.h"
1515

16+
#define BOOMERANG_IGNORE_FLAGS (ID_SNOW_TOP | ID_INVISCOLLIDE | ID_BOOMERANG_IGNORE)
17+
1618
struct BoomerangStaticInfo {
1719
char* pModelName;
1820
int nameTranslationId;
@@ -39,10 +41,10 @@ enum BoomerangType {
3941
#define NUM_BOOMERANGS (BR_Max)
4042

4143
enum BoomerangSound {
42-
BR_SOUND_0 = 0,
43-
BR_SOUND_1 = 1,
44-
BR_SOUND_2 = 2,
45-
BR_SOUND_3 = 3
44+
BR_SOUND_THROW = 0,
45+
BR_SOUND_CATCH = 1,
46+
BR_SOUND_DEFLECT = 2,
47+
BR_SOUND_HIT = 3
4648
};
4749

4850
struct BoomerangDesc : GameObjDesc {

include/ty/soundbank.h

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,84 @@ enum SoundID {
162162
SFX_TyWoodGroan = 0x3,
163163
SFX_TyLand = 0x4,
164164
SFX_TyLongfallLand = 0x5,
165+
165166
SFX_TyBiteRelease = 0x13,
166-
SFX_TyRangStdThrow = 0x14,
167-
SFX_TyRangStdDeflect = 0x16,
167+
168+
SFX_TyRangStdThrow = 0x14,
169+
SFX_TyRangStdCatch = 0x15,
170+
SFX_TyRangStdDeflect = 0x16,
171+
172+
SFX_TyRangAquaThrow = 0x17,
173+
SFX_TyRangAquaCatch = 0x18,
174+
SFX_TyRangAquaDeflect = 0x19,
175+
168176
SFX_TyRangDoomLP = 0x1A,
177+
178+
SFX_TyRangFlameDeflect = 0x1C,
179+
169180
SFX_TyCollectEgg = 0x1F,
170181
SFX_TyBounce = 0x24,
171182
SFX_TyLedgeGrab = 0x26,
172183
SFX_TyLedgePullUp = 0x27,
173184
SFX_EnvExplosionMid = 0x7A,
174185
SFX_BunyipAppear = 0x91,
186+
SFX_OpalCollect = 0xB7,
175187
SFX_TyDiveBiteHitGround = 0x10C,
176188
SFX_TyWaterSlideJump = 0x127,
177189
SFX_TySkid = 0x12C,
178-
SFX_TyRangMultiHit = 0x19A,
190+
191+
SFX_TyRangStdHit = 0x171,
192+
193+
SFX_TyRangFrostyThrow = 0x172,
194+
SFX_TyRangFrostyCatch = 0x173,
195+
SFX_TyRangFrostyDeflect = 0x174,
196+
SFX_TyRangFrostyHit = 0x175,
197+
198+
SFX_TyRangFlameThrow = 0x176,
199+
SFX_TyRangFlameCatch = 0x177,
200+
SFX_TyRangFlameHit = 0x178,
201+
202+
SFX_TyRangKaboomThrow = 0x17D,
203+
SFX_TyRangKaboomCatch = 0x17E,
204+
SFX_TyRangKaboomDeflect = 0x17F,
205+
SFX_TyRangKaboomHit = 0x180,
206+
207+
SFX_TyRangDoomThrow = 0x181,
208+
SFX_TyRangDoomCatch = 0x182,
209+
SFX_TyRangDoomDeflect = 0x183,
210+
SFX_TyRangDoomHit = 0x184,
211+
212+
SFX_TyRangMegaThrow = 0x185,
213+
SFX_TyRangMegaCatch = 0x186,
214+
SFX_TyRangMegaDeflect = 0x187,
215+
SFX_TyRangMegaHit = 0x188,
216+
217+
SFX_TyRangZoomThrow = 0x189,
218+
SFX_TyRangZoomCatch = 0x18A,
219+
SFX_TyRangZoomDeflect = 0x18B,
220+
SFX_TyRangZoomHit = 0x18C,
221+
222+
SFX_TyRangInfraThrow = 0x18D,
223+
SFX_TyRangInfraCatch = 0x18E,
224+
SFX_TyRangInfraDeflect = 0x18F,
225+
SFX_TyRangInfraHit = 0x190,
226+
227+
SFX_191 = 0x191,
228+
229+
SFX_TyRangZappyThrow = 0x192,
230+
SFX_TyRangZappyCatch = 0x193,
231+
SFX_TyRangZappyDeflect = 0x194,
232+
SFX_TyRangZappyHit = 0x195,
233+
234+
SFX_TyRangAquaHit = 0x196,
235+
236+
SFX_TyRangMultiThrow = 0x197,
237+
SFX_TyRangMultiCatch = 0x198,
238+
SFX_TyRangMultiDeflect = 0x199,
239+
SFX_TyRangMultiHit = 0x19A,
240+
179241
SFX_TyRangChronoHit = 0x268,
242+
180243
SFX_Max = 0x269
181244
};
182245

src/ty/source/GuideParticle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void GuideParticle::Update(void) {
177177
// Check if hero is within the bounds of this object
178178
if (Sqr<float>(locHeroPos.x) + Sqr<float>(locHeroPos.y) <= pHero->radius * pHero->radius + 32500.0f
179179
&& locHeroPos.z <= 50.0f && locHeroPos.z >= -50.0f) {
180-
SoundBank_Play(0xB7, NULL, 0);
180+
SoundBank_Play(SFX_OpalCollect, NULL, 0);
181181
unk88 = 1;
182182
gateTimeOutCounter = 0;
183183
counter++;

0 commit comments

Comments
 (0)