|
|
@ -716,13 +716,11 @@ void EV_FireLightning( event_args_t *args ) |
|
|
|
int idx; |
|
|
|
int idx; |
|
|
|
vec3_t origin, endorigin; |
|
|
|
vec3_t origin, endorigin; |
|
|
|
vec3_t angles; |
|
|
|
vec3_t angles; |
|
|
|
vec3_t vecEnd; |
|
|
|
|
|
|
|
vec3_t up, right, forward; |
|
|
|
vec3_t up, right, forward; |
|
|
|
int iShutDown; |
|
|
|
int iShutDown; |
|
|
|
|
|
|
|
|
|
|
|
cl_entity_t *player; |
|
|
|
cl_entity_t *player; |
|
|
|
|
|
|
|
|
|
|
|
pmtrace_t tr; |
|
|
|
|
|
|
|
int modelIndex; |
|
|
|
int modelIndex; |
|
|
|
|
|
|
|
|
|
|
|
bool bSound = false; |
|
|
|
bool bSound = false; |
|
|
@ -750,7 +748,7 @@ void EV_FireLightning( event_args_t *args ) |
|
|
|
|
|
|
|
|
|
|
|
V_PunchAxis( 0, Q_SMALL_PUNCHANGLE_KICK ); |
|
|
|
V_PunchAxis( 0, Q_SMALL_PUNCHANGLE_KICK ); |
|
|
|
|
|
|
|
|
|
|
|
cl_entity_t *player = gEngfuncs.GetViewModel(); |
|
|
|
player = gEngfuncs.GetViewModel(); |
|
|
|
origin = player->attachment[0]; |
|
|
|
origin = player->attachment[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
@ -767,7 +765,7 @@ void EV_FireLightning( event_args_t *args ) |
|
|
|
|
|
|
|
|
|
|
|
if ( iShutDown == 0 && EV_IsLocal( idx ) && pBeam == NULL ) |
|
|
|
if ( iShutDown == 0 && EV_IsLocal( idx ) && pBeam == NULL ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
vec3_t vecSrc, vecEnd, origin, angles, forward, right, up; |
|
|
|
vec3_t vecSrc, vecEnd; |
|
|
|
pmtrace_t tr; |
|
|
|
pmtrace_t tr; |
|
|
|
|
|
|
|
|
|
|
|
cl_entity_t *pl = gEngfuncs.GetEntityByIndex( idx ); |
|
|
|
cl_entity_t *pl = gEngfuncs.GetEntityByIndex( idx ); |
|
|
|