mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
Disable shell ejecting for glock.
This commit is contained in:
parent
bd4d8a7daa
commit
18259b1335
@ -477,7 +477,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|||||||
|
|
||||||
vec3_t ShellVelocity;
|
vec3_t ShellVelocity;
|
||||||
vec3_t ShellOrigin;
|
vec3_t ShellOrigin;
|
||||||
int shell;
|
// int shell;
|
||||||
vec3_t vecSrc, vecAiming;
|
vec3_t vecSrc, vecAiming;
|
||||||
vec3_t up, right, forward;
|
vec3_t up, right, forward;
|
||||||
|
|
||||||
@ -489,7 +489,7 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|||||||
empty = args->bparam1;
|
empty = args->bparam1;
|
||||||
AngleVectors( angles, forward, right, up );
|
AngleVectors( angles, forward, right, up );
|
||||||
|
|
||||||
shell = gEngfuncs.pEventAPI->EV_FindModelIndex( "models/shell.mdl" );// brass shell
|
// shell = gEngfuncs.pEventAPI->EV_FindModelIndex( "models/shell.mdl" );// brass shell
|
||||||
|
|
||||||
if( EV_IsLocal( idx ) )
|
if( EV_IsLocal( idx ) )
|
||||||
{
|
{
|
||||||
@ -499,9 +499,9 @@ static void EV_FireGlock_Impl( event_args_t *args )
|
|||||||
V_PunchAxis( 0, -2.0 );
|
V_PunchAxis( 0, -2.0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
EV_GetDefaultShellInfo( args, origin, velocity, ShellVelocity, ShellOrigin, forward, right, up, 20, -12, 4 );
|
//EV_GetDefaultShellInfo( args, origin, velocity, ShellVelocity, ShellOrigin, forward, right, up, 20, -12, 4 );
|
||||||
|
|
||||||
EV_EjectBrass( ShellOrigin, ShellVelocity, angles[YAW], shell, TE_BOUNCE_SHELL );
|
//EV_EjectBrass( ShellOrigin, ShellVelocity, angles[YAW], shell, TE_BOUNCE_SHELL );
|
||||||
|
|
||||||
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/pl_gun3.wav", gEngfuncs.pfnRandomFloat( 0.92, 1.0 ), ATTN_NORM, 0, 98 + gEngfuncs.pfnRandomLong( 0, 3 ) );
|
gEngfuncs.pEventAPI->EV_PlaySound( idx, origin, CHAN_WEAPON, "weapons/pl_gun3.wav", gEngfuncs.pfnRandomFloat( 0.92, 1.0 ), ATTN_NORM, 0, 98 + gEngfuncs.pfnRandomLong( 0, 3 ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user