Results 1 to 8 of 8
  1. #1
    ComboDance's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    C:\Windows\System32
    Posts
    222
    Reputation
    10
    Thanks
    84
    My Mood
    Tired

    Struct or Class for esp distance

    i need struct or class for esp distance? can some one help me
    Stop right here...!!!

  2. #2
    luizimloko's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    fs:[0]
    Posts
    1,879
    Reputation
    136
    Thanks
    10,138
    My Mood
    Yeehaw
    Code:
    FLOAT GetDiffDistance( D3DXVECTOR3 Me, D3DXVECTOR3 Target )
    {
    	return sqrt( Me.x * Target.x + Me.y * Target.y + Me.z * Target.z ) / 100;
    }
    
    	CHAR Distance[MAX_PATH];
    
    	sprintf( Distance, "Difference between You - Enemy is: %0.0f", GetDiffDistance( Me->Object->Position, Target->Object->Position ) );
    	DrawText( Target->Object->Position.x, Target->Object->Position.y, Distance );

  3. #3
    ComboDance's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    C:\Windows\System32
    Posts
    222
    Reputation
    10
    Thanks
    84
    My Mood
    Tired
    Quote Originally Posted by luizimloko View Post
    Code:
    FLOAT GetDiffDistance( D3DXVECTOR3 Me, D3DXVECTOR3 Target )
    {
    	return sqrt( Me.x * Target.x + Me.y * Target.y + Me.z * Target.z ) / 100;
    }
    
    
    	CHAR Distance[MAX_PATH];
    
    	sprintf( Distance, "Difference between You - Enemy is: %0.0f", GetDiffDistance( Me->Object->Position, Target->Object->Position ) );
    	DrawText( Target->Object->Position.x, Target->Object->Position.y, Distance );
    thank you bro ................................
    Stop right here...!!!

  4. #4
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored
    another way for finding distance:

    Code:
    float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
    {
    	float _x, _y, _z;
    	_x = to.x - from.x;
    	_y = to.y - from.y;
    	_z = to.z - from.z;
    	return sqrt(_x*_x + _y*_y + _z*_z);
    }
    and then how to use:

    Code:
    char txt[MAX_PATH];
    if(DistanceESP)
    {
    	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
    	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
    }
    •Contributor: June, 29th 2013


    My Sources:
    Injector
    Memory Base
    D3D9 Hook
    Hooked Memory Base




  5. #5
    ComboDance's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    C:\Windows\System32
    Posts
    222
    Reputation
    10
    Thanks
    84
    My Mood
    Tired
    Quote Originally Posted by -[I]fLuX View Post
    another way for finding distance:

    Code:
    float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
    {
    	float _x, _y, _z;
    	_x = to.x - from.x;
    	_y = to.y - from.y;
    	_z = to.z - from.z;
    	return sqrt(_x*_x + _y*_y + _z*_z);
    }
    and then how to use:

    Code:
    char txt[MAX_PATH];
    if(DistanceESP)
    {
    	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
    	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
    }
    thanks bro
    Stop right here...!!!

  6. #6
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by -[I]fLuX View Post
    another way for finding distance:

    Code:
    float CalculateDist(D3DXVECTOR3 from, D3DXVECTOR3 to)
    {
    	float _x, _y, _z;
    	_x = to.x - from.x;
    	_y = to.y - from.y;
    	_z = to.z - from.z;
    	return sqrt(_x*_x + _y*_y + _z*_z);
    }
    and then how to use:

    Code:
    char txt[MAX_PATH];
    if(DistanceESP)
    {
    	sprintf_s(txt, "Distance: [%d]", (DWORD)(CalculateDist(Me->Object->Body, pPlayer->Object->Body)/100));
    	DrawText(pDevice,BodyPosition.x ,BodyPosition.y, ESP_Color, txt);
    }
    i smell myself here ..
    anyway no one of you actually helped this guy, he asked for a struct / class not just plain code..


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  7. #7
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored
    Quote Originally Posted by giniyat101 View Post
    i smell myself here ..
    anyway no one of you actually helped this guy, he asked for a struct / class not just plain code..
    they he need to say which classes he have and which he need
    •Contributor: June, 29th 2013


    My Sources:
    Injector
    Memory Base
    D3D9 Hook
    Hooked Memory Base




  8. #8
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by -[I]fLuX View Post
    they he need to say which classes he have and which he need
    have : none
    need : all


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

Similar Threads

  1. Second LT 4th class for sale.
    By thebazarr21 in forum Trade Accounts/Keys/Items
    Replies: 11
    Last Post: 07-04-2010, 08:10 PM
  2. 2ND LT 5th class for sale.. legit sale..
    By spizzil in forum Selling Accounts/Keys/Items
    Replies: 7
    Last Post: 05-19-2010, 05:58 AM
  3. New Map Pack/Update for esp hack
    By TommyDerWalker in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 05-09-2010, 10:22 AM
  4. Master Sgt 3rd class for sale
    By octogon in forum Trade Accounts/Keys/Items
    Replies: 10
    Last Post: 09-16-2009, 10:56 PM
  5. need a tutorial for esp
    By bloqueado93 in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 09-03-2008, 12:20 AM