From c1889d51b6e39574f081dbe371c7cfed90f89b51 Mon Sep 17 00:00:00 2001 From: The Fatcat Date: Sat, 13 Sep 2025 00:02:03 -0500 Subject: [PATCH] Add DevMsg's for returns in "WeaponSound" in basecombatweapon_shared.cpp --- src/game/shared/basecombatweapon_shared.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/game/shared/basecombatweapon_shared.cpp b/src/game/shared/basecombatweapon_shared.cpp index 59ecfdf367b..a68243eeeee 100644 --- a/src/game/shared/basecombatweapon_shared.cpp +++ b/src/game/shared/basecombatweapon_shared.cpp @@ -1909,12 +1909,18 @@ void CBaseCombatWeapon::WeaponSound( WeaponSound_t sound_type, float soundtime / // If we have some sounds from the weapon classname.txt file, play a random one of them const char *shootsound = GetShootSound( sound_type ); if ( !shootsound || !shootsound[0] ) + { + DevMsg("No shoot sound for weapon %s\n", GetClassname()); return; - + } + CSoundParameters params; - if ( !GetParametersForSound( shootsound, params, NULL ) ) + if ( !GetParametersForSound(shootsound, params, NULL) ) + { + DevMsg("No parameters for shoot sound %s\n", shootsound); return; + } if ( params.play_to_owner_only ) {