Skip to content
Open
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
9 changes: 6 additions & 3 deletions src/game/server/basebludgeonweapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ void CBaseHLBludgeonWeapon::Hit( trace_t &traceHit, Activity nHitActivity, bool
{
gamestats->Event_WeaponHit( pPlayer, !bIsSecondary, GetClassname(), info );
}

// Play hit sound
WeaponSound( MELEE_HIT );
}

// Apply an impact effect
Expand Down Expand Up @@ -360,6 +363,9 @@ void CBaseHLBludgeonWeapon::Swing( int bIsSecondary )
if ( traceHit.fraction == 1.0f )
{
nHitActivity = bIsSecondary ? ACT_VM_MISSCENTER2 : ACT_VM_MISSCENTER;

// Play swing sound
WeaponSound( SINGLE );

// We want to test the first swing again
Vector testEnd = swingStart + forward * GetRange();
Expand All @@ -378,7 +384,4 @@ void CBaseHLBludgeonWeapon::Swing( int bIsSecondary )
//Setup our next attack times
m_flNextPrimaryAttack = gpGlobals->curtime + GetFireRate();
m_flNextSecondaryAttack = gpGlobals->curtime + SequenceDuration();

//Play swing sound
WeaponSound( SINGLE );
}