Thread: Box ESP

Page 1 of 3 123 LastLast
Results 1 to 15 of 54

Hybrid View

  1. #1
    the1domo's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    7
    Reputation
    10
    Thanks
    19

    Box ESP

    ok it is my Box ESP for you all

    Code:
    inline void DrawBoundingBox (UCanvas* Canvas, APawn* Target)
    {
        FVector X,Y,Z,D,E,top,bottom;;
        float width, Left, Right, Top, Bot;
    
        GetAxes(MyCameraRotation,X,Y,Z);
    
        D.X = Target->Location.X - MyCameraLocation.X;
        D.Y = Target->Location.Y - MyCameraLocation.Y;
        D.Z = Target->Location.Z - MyCameraLocation.Z;
    
        if(Dot(D,X) <= cos(90 * 3.14159265 / 180))
            return;
    
        FBoxSphereBounds Player = Target->Mesh->Bounds;
    
        top = Target->Location;
        top = WorldToScreen(Canvas,top);
    
        bottom = Player.BoxExtent;
        bottom = WorldToScreen(Canvas,bottom);
    
        width = ((top.Y - bottom.Y) / 3);
    
        Left  = top.X + width;
        Right = top.X - width;
        Top   = top.Y;
        Bot   = bottom.Y;
    
        Canvas->Draw2DLine(Left,  Top, Left,  Bot, Green);
        Canvas->Draw2DLine(Left,  Bot, Right, Bot, Green);
        Canvas->Draw2DLine(Right, Bot, Right, Top, Green);
        Canvas->Draw2DLine(Right, Top, Left,  Top, Green);
    }
    Credits to SystemFiles for help me fix it

  2. The Following 3 Users Say Thank You to the1domo For This Useful Post:

    kiwo (06-30-2011),Njowils (07-11-2011),unknown2009 (06-30-2011)

  3. #2
    SPIRIT7's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed
    how to use Source code???????? PLEASE HELP ME

  4. #3
    IHaxYou!'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HaxLand
    Posts
    936
    Reputation
    -18
    Thanks
    387
    My Mood
    Cynical
    Quote Originally Posted by SPIRIT7 View Post
    how to use Source code???????? PLEASE HELP ME
    You need a full base before you can use this.

  5. #4
    the1domo's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    7
    Reputation
    10
    Thanks
    19
    Code:
    float Size (FVector &v)
    {
    	return sqrt(v.x*v.x + v.y*v.y + v.z*v.z);
    }
    
    void Normalize (FVector &v)
    {
    	float size = Size(v);
    
    	if ( !size )
    	{
    		v.x = v.y = v.z = 1;
    	}
    	else
    	{
    		v.x /= size;
    		v.y /= size;
    		v.z /= size;
    	}
    }
    
    void inline GetAxes (FRotator R, FVector &X, FVector &Y, FVector &Z)
    {
    	X = RotToVec(R);
    	X.Normalize();
    	R.Yaw += 16384;
    	FRotator R2 = R;
    	R2.Pitch = 0.f;
    	Y = RotToVec(R2);
    	Y.Normalize();
    	Y.Z = 0.f;
    	R.Yaw -= 16384;
    	R.Pitch += 16384;
    	Z = RotToVec(R);
    	Z.Normalize();
    }
    
    float inline Dot (const FVector& V1,const FVector& V2)
    {
    	return ( V1.X*V2.X + V1.Y*V2.Y + V1.Z*V2.Z );
    }
    Originally Posted by Tamimego
    You can only call Project in HUD.PostRender. It's pretty much the only time the game has the ViewScene in Canvas or whatever set. Some games it is different though, like FFOW had a function called CachedProject where they stored the Projection and View Matrixes from the last frame.
    Code:
    FVector WorldToScreen (UCanvas* Canvas, FVector WorldLocation)//Helios
    {
        FVector X,Y,Z,D,Out;
    	GetAxes(MyCameraRotation,X,Y,Z);
    	D = WorldLocation - MyCameraLocation;
    	Out.X = (Canvas->ClipX/2)+( Dot(D,Y))*((Canvas->ClipX/2)/tan(Me->FovAngle*PI/360))/Dot(D,X);
    	Out.Y = (Canvas->ClipY/2)+(-Dot(D,Z))*((Canvas->ClipX/2)/tan(Me->FovAngle*PI/360))/Dot(D,X);
    	Out.Z = 0;
    	return Out;
    }
    Credits to
    Tamimego
    R00T88
    x22
    HOOAH07


    ok now you got WorldToScreen to work

    Code:
    void DrawPlayerESP( UCanvas* pCanvas )
    {
        if (pPC == NULL || pPC->Pawn == NULL || pPC->WorldInfo == NULL )
        return;
    
        APawn* Target = pPC->Pawn->WorldInfo->PawnList;
        while ( Target != NULL )
        {
            if ( Target != NULL && !Target->bDeleteMe && Target->Health >0 && Target != pPC->Pawn && !Target->IsA(AVehicle::StaticClass())) 
            {
    		DrawBoundingBox (pCanvas, Target);
            }
        
            Target = Target->NextPawn;
        }
    }

    ok you are good to go
    Code:
    DrawPlayerESP( pCanvas );
    Last edited by the1domo; 06-30-2011 at 03:50 AM.

  6. The Following 3 Users Say Thank You to the1domo For This Useful Post:

    BJIADO4KA (07-23-2011),kiwo (06-30-2011),unknown2009 (06-30-2011)

  7. #5
    haizenberg444's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Realy, maybe someone will write a step by step realties, as the codes are written in here in themes to make the ESP or any hack

  8. #6
    the1domo's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    7
    Reputation
    10
    Thanks
    19

    hi

    You give a man a fish, you feed him for a day. You teach a man how to fish. You feed him for life. It's better to teach them how to use it than to just give them a compiled .dll

    I will write up a full tutorial later on today

  9. #7
    HW$%yh5eh5ea5heheh5's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    8,292
    Reputation
    255
    Thanks
    390
    My Mood
    Cool
    Quote Originally Posted by the1domo View Post
    You give a man a fish, you feed him for a day. You teach a man how to fish. You feed him for life. It's better to teach them how to use it than to just give them a compiled .dll

    I will write up a full tutorial later on today
    I can try to get it stickied for you if its good enough. it would help this whole community

  10. #8
    bullpop's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Sweden
    Posts
    3,692
    Reputation
    287
    Thanks
    2,196
    My Mood
    Amused
    Dude, compile it to everyone insted, it will become easier and u wont have a shitload of p12's whining about how to use ect, just compile the shit for them, get alot of thanks and ur done ^^
    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

  11. #9
    robin9909's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Diepenheim
    Posts
    6
    Reputation
    10
    Thanks
    1
    My Mood
    Dead
    Can you compile it for me? cuz im still learing C++

  12. #10
    the1domo's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    7
    Reputation
    10
    Thanks
    19
    and if you need help you can add me on msn or email @ domo@TheDefaced.net or if you want to help me make a public hack or want to join my team

  13. #11
    liver44's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Hi im new, but wouldnt it be possible for this source code to be made into a .dll and then posted? because then you just use the base hook to inject it...

  14. #12
    quetreo03's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    sseewq
    Posts
    17
    Reputation
    10
    Thanks
    0
    VIDEO TUTORIAL PLEASE

  15. #13
    I enjoy the sight of humans on their knees
    MPGH Member
    Thane.'s Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    The Closet
    Posts
    1,970
    Reputation
    82
    Thanks
    85
    My Mood
    Inspired
    I'm derp with C++ but I am guessing you CP that shit into C++ and compile that into a .dll and inject it using an injector

  16. #14
    quetreo03's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    sseewq
    Posts
    17
    Reputation
    10
    Thanks
    0
    NO TUTORIAL, WE CANT USE IT.... DELETE THIS POST FOR SHIT

  17. #15
    Jerymiah94's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Vancouver B.C , Canada
    Posts
    478
    Reputation
    17
    Thanks
    61
    My Mood
    Aggressive
    Quote Originally Posted by the1domo View Post
    ok it is my Box ESP for you all

    Code:
    inline void DrawBoundingBox (UCanvas* Canvas, APawn* Target)
    {
        FVector X,Y,Z,D,E,top,bottom;;
        float width, Left, Right, Top, Bot;
    
        GetAxes(MyCameraRotation,X,Y,Z);
    
        D.X = Target->Location.X - MyCameraLocation.X;
        D.Y = Target->Location.Y - MyCameraLocation.Y;
        D.Z = Target->Location.Z - MyCameraLocation.Z;
    
        if(Dot(D,X) <= cos(90 * 3.14159265 / 180))
            return;
    
        FBoxSphereBounds Player = Target->Mesh->Bounds;
    
        top = Target->Location;
        top = WorldToScreen(Canvas,top);
    
        bottom = Player.BoxExtent;
        bottom = WorldToScreen(Canvas,bottom);
    
        width = ((top.Y - bottom.Y) / 3);
    
        Left  = top.X + width;
        Right = top.X - width;
        Top   = top.Y;
        Bot   = bottom.Y;
    
        Canvas->Draw2DLine(Left,  Top, Left,  Bot, Green);
        Canvas->Draw2DLine(Left,  Bot, Right, Bot, Green);
        Canvas->Draw2DLine(Right, Bot, Right, Top, Green);
        Canvas->Draw2DLine(Right, Top, Left,  Top, Green);
    }
    Im just amaze how you guys can create this kind of code! can you pm me a tut on how to get one of this.
    [IMG]https://i594.photobucke*****m/albums/tt30/sevenzero/pinoy.gif[/IMG]
    [IMG]https://i1139.photobucke*****m/albums/n554/Jerymiah94/Untitled-1.jpg[/IMG]
    Respect List:
    1) supercarz1991
    2) Drigien

    Mods: https://www.mpgh.net/forum/210-combat...ed-chamms.html

Page 1 of 3 123 LastLast