By CrazyLord
If you like tweaking aimbots, etc and it's aiming at the wrong spot, then you might use these two functions to determine and set your aiming coordinates
Code:
void func_getviewangles() {
float temp[3];
gEngfuncs.GetViewAngles(temp);
Con_Echo("X: &w%f&a Y: &w%f&a Z: &w%f&a",temp[0],temp[1],temp[2]);
}
void func_setviewangles() {
float temp[3];
temp[0] = cmd.argF(1);
temp[1] = cmd.argF(2);
temp[2] = cmd.argF(3);
gEngfuncs.SetViewAngles(temp);
Con_Echo("Viewangles set. (X: &w%f&a Y: &w%f&a Z: &w%f&a)",temp[0],temp[1],temp[2]);
}
void func_translateto2d() {
float temp[3];
float output[2];
temp[0] = cmd.argF(1);
temp[1] = cmd.argF(2);
temp[2] = cmd.argF(3);
if (CalcScreen(temp,output))
Con_Echo("Translated. (X: &w%f&a Y: &w%f&a)",temp[0],temp[1]);
else
Con_Echo("Translation failed.");
}
As you see, this is C/P in OGC, just register the two functions and your done