From 6259156cb194f3d5e73319c8548c22ac69ea5016 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Wed, 21 Jun 2023 01:23:24 +0300 Subject: [PATCH] Remove usage of redundant m249 fire sounds (they are all the same and only one is used in opfor) --- cl_dll/ev_hldm.cpp | 13 +------------ dlls/gearbox/m249.cpp | 2 -- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/cl_dll/ev_hldm.cpp b/cl_dll/ev_hldm.cpp index 543d093c..a98e3878 100644 --- a/cl_dll/ev_hldm.cpp +++ b/cl_dll/ev_hldm.cpp @@ -2000,18 +2000,7 @@ void EV_FireM249( event_args_t *args ) EV_EjectBrass( ShellOrigin, ShellVelocity, angles[YAW], shell, TE_BOUNCE_SHELL ); - switch( gEngfuncs.pfnRandomLong( 0, 2 ) ) - { - case 0: - gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/saw_fire1.wav", 1, ATTN_NORM, 0, PITCH_NORM); - break; - case 1: - gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/saw_fire2.wav", 1, ATTN_NORM, 0, PITCH_NORM); - break; - case 2: - gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/saw_fire3.wav", 1, ATTN_NORM, 0, PITCH_NORM); - break; - } + gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/saw_fire1.wav", 1, ATTN_NORM, 0, PITCH_NORM); EV_GetGunPosition( args, vecSrc, origin ); VectorCopy( forward, vecAiming ); diff --git a/dlls/gearbox/m249.cpp b/dlls/gearbox/m249.cpp index c9ae9068..b2ba4a0e 100644 --- a/dlls/gearbox/m249.cpp +++ b/dlls/gearbox/m249.cpp @@ -70,8 +70,6 @@ void CM249::Precache(void) PRECACHE_SOUND("items/9mmclip1.wav"); PRECACHE_SOUND("weapons/saw_fire1.wav"); - PRECACHE_SOUND("weapons/saw_fire2.wav"); - PRECACHE_SOUND("weapons/saw_fire3.wav"); PRECACHE_SOUND("weapons/saw_reload.wav"); PRECACHE_SOUND("weapons/saw_reload2.wav");