From 18259b13353f55c26978cb6aa7a54e2923e4ced6 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 3 Jan 2024 09:47:59 +0500 Subject: [PATCH] Disable shell ejecting for glock. --- cl_dll/ev_hldm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cl_dll/ev_hldm.cpp b/cl_dll/ev_hldm.cpp index 83360eb1..3daad527 100644 --- a/cl_dll/ev_hldm.cpp +++ b/cl_dll/ev_hldm.cpp @@ -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 ) 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 ) 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 ) );