Skip to content

Commit

Permalink
Disable shell ejecting for glock.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Jan 3, 2024
1 parent bd4d8a7 commit 18259b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cl_dll/ev_hldm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 ) )
{
Expand All @@ -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 ) );

Expand Down

0 comments on commit 18259b1

Please sign in to comment.