Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else
- {
- float EndPos[3];
- TR_GetEndPosition(EndPos, TR_Handle);
- float ForwardVec[3];
- GetAngleVectors(vEyeAngle, ForwardVec, NULL_VECTOR, NULL_VECTOR);
- EndPos[0] += ForwardVec * 15.0;
- EndPos[1] += ForwardVec * 15.0;
- EndPos[2] += ForwardVec * 15.0;
- Handle TR_Handle2 = TR_TraceRayFilterEx(EndPos, vEyeAngle, MASK_SHOT, RayType_Infinite, Ray_Filter, client);
- if(TR_DidHit(TR_Handle2))
- {
- int ent2 = TR_GetEntityIndex(TR_Handle2);
- if(IsValidClient(ent))
- {
- rValue = ent;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement