qo0-csgo icon indicating copy to clipboard operation
qo0-csgo copied to clipboard

get fov function for angles

Open wiresnchains opened this issue 3 years ago • 3 comments

I've coded a legit cheat on alpha's base before, currently adding legitbot to qo0 and having trouble finding the variable for the so called "viewangles" Here's the code from my previous project: image

Here is from the qo0: image

wiresnchains avatar Jun 05 '22 11:06 wiresnchains

https://github.com/rollraw/qo0-base/blob/master/base/sdk/datatypes/usercmd.h

CUserCmd class, angViewPoint member.

You didn't find it, because you are just pasting and not understanding it.

ghost avatar Jun 05 '22 13:06 ghost

https://github.com/rollraw/qo0-base/blob/master/base/sdk/datatypes/usercmd.h

CUserCmd class, angViewPoint member.

You didn't find it, because you are just pasting and not understanding it.

Lol, ok. QAngle class does not have a function for distance to. And I looked there before I posted, and my question haven't changed

wiresnchains avatar Jun 05 '22 14:06 wiresnchains

there is no such thing as distance, it can be named as hypotenuse of delta for angles difference. although we can add some binding like:

QAngle angDelta = angView - angRelativeTarget;
angDelta.Normalize();
angDelta.Clamp();
float flFOV = std::hypotf(angDelta.x, angDelta.y);

rollraw avatar Jun 05 '22 14:06 rollraw