Night Owl 7 years ago
parent
commit
3ad3004dd9
  1. 4
      dlls/controller.cpp
  2. 6
      dlls/crowbar.cpp

4
dlls/controller.cpp

@ -392,13 +392,13 @@ void CController::UpdateOnRemove() @@ -392,13 +392,13 @@ void CController::UpdateOnRemove()
if( m_pBall[0] )
{
UTIL_Remove( m_pBall[0] );
m_pBall[0] = nullptr;
m_pBall[0] = 0;
}
if( m_pBall[1] )
{
UTIL_Remove( m_pBall[1] );
m_pBall[1] = nullptr;
m_pBall[1] = 0;
}
}

6
dlls/crowbar.cpp

@ -139,8 +139,10 @@ void CCrowbar::PrimaryAttack() @@ -139,8 +139,10 @@ void CCrowbar::PrimaryAttack()
{
if( !Swing( 1 ) )
{
#ifndef CLIENT_DLL
SetThink( &CCrowbar::SwingAgain );
pev->nextthink = gpGlobals->time + 0.1;
#endif
}
}
@ -301,11 +303,11 @@ int CCrowbar::Swing( int fFirst ) @@ -301,11 +303,11 @@ int CCrowbar::Swing( int fFirst )
}
m_pPlayer->m_iWeaponVolume = (int)( flVol * CROWBAR_WALLHIT_VOLUME );
#endif
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
SetThink( &CCrowbar::Smack );
pev->nextthink = UTIL_WeaponTimeBase() + 0.2;
#endif
m_flNextPrimaryAttack = GetNextAttackDelay( 0.25 );
}
return fDidHit;
}

Loading…
Cancel
Save