|
|
|
@ -477,7 +477,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
@@ -477,7 +477,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|
|
|
|
|
|
|
|
|
vec3_t ShellVelocity; |
|
|
|
|
vec3_t ShellOrigin; |
|
|
|
|
int shell; |
|
|
|
|
// int shell;
|
|
|
|
|
vec3_t vecSrc, vecAiming; |
|
|
|
|
vec3_t up, right, forward; |
|
|
|
|
|
|
|
|
@ -489,7 +489,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
@@ -489,7 +489,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|
|
|
|
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 ) ) |
|
|
|
|
{ |
|
|
|
@ -499,9 +499,9 @@ static void EV_FireGlock_Impl( event_args_t *args )
@@ -499,9 +499,9 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|
|
|
|
V_PunchAxis( 0, -2.0 ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EV_GetDefaultShellInfo( args, origin, velocity, ShellVelocity, ShellOrigin, forward, right, up, 20, -12, 4 ); |
|
|
|
|
//EV_GetDefaultShellInfo( args, origin, velocity, ShellVelocity, ShellOrigin, forward, right, up, 20, -12, 4 );
|
|
|
|
|
|
|
|
|
|
EV_EjectBrass( ShellOrigin, ShellVelocity, angles[YAW], shell, TE_BOUNCE_SHELL ); |
|
|
|
|
//EV_EjectBrass( ShellOrigin, ShellVelocity, angles[YAW], shell, TE_BOUNCE_SHELL );
|
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/pl_gun3.wav", gEngfuncs.pfnRandomFloat( 0.92, 1.0 ), ATTN_NORM, 0, 98 + gEngfuncs.pfnRandomLong( 0, 3 ) ); |
|
|
|
|
|
|
|
|
|