Skip to content

Commit

Permalink
fix: sounds not working
Browse files Browse the repository at this point in the history
  • Loading branch information
1092384 committed Feb 6, 2025
1 parent 5e1d333 commit fdd33d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/sidebars/GunDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,35 +215,35 @@ export default function GunDetails({ gun, explosion, hideSounds }: GunDetailsPro
<InfoboxAudioGroup>
<InfoboxAudio
name="Fire"
src={`${SOUND_BASE_URL}/sfx/weapons/${gun.idString.replace(
src={`https://suroi.io/audio/game/shared/weapons/${gun.idString.replace(
"dual_",
""
)}_fire.mp3`}
/>
{gun.ballistics.lastShotFX && (
<InfoboxAudio
name="Last Shot"
src={`${SOUND_BASE_URL}/sfx/weapons/${gun.idString.replace(
src={`https://suroi.io/audio/game/shared/weapons/${gun.idString.replace(
"dual_",
""
)}_fire_last.mp3`}
/>
)}
<InfoboxAudio
name="Switch"
src={`${SOUND_BASE_URL}/sfx/weapons/${gun.idString.replace(
src={`https://suroi.io/audio/game/shared/weapons/${gun.idString.replace(
"dual_",
""
)}_switch.mp3`}
/>
<InfoboxAudio
name="Reload"
src={`${SOUND_BASE_URL}/sfx/weapons/${gun.idString}_reload.mp3`}
src={`https://suroi.io/audio/game/shared/weapons/${gun.idString}_reload.mp3`}
/>
{gun.reloadFullOnEmpty && (
<InfoboxAudio
name="Full Reload"
src={`${SOUND_BASE_URL}/sfx/weapons/${gun.idString.replace(
src={`https://suroi.io/audio/game/shared/weapons/${gun.idString.replace(
"dual_",
""
)}_reload_full.mp3`}
Expand All @@ -252,7 +252,7 @@ export default function GunDetails({ gun, explosion, hideSounds }: GunDetailsPro
{gun.ballistics.onHitExplosion && (
<InfoboxAudio
name="Explosion"
src={`${SOUND_BASE_URL}/sfx/${Explosions.fromString(gun.ballistics.onHitExplosion).sound}.mp3`}
src={`https://suroi.io/audio/game/shared/sfx/${Explosions.fromString(gun.ballistics.onHitExplosion).sound}.mp3`}
/>
)}
</InfoboxAudioGroup>
Expand Down

0 comments on commit fdd33d6

Please sign in to comment.