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:
Kelsi 2026-02-10 20:33:23 -08:00
parent fe3c6a6a79
commit b14ffd20df

View file

@ -277,16 +277,15 @@ void MountSoundManager::playJumpSound() {
if (elapsed < 200) return;
lastActionSoundTime_ = now;
// Jump effort sound - DISABLED (attack sounds have pained growls)
// if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) {
// static std::mt19937 rng(std::random_device{}());
// std::uniform_int_distribution<size_t> dist(0, horseJumpSounds_.size() - 1);
// const auto& sample = horseJumpSounds_[dist(rng)];
// if (!sample.data.empty()) {
// AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f);
// }
// } else
if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) {
// Jump effort sound
if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) {
static std::mt19937 rng(std::random_device{}());
std::uniform_int_distribution<size_t> dist(0, horseJumpSounds_.size() - 1);
const auto& sample = horseJumpSounds_[dist(rng)];
if (!sample.data.empty()) {
AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f);
}
} else if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) {
// Flying mounts: wing whoosh
static std::mt19937 rng(std::random_device{}());
std::uniform_int_distribution<size_t> dist(0, wingFlapSounds_.size() - 1);
@ -306,15 +305,15 @@ void MountSoundManager::playLandSound() {
if (elapsed < 200) return;
lastActionSoundTime_ = now;
// Landing thud/hoof sound - DISABLED (wound sounds have pained growls)
// if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) {
// static std::mt19937 rng(std::random_device{}());
// std::uniform_int_distribution<size_t> dist(0, horseLandSounds_.size() - 1);
// const auto& sample = horseLandSounds_[dist(rng)];
// if (!sample.data.empty()) {
// AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f);
// }
// }
// Landing thud/hoof sound
if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) {
static std::mt19937 rng(std::random_device{}());
std::uniform_int_distribution<size_t> dist(0, horseLandSounds_.size() - 1);
const auto& sample = horseLandSounds_[dist(rng)];
if (!sample.data.empty()) {
AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f);
}
}
}
void MountSoundManager::playIdleSound() {