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 }
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 ; }
=======================================
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 } }
Code:
Box(X,Y,W,H,DWORD Color);
============================================
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;
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); }
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