Post: [SOURCE] Perfect View Angle ESP (All CODs)
01-01-2018, 09:45 PM #1
TheGreenPlanet
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); This isn't new in any way but more of an improvement to it. For those who doesn't know what "View Angle" or "Barrel" ESP is, it draws a line from a players eye to where they're looking. Enjoy Cool Man (aka Tustin)!

Source:
    
void DrawBarrel(int i, float fRange)
{
trace_t results;
Vector2 startOut, endOut;
Vector3 endPos, forward;
AngleVectors(&cgArray_s->clientInfo[i].playerAngles, &forward, NULL, NULL); //Gets the players forward viewAxis

Vector3 start = GetTagPos(i, "j_neck");
Vector3 end = start + (forward * fRange);

CG_LocationalTrace(&results, &start, &end, cgArray_s->clientNum, 0x803003); //Mask will differ depending on the game

endPos = start + (forward * (fRange * results.fraction));

if (WorldToScreen(start, &startOut.x, &startOut.y) && WorldToScreen(endPos, &endOut.x, &endOut.y))
DrawLine(startOut.x, startOut.y, endOut.x, endOut.y, &Color(255, 0, 0, 255), R_RegisterMaterial("white", 0), 1);
}


Showcase:

The following 4 users say thank you to TheGreenPlanet for this useful post:

Bigmoneyhustlin, Fixed Username, lucasaf01, S63
01-05-2018, 01:47 PM #2
VPN
Save Point
Great Job TGP!

The following user thanked VPN for this useful post:

TheGreenPlanet
01-15-2018, 05:17 PM #3
S63
Space Ninja
Originally posted by TheGreenPlanet View Post
This isn't new in any way but more of an improvement to it. For those who doesn't know what "View Angle" or "Barrel" ESP is, it draws a line from a players eye to where they're looking. Enjoy Cool Man (aka Tustin)!

Source:
    
void DrawBarrel(int i, float fRange)
{
trace_t results;
Vector2 startOut, endOut;
Vector3 endPos, forward;
AngleVectors(&cgArray_s->clientInfo[i].playerAngles, &forward, NULL, NULL); //Gets the players forward viewAxis

Vector3 start = GetTagPos(i, "j_neck");
Vector3 end = start + (forward * fRange);

CG_LocationalTrace(&results, &start, &end, cgArray_s->clientNum, 0x803003); //Mask will differ depending on the game

endPos = start + (forward * (fRange * results.fraction));

if (WorldToScreen(start, &startOut.x, &startOut.y) && WorldToScreen(endPos, &endOut.x, &endOut.y))
DrawLine(startOut.x, startOut.y, endOut.x, endOut.y, &Color(255, 0, 0, 255), R_RegisterMaterial("white", 0), 1);
}


Showcase:


Great work keep it up Winky Winky
01-22-2018, 09:08 PM #4
lucasaf01
Gym leader
Great work bro
02-03-2018, 02:53 PM #5
kiwi_modz
I defeated!
That's one way of doing it lol mines way way smaller then this. Good work anyways Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo