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 ) {