|
|
@ -219,6 +219,12 @@ int CCrowbar::Swing( int fFirst ) |
|
|
|
fDidHit = TRUE; |
|
|
|
fDidHit = TRUE; |
|
|
|
CBaseEntity *pEntity = CBaseEntity::Instance( tr.pHit ); |
|
|
|
CBaseEntity *pEntity = CBaseEntity::Instance( tr.pHit ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// play thwack, smack, or dong sound
|
|
|
|
|
|
|
|
float flVol = 1.0; |
|
|
|
|
|
|
|
int fHitWorld = TRUE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( pEntity ) |
|
|
|
|
|
|
|
{ |
|
|
|
ClearMultiDamage(); |
|
|
|
ClearMultiDamage(); |
|
|
|
// If building with the clientside weapon prediction system,
|
|
|
|
// If building with the clientside weapon prediction system,
|
|
|
|
// UTIL_WeaponTimeBase() is always 0 and m_flNextPrimaryAttack is >= -1.0f, thus making
|
|
|
|
// UTIL_WeaponTimeBase() is always 0 and m_flNextPrimaryAttack is >= -1.0f, thus making
|
|
|
@ -239,12 +245,6 @@ int CCrowbar::Swing( int fFirst ) |
|
|
|
} |
|
|
|
} |
|
|
|
ApplyMultiDamage( m_pPlayer->pev, m_pPlayer->pev ); |
|
|
|
ApplyMultiDamage( m_pPlayer->pev, m_pPlayer->pev ); |
|
|
|
|
|
|
|
|
|
|
|
// play thwack, smack, or dong sound
|
|
|
|
|
|
|
|
float flVol = 1.0; |
|
|
|
|
|
|
|
int fHitWorld = TRUE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( pEntity ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if( pEntity->Classify() != CLASS_NONE && pEntity->Classify() != CLASS_MACHINE ) |
|
|
|
if( pEntity->Classify() != CLASS_NONE && pEntity->Classify() != CLASS_MACHINE ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// play thwack or smack sound
|
|
|
|
// play thwack or smack sound
|
|
|
|