2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 18:05:23 +01:00
This commit is contained in:
Night Owl 2017-07-05 17:53:04 +05:00
parent 55c3eb674c
commit 33ba064b88
2 changed files with 6 additions and 5 deletions

View File

@ -1159,8 +1159,6 @@ void EV_Crowbar( event_args_t *args )
if( EV_IsLocal( idx ) ) if( EV_IsLocal( idx ) )
{ {
gEngfuncs.pEventAPI->EV_WeaponAnimation( CROWBAR_ATTACK1MISS, 1 );
switch( (g_iSwing++) % 3 ) switch( (g_iSwing++) % 3 )
{ {
case 0: case 0:

View File

@ -183,9 +183,12 @@ int CCrowbar::Swing( int fFirst )
} }
} }
#endif #endif
if( fFirst )
{
PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_usCrowbar, PLAYBACK_EVENT_FULL( FEV_NOTHOST, m_pPlayer->edict(), m_usCrowbar,
0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0, 0.0, (float *)&g_vecZero, (float *)&g_vecZero, 0, 0, 0,
0, 0, 0 ); 0, 0, 0 );
}
if( tr.flFraction >= 1.0 ) if( tr.flFraction >= 1.0 )
{ {