Browse Source

Remove usage of redundant m249 fire sounds (they are all the same and only one is used in opfor)

opfor
Roman Chistokhodov 1 year ago
parent
commit
6259156cb1
  1. 11
      cl_dll/ev_hldm.cpp
  2. 2
      dlls/gearbox/m249.cpp

11
cl_dll/ev_hldm.cpp

@ -2000,18 +2000,7 @@ void EV_FireM249( event_args_t *args ) @@ -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;
}
EV_GetGunPosition( args, vecSrc, origin );
VectorCopy( forward, vecAiming );

2
dlls/gearbox/m249.cpp

@ -70,8 +70,6 @@ void CM249::Precache(void) @@ -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");

Loading…
Cancel
Save