unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials

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

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

By CrazyLord

This is my old averase code, what it does is removing one dot, not like avclear which removes all dots
It works like this:
averase 0 22.0 6.2 3.2

that would erase the dot with the matching values
+rep if you like or use

Code:
void func_averase (void)
{
	aimvec av, temp;
	vector<aimvec> aTemp;
	int duck = cmd.argI(1);

	temp.h = 0.0;
	temp.f = 0.0;
	temp.r = 0.0;

	if (duck)
	{
		for (int i=0;i<gAimbot.AimVecsD.size();i++)
		{
			av.h = gAimbot.AimVecsD[i].h;
			av.f = gAimbot.AimVecsD[i].f;
			av.r = gAimbot.AimVecsD[i].r;

			if (gAimbot.AimVecsD[i].h == cmd.argF(2))
			{
				if (gAimbot.AimVecsD[i].f == cmd.argF(3))
				{
					if (gAimbot.AimVecsD[i].r == cmd.argF(4))
					{
						temp = gAimbot.AimVecsD[i];
					}
					else
					{
						aTemp.push_back(av);
					}
				}
				else
				{
					aTemp.push_back(av);
				}
			}
			else
			{
				aTemp.push_back(av);
			}
		}
		gAimbot.AimVecsD.clear();
		for (int a=0;a<aTemp.size();a++)
			gAimbot.AimVecsD.push_back(aTemp[a]);
	}
	else if (!duck)
	{
		for (int i=0;i<gAimbot.AimVecsS.size();i++)
		{
			av.h = gAimbot.AimVecsS[i].h;
			av.f = gAimbot.AimVecsS[i].f;
			av.r = gAimbot.AimVecsS[i].r;

			if (gAimbot.AimVecsS[i].h == cmd.argF(2))
			{
				if (gAimbot.AimVecsS[i].f == cmd.argF(3))
				{
					if (gAimbot.AimVecsS[i].r == cmd.argF(4))
					{
						temp = gAimbot.AimVecsS[i];
					}
					else
					{
						aTemp.push_back(av);
					}
				}
				else
				{
					aTemp.push_back(av);
				}
			}
			else
			{
				aTemp.push_back(av);
			}
		}
		gAimbot.AimVecsS.clear();
		for (int a=0;a<aTemp.size();a++)
			gAimbot.AimVecsS.push_back(aTemp[a]);
	}
	if ((temp.h == 0.0) || (temp.f == 0.0) || (temp.r == 0.0))
		Con_Echo("There is no such vec: %f %f %f",cmd.argF(2),cmd.argF(3),cmd.argF(4));
	else
		Con_Echo("Succesfully deleted: %f %f %f",temp.h,temp.f,temp.r);
}
Reply With Quote
Reply

Tags
averase

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 06:02 PM.