unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Americas Army Series > America's Army UE v2

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


Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2007, 01:44 PM
Neo_Reloaded Neo_Reloaded is offline
Tutorial Admin
 
Join Date: Dec 2006
Posts: 259
Default C++ (Beginner) Auto Medic + Auto Report In

Hello,

this is an easy to use tweak for auto report-in and auto call-medic.

Global Variables:
Code:
bool bAutoMedic // enable/disable
bool bAutoReportIn // enable/disable
you need to add this variables to your menu or console-commands/key-commands to enable this tweak.
just delete "bAutoMedic" and "bAutoReportIn" from the whole tweak if you dont have a menu or console-commands/key-commands.


This are the functions:
Code:
void inline AutoReportIn()
{
	UFunction* pFunc = MyController->FindFunction(TEXT("ReportIn"), FNAME_Find); 
	if ( pFunc != NULL )
	{
		MyController->ProcessEvent(pFunc, NULL, NULL);
	}
}
//////////
void inline AutoMedic()
{
	UFunction* pFunc = MyController->FindFunction(TEXT("CallMedic"), FNAME_Find); 
	if ( pFunc != NULL)
	{
		MyController->ProcessEvent(pFunc, NULL, NULL);
	}
}
Add this to your Render-Loop:
Code:
if (MyPawn != NULL)
{
	if (bAutoMedic && MyPawn->BleedHealth > 0) 
	{
		static double LastCall = 0;
		double NowTime = GetTickCount();
		if (NowTime - LastCall > 15000) // 15 seconds to next call
		{
			AutoMedic();
			LastCall = NowTime;
		}
	}

	if (bAutoReportIn)
	{
		static double LastReport = 0;
		double NowTime = GetTickCount();
		if (NowTime - LastReport > 45000) // 45 seconds to next report in
		{
			AutoReportIn();
			LastReport = NowTime;
		}
	}
}
thats all.. i hope you find it useful

SAMDestroy
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
auto, beginner, medic, report

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 07:41 PM.