unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Half Life

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2007, 03:59 PM
Neo_Reloaded Neo_Reloaded is offline
Tutorial Admin
 
Join Date: Dec 2006
Posts: 259
Default Useful for OGC Tweakers

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
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
ogc, tweakers

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 05:26 AM.