Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    gokhanw's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HACKER
    Posts
    92
    Reputation
    10
    Thanks
    100
    My Mood
    Cool

    Thumbs up Nade+Trajectory ESP

    Based upon basic nade esp by bwarrior.
    For all projectiles, it shows 2D ESP with distance and remaining fuse time.
    For fused grenades this code shows predicted explosion location in the world (as a red sphere).
    When you're throwing a grenade, it shows you the trajectory it will fly (as a curve) and the place it will hit (as a green sphere).


    And yes, this code misses 1 line as a c+p protection. Ez to find, though.

    Code:
    FVector ProjLocation(FVector startPos, FVector velocity, FVector accel, FLOAT tTimeDelta)
    	{
    		return startPos + FVector(velocity*tTimeDelta + accel * FLOAT(tTimeDelta*tTimeDelta / 2));
    	}
    
    	FVector DoTrace(FVector& StartLocation, FVector& EndLocation)
    	{
    		FVector HitLocation, HitNormal;
    		FTraceHitInfo HitInfo;
    
    		APBR::PlayerController->Trace(&HitLocation, &HitNormal, EndLocation, 
    			StartLocation, true, FVector(0, 0, 0), &HitInfo, 0);
    		return HitLocation;
    	}
      
      void Projectiles(UCanvas* pCanvas)
    	{
    		static FLOAT g;		// storing game's gravity 
    		if (g==0)
    			g = APBR::PlayerController->Pawn->GetGravityZ();
    		static TArray<AActor*> Actors;
    		APBR::PlayerController->Pawn->FindActorsOfClass(AcAPBProjectile::StaticClass(), &Actors);
    		for (int i=0; i<Actors.Count; i++)
    		{
    			if (Actors(i))
    			{
    				AcAPBProjectile* proj = reinterpret_cast<AcAPBProjectile*>(Actors(i));
    				FVector LandPos, Coordinate = Toolkit::WorldToScreen(pCanvas, APBR::PlayerController, proj->Location);
    				if (Coordinate.Z>100) //fake far-away nades
    					continue;
    				APBR::PlayerController->DrawDebugSphere(proj->Location, 50, 4, 255,0,0, false);
    				// can be seen through walls
    				Toolkit::DrawString(pCanvas, Coordinate.X, Coordinate.Y, APBR::Colors.Red, L"* %0.0fm/%0.1fs", Coordinate.Z, proj->m_FuseTime);
    				FLOAT ttl = proj->m_FuseTime;
    				LandPos = ProjLocation(proj->Location, proj->Velocity, FVector(0, 0, g), ttl);
    				// drawing predicted hit location works only for fused projectiles
    				APBR::PlayerController->DrawDebugSphere(LandPos, 400, 8, 255,0,0, false); 
    			}
    		}
    		AcItem* item = APBR::PlayerController->m_HoldableItemManager->m_CurrentItem;
    		if (item && item->IsA(AcGrenadeWeapon::StaticClass()))
    		{
    			static const int nPoints = 64;
    			const FLOAT timeStep = 0.05f;
    			static FLOAT throwForce = 1600; // TODO: pretty accurate, but must revalidate. 
    			AcGrenadeWeapon* nadeWeap = reinterpret_cast<AcGrenadeWeapon*>(item);
    			AcAPBProjectile* proj = nadeWeap->m_CookingGrenade;
    			if (!proj)
    				return;
    			FVector dirn = APBR::PlayerController->PlayerCamera->Rotation.Vector();
    			dirn.Normalize();
    			
          FVector prevPos = nadeWeap->m_FireStartLocation;
    			for (int i = 0; (i < nPoints) && (i*timeStep<proj->m_FuseTime); i++)
    			{
    				FVector pos = ProjLocation(nadeWeap->m_FireStartLocation, dirn, FVector(0, 0, g), i*0.1);
    				FVector hit = DoTrace(prevPos, pos); // checking if line segment is broken = we hit something
    				pos = (hit.Length()) ? hit : pos;
    				APBR::PlayerController->DrawDebugLine(prevPos, pos, 255, 50, 255, false);		// next line segment
    				prevPos = pos;
    				if (hit.Length())		// no more tracing
    					break;
    			}
    			APBR::PlayerController->DrawDebugSphere(prevPos, 100, 8, 0, 255, 50, false);		// end of trajectory
    		}
    	}




    Credits:
    Joan
    bwarrior

  2. #2
    machajr's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    istanbul
    Posts
    21
    Reputation
    10
    Thanks
    0
    really good job

  3. #3
    Powahh's Avatar
    Join Date
    Sep 2011
    Gender
    female
    Posts
    21
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    And there are the credits!
    Last edited by Powahh; 09-21-2011 at 12:18 PM.

  4. #4
    bhyruz's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Paranoid
    Looks nice, wouldn't mind testing it out

  5. #5
    farokmarko1's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Drunk
    Nice
    hope i will learn how to use c++

  6. #6
    gokhanw's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HACKER
    Posts
    92
    Reputation
    10
    Thanks
    100
    My Mood
    Cool

  7. #7
    bullpop's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Sweden
    Posts
    3,692
    Reputation
    287
    Thanks
    2,196
    My Mood
    Amused
    great release ^^
    MPGH Member Since 10/17/2010
    Battlefield Minion Since 01/22/2014 till - 08/27/2014
    APB Minion since 11/12/2011 till 4/16/2012

  8. #8
    Proooooooo's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Tired
    your code is wrong! there are a lot of mistakes in it and dll file isnt makes!

  9. #9
    gokhanw's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HACKER
    Posts
    92
    Reputation
    10
    Thanks
    100
    My Mood
    Cool
    Quote Originally Posted by Proooooooo View Post
    your code is wrong! there are a lot of mistakes in it and dll file isnt makes!
    Error Code ?

  10. #10
    Proooooooo's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Tired
    1>------ Построение начато: проект: as, Конфигурация: Release Win32 ------
    1> as1.cpp
    1>as1.cpp(1): error C2146: синтаксическая ошибка: отсутствие ";" перед идентификатором "ProjLocation"
    1>as1.cpp(1): error C4430: отсутствует спецификатор типа - предполагается int. Примечание. C++ не поддерживает int по умолчанию
    1>as1.cpp(1): error C2146: синтаксическая ошибка: отсутствие ")" перед идентификатором "startPos"
    1>as1.cpp(1): error C4430: отсутствует спецификатор типа - предполагается int. Примечание. C++ не поддерживает int по умолчанию
    1>as1.cpp(1): error C2059: синтаксическая ошибка: )
    1>as1.cpp(2): error C2143: синтаксическая ошибка: отсутствие ";" перед "{"
    1>as1.cpp(2): error C2447: {: отсутствует заголовок функции (возможно, используется формальный список старого типа)
    1>as1.cpp(6): error C2146: синтаксическая ошибка: отсутствие ";" перед идентификатором "DoTrace"
    1>as1.cpp(6): error C4430: отсутствует спецификатор типа - предполагается int. Примечание. C++ не поддерживает int по умолчанию
    1>as1.cpp(6): error C2086: int FVector: переопределение
    1> as1.cpp(1): см. объявление "FVector"
    1>as1.cpp(6): error C2065: StartLocation: необъявленный идентификатор
    1>as1.cpp(6): error C2065: EndLocation: необъявленный идентификатор
    1>as1.cpp(7): error C2448: DoTrace: вероятно, инициализатор, использующий стиль функции, является определением функции
    1>as1.cpp(16): error C2065: UCanvas: необъявленный идентификатор
    1>as1.cpp(16): error C2065: pCanvas: необъявленный идентификатор
    1>as1.cpp(17): error C2448: Projectiles: вероятно, инициализатор, использующий стиль функции, является определением функции
    1>as1.cpp(66): fatal error C1004: непредвиденное обнаружение конца файла
    ========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========

  11. #11
    AngarTan's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    Error

    Code:
    1>------ Build started: Project: NewProyect, Configuration: Release Win32 ------
    1>  dllmain.cpp
    1>dllmain.cpp(1): error C2146: syntax error : missing ';' before identifier 'ProjLocation'
    1>dllmain.cpp(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(1): error C2146: syntax error : missing ')' before identifier 'startPos'
    1>dllmain.cpp(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(1): error C2059: syntax error : ')'
    1>dllmain.cpp(2): error C2143: syntax error : missing ';' before '{'
    1>dllmain.cpp(2): error C2447: '{' : missing function header (old-style formal list?)
    1>dllmain.cpp(6): error C2146: syntax error : missing ';' before identifier 'DoTrace'
    1>dllmain.cpp(6): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(6): error C2086: 'int FVector' : redefinition
    1>          dllmain.cpp(1) : see declaration of 'FVector'
    1>dllmain.cpp(6): error C2065: 'StartLocation' : undeclared identifier
    1>dllmain.cpp(6): error C2065: 'EndLocation' : undeclared identifier
    1>dllmain.cpp(7): error C2448: 'DoTrace' : function-style initializer appears to be a function definition
    1>dllmain.cpp(16): error C2065: 'UCanvas' : undeclared identifier
    1>dllmain.cpp(16): error C2065: 'pCanvas' : undeclared identifier
    1>dllmain.cpp(17): error C2448: 'Projectiles' : function-style initializer appears to be a function definition
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  12. #12
    Proooooooo's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Tired
    wo! its the same thing! but in english! i have a russian version

  13. #13
    gokhanw's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HACKER
    Posts
    92
    Reputation
    10
    Thanks
    100
    My Mood
    Cool
    Quote Originally Posted by AngarTan View Post
    Error

    Code:
    1>------ Build started: Project: NewProyect, Configuration: Release Win32 ------
    1>  dllmain.cpp
    1>dllmain.cpp(1): error C2146: syntax error : missing ';' before identifier 'ProjLocation'
    1>dllmain.cpp(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(1): error C2146: syntax error : missing ')' before identifier 'startPos'
    1>dllmain.cpp(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(1): error C2059: syntax error : ')'
    1>dllmain.cpp(2): error C2143: syntax error : missing ';' before '{'
    1>dllmain.cpp(2): error C2447: '{' : missing function header (old-style formal list?)
    1>dllmain.cpp(6): error C2146: syntax error : missing ';' before identifier 'DoTrace'
    1>dllmain.cpp(6): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>dllmain.cpp(6): error C2086: 'int FVector' : redefinition
    1>          dllmain.cpp(1) : see declaration of 'FVector'
    1>dllmain.cpp(6): error C2065: 'StartLocation' : undeclared identifier
    1>dllmain.cpp(6): error C2065: 'EndLocation' : undeclared identifier
    1>dllmain.cpp(7): error C2448: 'DoTrace' : function-style initializer appears to be a function definition
    1>dllmain.cpp(16): error C2065: 'UCanvas' : undeclared identifier
    1>dllmain.cpp(16): error C2065: 'pCanvas' : undeclared identifier
    1>dllmain.cpp(17): error C2448: 'Projectiles' : function-style initializer appears to be a function definition
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Download Vtable Hook https://www.mpgh.net/forum/273-all-po...esp-codes.html

  14. #14
    AngarTan's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    Quote Originally Posted by gokhanw View Post
    I have it downloaded
    But how do I use
    I'am noob at this xd

  15. #15
    Dextral's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Helloworld.java
    Posts
    756
    Reputation
    52
    Thanks
    80
    My Mood
    Hungover
    Is this still a correct code?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Preview] Rez Wallhack 2.0 & Nade ESP MOD
    By supercarz1991 in forum Combat Arms Mod Discussion
    Replies: 10
    Last Post: 11-17-2011, 06:11 PM
  2. HL2 Hack With Aimbot|ESP| And much, Much more.
    By quin123 in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 10
    Last Post: 04-03-2009, 12:57 PM
  3. ESP/Chams For BHD 1.5.0.5 Arugs 1.2m: Undetected
    By sf0d in forum General Game Hacking
    Replies: 1
    Last Post: 11-05-2008, 02:31 PM
  4. Replies: 16
    Last Post: 08-10-2007, 07:10 AM
  5. [RELEASE] Shotgun & Nades
    By zosky in forum WarRock - International Hacks
    Replies: 47
    Last Post: 02-24-2007, 10:43 PM

Tags for this Thread