Browse Source

Disable shell ejecting for glock.

clcampaign
Andrey Akhmichin 11 months ago
parent
commit
18259b1335
  1. 8
      cl_dll/ev_hldm.cpp

8
cl_dll/ev_hldm.cpp

@ -477,7 +477,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
vec3_t ShellVelocity; vec3_t ShellVelocity;
vec3_t ShellOrigin; vec3_t ShellOrigin;
int shell; // int shell;
vec3_t vecSrc, vecAiming; vec3_t vecSrc, vecAiming;
vec3_t up, right, forward; vec3_t up, right, forward;
@ -489,7 +489,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
empty = args->bparam1; 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 ) )
{ {
@ -499,9 +499,9 @@ static void EV_FireGlock_Impl( event_args_t *args )
V_PunchAxis( 0, -2.0 ); 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 ) ); 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 ) );

Loading…
Cancel
Save