Update events
This commit is contained in:
parent
e6ef0ace3c
commit
6fbbff6e38
@ -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);
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user