Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > Soldier Front > Soldier Front Hacks, Bots, Cheats & Exploits
You last visited: Today at 11:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Codes for fog hack,bounding boxes/2d boxes,health esp,xhair (leeched)

Discussion on Codes for fog hack,bounding boxes/2d boxes,health esp,xhair (leeched) within the Soldier Front Hacks, Bots, Cheats & Exploits forum part of the Soldier Front category.

Reply
 
Old   #1
 
Ovenran's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 717
Received Thanks: 361
Codes for fog hack,bounding boxes/2d boxes,health esp,xhair (leeched)

codes was leeched from ********.****.com (anti - advertising)

sorry , it's only for soldier front :[

U need this to compile this one:
C++ 2005/2008/2010
sdk summer 2004 (directories)

even im not a pro coder , i can make a codes bcause i learn first c++ language
let's start from disabling fog (make some edit if something's wrong)
Code:
if (Fog)
{
pDevice->SetRenderState(D3DRS_FOGENABLE,false);  // Disable Fog
   }
hotkey :
Code:
if(  GetAsyncKeyState( VK_f8 ) & 1 )
{
fog = !fog; // Means , fog will be disabled

}
=============================================
sure! 2d boxes , u can see boxes through wall , but try it on psf/usf bcause it's working in CF
PHP code:
Code:
void CEngine:raw3DBoundingBox( LTVector mins, LTVector maxs, D3DCOLOR color
{
   if( !m_pDevice
       return;
   const unsigned short index[] = {0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 3, 7, 2, 6, 0, 4, 1, 5};
   struct VertexData
   {
       float x, y, z;
       D3DCOLOR color;
       float tu, tv;
   };
   VertexData ObjectBounds[8];
#define SET_OBJECT_BOUNDS_VEC_VALUE( i, o, t, w, c  \
   ObjectBounds[i].x = o; ObjectBounds[i].y = t; ObjectBounds[i].z = w; \
   ObjectBounds[i].color = c; ObjectBounds[i].tu = 0.0f; ObjectBounds[i].tv = 0.0f;
   SET_OBJECT_BOUNDS_VEC_VALUE( 0, mins.x, mins.y, mins.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 1, maxs.x, mins.y, mins.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 2, maxs.x, mins.y, maxs.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 3, mins.x, mins.y, maxs.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 4, mins.x, maxs.y, mins.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 5, maxs.x, maxs.y, mins.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 6, maxs.x, maxs.y, maxs.z, color ;
   SET_OBJECT_BOUNDS_VEC_VALUE( 7, mins.x, maxs.y, maxs.z, color ;
   m_pDevice->SetFVF( D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1 ;
   m_pDevice->DrawIndexedPrimitiveUP( D3DPT_LINELIST, 0, 24, 12, (void *)index, D3DFMT_INDEX16, ObjectBounds, sizeof( VertexData  ;
}
void CEngine:raw3DBoundingBoxChams( LTVector mins, LTVector maxs, D3DCOLOR color1, D3DCOLOR color2
{
   m_pDevice->SetRenderState( D3DRS_ZENABLE, FALSE ;
   m_pDevice->SetRenderState( D3DRS_ZFUNC, D3DCMP_NEVER ;
   Draw3DBoundingBox( mins, maxs, color1 ;
   m_pDevice->SetRenderState( D3DRS_ZENABLE, TRUE ;
   m_pDevice->SetRenderState( D3DRS_ZFUNC, D3DCMP_LESSEQUAL ;
   Draw3DBoundingBox( mins, maxs, color2 ;
}
make your own hotkey...

=======================================
My first time to code a health esp , but edit this code if somethin's wrong
Code:
/*
-Healthbar: Draw a rectangular healthbar at a given  position, bar goes down, and color changed (green-red) as health  decreses
*HealthBar Parameters:
**x = Horizontal position of the healthbar
**y = Vertical position of the healthbar
NOTE: dimentions: either: 100px, 12px OR 100px,10px;  take these into account
**Health =  value that the healthbar will emulate (i.e. @ 50 health, the bar will be  halfway down)
*/
void Healthbar(float x, float y, float Health)
{
float Red   =     255-(Health*2.55);
float Green =     Health*2.55;
   if(Health>0)
   {
    Box(x-1,y-1,102,12,D3DCOLOR_ARGB( 255 ,20, 20, 20));//background +border
   //Box(x,y,100,10,D3DCOLOR_ARGB( 255 ,20, 20,  20));//background  no border
    Box(x,y,Health,10,D3DCOLOR_ARGB( 255, Red, Green, 0));//Healthbar
   }
}
function:
Code:
Box(X,Y,W,H,DWORD  Color);
make your own hotkey....
============================================
Finally is Xhair (edit some if something's wrong)
the this is the global
Code:
 float  ScreenCenterX = 0.0f;//Horizontal Position
 float ScreenCenterY = 0.0f;//Vertical Position
 bool xhair = false;
 D3DCOLOR redt = D3DCOLOR_XRGB( 255, 0, 0 );

of course you must put a setviewport
Code:
ScreenCenterX  = ( float )pViewport->Width / 2;
  ScreenCenterY = ( float )pViewport->Height / 2;
now for the endscene
Code:
if(xhair)
    {
      D3DRECT  rec2 = {ScreenCenterX-20, ScreenCenterY, ScreenCenterX+ 20,  ScreenCenterY+2};
   D3DRECT rec3 =  {ScreenCenterX, ScreenCenterY-20, ScreenCenterX+ 2,ScreenCenterY+20};
                                
   m_pD3Ddev->Clear(1, &rec2,  D3DCLEAR_TARGET,redt, 0,  0);
    m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,redt, 0,  0);
   }
and this for the hotkey:
Code:
if( GetAsyncKeyState(  VK_f1 ) & 1 )
{
xhair = !xhair; // Means , xhair will be on

}


if you want the crosshair automatic on just edit "bool xhair = false;" to "bool xhair = true;" (remove the quotes) and no need to put the hotkey


but you need to download d3d9 starter kit not d3d8 to edit some codes

credits :
[sf-wh-sc]-|-Venran-|- = owner of the ******** and the code giver
me = for posting
Ovenran is offline  
Old 07/10/2010, 18:01   #2
 
eren14's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 90
Received Thanks: 17
dude how wer can use plz more explain and share with us psf or usf
eren14 is offline  
Old 07/10/2010, 19:06   #3
 
bongx3m's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 235
Received Thanks: 119
only pro coder can do this!!
bongx3m is offline  
Thanks
1 User
Old 07/10/2010, 22:11   #4
 
GoDzAssassiN-'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 656
Received Thanks: 271
#Reported its still advertising u should of used stars
GoDzAssassiN- is offline  
Old 07/11/2010, 01:20   #5
 
thechos3n's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 132
Received Thanks: 25
~Advertising
~Help from some coder finding codes...
thechos3n is offline  
Thanks
1 User
Old 07/11/2010, 05:49   #6
 
Ovenran's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 717
Received Thanks: 361
hmm... i can remove the site , i leeched it on GzP that's why ok i will remove
Ovenran is offline  
Old 07/11/2010, 05:51   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 17
Received Thanks: 5
i think i know that.. thankz man!.
bhebzkie143 is offline  
Old 07/11/2010, 05:58   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 17
Received Thanks: 5
..maybe we should use programming language like C++ visual basic javascript etc!..
bhebzkie143 is offline  
Old 07/11/2010, 06:00   #9
 
Ovenran's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 717
Received Thanks: 361
Quote:
Originally Posted by thechos3n View Post
~Help from some coder finding codes...
i cant understand it ?
Ovenran is offline  
Old 07/11/2010, 06:02   #10
 
Ovenran's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 717
Received Thanks: 361
for those who don't know , compile that in c++
Ovenran is offline  
Old 07/13/2010, 12:20   #11
 
Ovenran's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 717
Received Thanks: 361
>>>Updated<<<
Ovenran is offline  
Old 07/15/2010, 14:58   #12
 
elite*gold: 370
Join Date: Jul 2010
Posts: 7,603
Received Thanks: 4,196
Thanks.
This will help me.
Match*Star. is offline  
Old 07/21/2010, 12:46   #13
 
elite*gold: 0
Join Date: Jul 2010
Posts: 4
Received Thanks: 0
i can do this
allenborgie is offline  
Old 07/21/2010, 21:38   #14
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2
Received Thanks: 0
how to use this code ?
mixusf is offline  
Old 07/22/2010, 03:59   #15
 
elite*gold: 0
Join Date: Dec 2009
Posts: 75
Received Thanks: 28
any one can make it dll please make it dll and post it in elitepvpers ^^
no0ne1 is offline  
Reply




All times are GMT +2. The time now is 11:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.