mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add comprehensive combat sound manager with weapon swings and impacts
Implemented complete combat audio system with 40+ combat sounds: Weapon swing sounds (whooshes): - Small weapons (1H): 3 variations + crit - Medium weapons (2H): 3 variations + crit - Large weapons (heavy 2H): 3 variations + crit - Miss whooshes: separate 1H/2H sounds Impact sounds by armor type: - Flesh (unarmored/cloth): 3 variations + crit - Chain armor: 3 variations + crit - Plate armor: 3 variations + crit - Shield blocks: 3 variations + crit - Metal weapon parries: 1 sound - Wood impacts: 3 variations - Stone impacts: 3 variations Emote sounds: - Clap: 7 variations Technical details: - Loads 40+ sound files from Sound\Item\Weapons and Sound\Character - Simple API: playWeaponSwing(size, isCrit), playImpact(size, type, isCrit) - Random variation selection for non-crit sounds - Volume at 0.8 with global scale control - Crit sounds play 1.2x louder for emphasis - Uses 1H axe impact sounds as base (similar across weapon types) - Ready for integration with combat system Usage examples: ```cpp combatSoundManager->playWeaponSwing(WeaponSize::SMALL, false); combatSoundManager->playImpact(WeaponSize::MEDIUM, ImpactType::PLATE, true); combatSoundManager->playWeaponMiss(true); // 2H miss combatSoundManager->playClap(); ``` This adds essential combat audio feedback for melee combat!
This commit is contained in:
parent
1a937fa69a
commit
da249d5be0
3 changed files with 355 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ set(WOWEE_SOURCES
|
|||
src/audio/npc_voice_manager.cpp
|
||||
src/audio/ambient_sound_manager.cpp
|
||||
src/audio/ui_sound_manager.cpp
|
||||
src/audio/combat_sound_manager.cpp
|
||||
|
||||
# Pipeline (asset loaders)
|
||||
src/pipeline/mpq_manager.cpp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue