From d9011a90fe3c05b441e94deb7a82d63583649aa6 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 16 Nov 2022 09:56:06 +0500 Subject: [PATCH] Fix weapon bodies passed to EV_WeaponAnimation. --- cl_dll/ev_hldm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_dll/ev_hldm.cpp b/cl_dll/ev_hldm.cpp index c392ef9e..33c5ac92 100644 --- a/cl_dll/ev_hldm.cpp +++ b/cl_dll/ev_hldm.cpp @@ -1269,7 +1269,7 @@ void EV_FireAK47( struct event_args_s *args ) { // Add muzzle flash to current weapon model EV_MuzzleFlash(); - gEngfuncs.pEventAPI->EV_WeaponAnimation( AK47_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 2 ); + gEngfuncs.pEventAPI->EV_WeaponAnimation( AK47_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 0 ); V_PunchAxis( 0, gEngfuncs.pfnRandomFloat( -2.5, -3.2 ) ); V_PunchAxis( 1, gEngfuncs.pfnRandomFloat( -1.5, 1.5 ) ); @@ -1343,7 +1343,7 @@ void EV_FireMac10( struct event_args_s *args ) { // Add muzzle flash to current weapon model EV_MuzzleFlash(); - gEngfuncs.pEventAPI->EV_WeaponAnimation( MAC10_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 2 ); + gEngfuncs.pEventAPI->EV_WeaponAnimation( MAC10_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 0 ); V_PunchAxis( 0, gEngfuncs.pfnRandomFloat( -1.4, -2 ) ); V_PunchAxis( 1, gEngfuncs.pfnRandomFloat( -1.6, 1.6 ) );