|
|
|
@ -521,16 +521,17 @@ void EV_FireGlock2( event_args_t *args )
@@ -521,16 +521,17 @@ void EV_FireGlock2( event_args_t *args )
|
|
|
|
|
VectorCopy( args->origin, origin ); |
|
|
|
|
VectorCopy( args->angles, angles ); |
|
|
|
|
VectorCopy( args->velocity, velocity ); |
|
|
|
|
int empty = args->bparam1; |
|
|
|
|
|
|
|
|
|
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 ) ) |
|
|
|
|
{ |
|
|
|
|
// Add muzzle flash to current weapon model
|
|
|
|
|
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 ); |
|
|
|
|
} |
|
|
|
|