mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
Re-enable jump and land sounds for mounts
Jump effort and landing sounds are fine - issue was with idle fidget animations, not jump/land action sounds. Strict fidget filtering remains.
This commit is contained in:
parent
fe3c6a6a79
commit
b14ffd20df
1 changed files with 18 additions and 19 deletions
|
|
@ -277,16 +277,15 @@ void MountSoundManager::playJumpSound() {
|
||||||
if (elapsed < 200) return;
|
if (elapsed < 200) return;
|
||||||
lastActionSoundTime_ = now;
|
lastActionSoundTime_ = now;
|
||||||
|
|
||||||
// Jump effort sound - DISABLED (attack sounds have pained growls)
|
// Jump effort sound
|
||||||
// if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) {
|
if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) {
|
||||||
// static std::mt19937 rng(std::random_device{}());
|
static std::mt19937 rng(std::random_device{}());
|
||||||
// std::uniform_int_distribution<size_t> dist(0, horseJumpSounds_.size() - 1);
|
std::uniform_int_distribution<size_t> dist(0, horseJumpSounds_.size() - 1);
|
||||||
// const auto& sample = horseJumpSounds_[dist(rng)];
|
const auto& sample = horseJumpSounds_[dist(rng)];
|
||||||
// if (!sample.data.empty()) {
|
if (!sample.data.empty()) {
|
||||||
// AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f);
|
AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f);
|
||||||
// }
|
}
|
||||||
// } else
|
} else if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) {
|
||||||
if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) {
|
|
||||||
// Flying mounts: wing whoosh
|
// Flying mounts: wing whoosh
|
||||||
static std::mt19937 rng(std::random_device{}());
|
static std::mt19937 rng(std::random_device{}());
|
||||||
std::uniform_int_distribution<size_t> dist(0, wingFlapSounds_.size() - 1);
|
std::uniform_int_distribution<size_t> dist(0, wingFlapSounds_.size() - 1);
|
||||||
|
|
@ -306,15 +305,15 @@ void MountSoundManager::playLandSound() {
|
||||||
if (elapsed < 200) return;
|
if (elapsed < 200) return;
|
||||||
lastActionSoundTime_ = now;
|
lastActionSoundTime_ = now;
|
||||||
|
|
||||||
// Landing thud/hoof sound - DISABLED (wound sounds have pained growls)
|
// Landing thud/hoof sound
|
||||||
// if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) {
|
if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) {
|
||||||
// static std::mt19937 rng(std::random_device{}());
|
static std::mt19937 rng(std::random_device{}());
|
||||||
// std::uniform_int_distribution<size_t> dist(0, horseLandSounds_.size() - 1);
|
std::uniform_int_distribution<size_t> dist(0, horseLandSounds_.size() - 1);
|
||||||
// const auto& sample = horseLandSounds_[dist(rng)];
|
const auto& sample = horseLandSounds_[dist(rng)];
|
||||||
// if (!sample.data.empty()) {
|
if (!sample.data.empty()) {
|
||||||
// AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f);
|
AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MountSoundManager::playIdleSound() {
|
void MountSoundManager::playIdleSound() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue