|
|
|
@ -1609,6 +1609,7 @@ void EV_TripmineFire( event_args_t *args )
@@ -1609,6 +1609,7 @@ void EV_TripmineFire( event_args_t *args )
|
|
|
|
|
pmtrace_t tr; |
|
|
|
|
|
|
|
|
|
idx = args->entindex; |
|
|
|
|
const bool last = args->bparam1 != 0; |
|
|
|
|
VectorCopy( args->origin, vecSrc ); |
|
|
|
|
VectorCopy( args->angles, angles ); |
|
|
|
|
|
|
|
|
@ -1631,7 +1632,7 @@ void EV_TripmineFire( event_args_t *args )
@@ -1631,7 +1632,7 @@ void EV_TripmineFire( event_args_t *args )
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecSrc + forward * 128.0f, PM_NORMAL, -1, &tr ); |
|
|
|
|
|
|
|
|
|
//Hit something solid
|
|
|
|
|
if( tr.fraction < 1.0f ) |
|
|
|
|
if( tr.fraction < 1.0f && !last ) |
|
|
|
|
gEngfuncs.pEventAPI->EV_WeaponAnimation ( TRIPMINE_DRAW, 0 ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PopPMStates(); |
|
|
|
|