Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/game/shared/basecombatweapon_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down