|
|
|
@ -449,7 +449,7 @@ void EV_HLDM_FireBullets( int idx, float *forward, float *right, float *up, int
@@ -449,7 +449,7 @@ void EV_HLDM_FireBullets( int idx, float *forward, float *right, float *up, int
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetSolidPlayers( idx - 1 ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_STUDIO_BOX, -1, &tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_NORMAL, -1, &tr ); |
|
|
|
|
|
|
|
|
|
tracer = EV_HLDM_CheckTracer( idx, vecSrc, tr.endpos, forward, right, iBulletType, iTracerFreq, tracerCount ); |
|
|
|
|
|
|
|
|
@ -915,7 +915,7 @@ void EV_FireGauss( event_args_t *args )
@@ -915,7 +915,7 @@ void EV_FireGauss( event_args_t *args )
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetSolidPlayers( idx - 1 ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecDest, PM_STUDIO_BOX, -1, &tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecDest, PM_NORMAL, -1, &tr ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PopPMStates(); |
|
|
|
|
|
|
|
|
@ -1036,14 +1036,14 @@ void EV_FireGauss( event_args_t *args )
@@ -1036,14 +1036,14 @@ void EV_FireGauss( event_args_t *args )
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetSolidPlayers ( idx - 1 ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( start, vecDest, PM_STUDIO_BOX, -1, &beam_tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( start, vecDest, PM_NORMAL, -1, &beam_tr ); |
|
|
|
|
|
|
|
|
|
if( !beam_tr.allsolid ) |
|
|
|
|
{ |
|
|
|
|
vec3_t delta; |
|
|
|
|
|
|
|
|
|
// trace backwards to find exit point
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( beam_tr.endpos, tr.endpos, PM_STUDIO_BOX, -1, &beam_tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( beam_tr.endpos, tr.endpos, PM_NORMAL, -1, &beam_tr ); |
|
|
|
|
|
|
|
|
|
VectorSubtract( beam_tr.endpos, tr.endpos, delta ); |
|
|
|
|
|
|
|
|
@ -1246,7 +1246,7 @@ void EV_FireCrossbow2( event_args_t *args )
@@ -1246,7 +1246,7 @@ void EV_FireCrossbow2( event_args_t *args )
|
|
|
|
|
// Now add in all of the players.
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetSolidPlayers ( idx - 1 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_STUDIO_BOX, -1, &tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_NORMAL, -1, &tr ); |
|
|
|
|
|
|
|
|
|
//We hit something
|
|
|
|
|
if( tr.fraction < 1.0f ) |
|
|
|
@ -1482,7 +1482,7 @@ void EV_EgonFire( event_args_t *args )
@@ -1482,7 +1482,7 @@ void EV_EgonFire( event_args_t *args )
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetSolidPlayers( idx - 1 ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_STUDIO_BOX, -1, &tr ); |
|
|
|
|
gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_NORMAL, -1, &tr ); |
|
|
|
|
|
|
|
|
|
gEngfuncs.pEventAPI->EV_PopPMStates(); |
|
|
|
|
|
|
|
|
|