Night Owl 8 years ago
parent
commit
6f44185a64
  1. 5
      cl_dll/ev_hldm.cpp

5
cl_dll/ev_hldm.cpp

@ -521,16 +521,17 @@ void EV_FireGlock2( event_args_t *args )
VectorCopy( args->origin, origin ); VectorCopy( args->origin, origin );
VectorCopy( args->angles, angles ); VectorCopy( args->angles, angles );
VectorCopy( args->velocity, velocity ); VectorCopy( args->velocity, velocity );
int empty = args->bparam1;
AngleVectors( angles, forward, right, up ); AngleVectors( angles, forward, right, up );
shell = gEngfuncs.pEventAPI->EV_FindModelIndex ("models/shell.mdl");// brass shell shell = gEngfuncs.pEventAPI->EV_FindModelIndex( "models/shell.mdl" );// brass shell
if( EV_IsLocal( idx ) ) if( EV_IsLocal( idx ) )
{ {
// Add muzzle flash to current weapon model // Add muzzle flash to current weapon model
EV_MuzzleFlash(); EV_MuzzleFlash();
gEngfuncs.pEventAPI->EV_WeaponAnimation( GLOCK_SHOOT, 2 ); gEngfuncs.pEventAPI->EV_WeaponAnimation( empty ? GLOCK_SHOOT_EMPTY : GLOCK_SHOOT, 2 );
V_PunchAxis( 0, -2.0 ); V_PunchAxis( 0, -2.0 );
} }

Loading…
Cancel
Save