in this code, the function makes a QAngle object called "aim", and uses calculations with it but it does not have a value that i see! can sum1 explain this?
It defines the angle of your weapon to aim at something. if you want to see it then define as an integer, and make that into a visible number injected on Combat arms . so if you turn on something on ur menu it shows the value of your angle..
(not sure if thats what yuo wanted)
Posts 1–15 of 18 · Page 1 of 2
Post a Reply
Tags for this Thread
None
i want 2 kno how the code is using 'aim' when i dont see that it has a value.
what gives it a value , cuz i dont see "aim = ..."
QAngle seems to be a vector class type which returns an array of integers representing x, y and z. aim, aswell as ang is initialized with the QAngle class type. aim[0] = x. aim[1] = y. aim[2] = z. MakeVector probably uses a reference of aim to calculate some crap and then some square root crap occurs to calculate some stuff.
Originally Posted by master131
QAngle seems to be a vector class type which returns an array of integers representing x, y and z. aim, aswell as ang is initialized with the QAngle class type. aim[0] = x. aim[1] = y. aim[2] = z. MakeVector probably uses a reference of aim to calculate some crap and then some square root crap occurs to calculate some stuff.
Dude if he doesn't know that, I doubt he will understand it. Just saying...
@TwEaK: i doubt you know that so gtfo and stop putting him down.
so aim and ang are given values(initialized) automatically bcuz they r of the QAngle class? i knew all the stuff master said but i dont get what is giving ang and aim a value.
CalcAngle gives ang a value based on the source and destination vectors(your player and the enemy player respectively).
MakeVector turns that angle into a vector, then that vec is turned into a vector again.
thats what gives them their values
ok thank you Hell_Demon for the answer i was looking for, and all others that tried. but -TwEaK, i want you to stay away from my threads because ive never seen u give an answer, only bring me down and thats not what threads are for.
Originally Posted by kibbles18
i want 2 kno how the code is using 'aim' when i dont see that it has a value.
what gives it a value , cuz i dont see "aim = ..."
Youll need classes... and it will define "aim"
how should i get the classes for CA?
Vectors can be defined as D3DXVECTOR3
Rotation and translation functions are provided in D3DX as well.
Only thing you'll need to do is figure out the aim logic(google for sraeG's aimbot tutorial)
whats a d3dxvector? hows it different?
so ang is given value from the function its used in first?
Originally Posted by kibbles18
whats a d3dxvector? hows it different?
so ang is given value from the function its used in first?
D3DXVECTOR3 is something along the lines of
Code:
typedef struct
{
float X, Y, Z;
} D3DXVECTOR3;
But with tons of helper functions included in D3DX(check msdn for it)
And yes, ang is given its value by CalcAngles
hey can u add me on msn Hell_demon if u have one? i got loads of questions, too many to post on :/