Browse Source

Fix par21 body passed to EV_WeaponAnimation.

poke646_vendetta
Andrey Akhmichin 2 years ago
parent
commit
4d782eab7c
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 4
      cl_dll/ev_hldm.cpp

4
cl_dll/ev_hldm.cpp

@ -723,7 +723,7 @@ void EV_FirePar21( struct event_args_s *args )
{ {
// Add muzzle flash to current weapon model // Add muzzle flash to current weapon model
EV_MuzzleFlash(); EV_MuzzleFlash();
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 2 ); gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_FIRE1 + gEngfuncs.pfnRandomLong( 0, 2 ), 0 );
V_PunchAxis( 0, gEngfuncs.pfnRandomFloat( -2, 2 ) ); V_PunchAxis( 0, gEngfuncs.pfnRandomFloat( -2, 2 ) );
} }
@ -761,7 +761,7 @@ void EV_M203( struct event_args_s *args )
if( EV_IsLocal( idx ) ) if( EV_IsLocal( idx ) )
{ {
gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_LAUNCH, 2 ); gEngfuncs.pEventAPI->EV_WeaponAnimation( PAR21_LAUNCH, 0 );
V_PunchAxis( 0, -10 ); V_PunchAxis( 0, -10 );
} }

Loading…
Cancel
Save