From 6fbbff6e38c635a486539748bdc57ad86c9af446 Mon Sep 17 00:00:00 2001 From: a1batross Date: Sun, 3 Apr 2016 21:41:55 +0300 Subject: [PATCH] Update events --- cl_dll/events/event_deagle.cpp | 9 ++++++++- cl_dll/events/event_usp.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cl_dll/events/event_deagle.cpp b/cl_dll/events/event_deagle.cpp index 43885de..ccfe97e 100644 --- a/cl_dll/events/event_deagle.cpp +++ b/cl_dll/events/event_deagle.cpp @@ -64,7 +64,14 @@ void EV_FireDEAGLE( event_args_t *args ) { ++g_iShotsFired; EV_MuzzleFlash(); - gEngfuncs.pEventAPI->EV_WeaponAnimation(gEngfuncs.pfnRandomLong(DEAGLE_SHOOT1, DEAGLE_SHOOT2), 2); + if( args->bparam1 ) + { + gEngfuncs.pEventAPI->EV_WeaponAnimation( gEngfuncs.pfnRandomLong(DEAGLE_SHOOT1, DEAGLE_SHOOT2), 2 ); + } + else + { + gEngfuncs.pEventAPI->EV_WeaponAnimation( DEAGLE_SHOOT_EMPTY, 2 ); + } if( !cl_righthand->value ) { EV_GetDefaultShellInfo( args, origin, velocity, ShellVelocity, ShellOrigin, forward, right, up, 35.0, -11.0, -16.0, 0); diff --git a/cl_dll/events/event_usp.cpp b/cl_dll/events/event_usp.cpp index 62fd73a..6442205 100644 --- a/cl_dll/events/event_usp.cpp +++ b/cl_dll/events/event_usp.cpp @@ -76,7 +76,7 @@ void EV_FireUSP( event_args_t *args ) idx = args->entindex; bool silencer_on = !args->bparam2; - bool empty = !!args->bparam1; + bool empty = !args->bparam1; VectorCopy( args->origin, origin ); angles.x = (long double)args->iparam1 / 100 + args->angles[0]; angles.y = (long double)args->iparam2 / 100 + args->angles[1];