Americas Army 2:AutoMedic+AutoReportIn
From UnKnoWnCheaTs Game Hacking Wiki
by: SamDestroy
Contents
Source
Hello,
this is an easy to use tweak for auto report-in and auto call-medic.
Global Variables:
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:
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:
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
Source Here