View Poll Results: Vote

Voters
1. This poll is closed
  • Thanks it's can be or it's helpful

    0 0%
  • not bad

    1 100.00%
  • what a noob

    0 0%
Results 1 to 4 of 4
  1. #1
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,453
    Reputation
    342
    Thanks
    3,514
    My Mood
    Cool

    For make a crosshair

    Note thats is leeched from GP, I'm posting it here because i want some1 that try to make 1 or just say if it's working...

    I don't know if this is already posted but i already tried "serch button"

    For doing this you will need : D3D starterkit 3.0 (attached) and VC ++ 6

    Virus scan of the starter kit 3.0

    Ok first of all open starterkit folder then open d3d9 folder, Copy the 2 files called: TatniumD3D.dsw and .dsp from old_workspace folder and paste it in the d3d9 folder.


    Now open TatniumD3D.dsw with VC ++ 6. Then look in d3d9dev.cpp for : #define D3DHOOK_TEXTURES, put right under it
    Code:
    float ScreenCenterX = 0.0f;
    float ScreenCenterY = 0.0f;
    bool crosshair = false;
    D3DCOLOR color = D3DCOLOR_XRGB( 200, 0, 0 ); // Add your own values if you want....
    Now press Ctrl + F and search for SetViewport
    And again write under right under : HRESULT APIENTRY hkIDirect3DDevice9::SetViewport(CONST D3DVIEWPORT9 *pViewport)
    {
    That
    Code:
    ScreenCenterX = ( float )pViewport->Width / 2;
    ScreenCenterY = ( float )pViewport->Height / 2;
    This should lokk like :
    Code:
    HRESULT APIENTRY hkIDirect3DDevice9::SetViewport(CONST D3DVIEWPORT9 *pViewport)
    {
    ScreenCenterX = ( float )pViewport->Width / 2;
    ScreenCenterY = ( float )pViewport->Height / 2;
    return m_pD3Ddev->SetViewport(pViewport);
    }
    Now Press Ctrl + F again and search for EndScene

    Put
    Code:
    if(crosshair)
    {
    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,color, 0, 0);
    m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,color, 0, 0);
    }
    In EndScene

    Finish, now for the hotkey ....

    Put
    Code:
    if( GetAsyncKeyState( VK_Insert ) & 1 )
    {
    crosshair = !crosshair;
    }
    in endspace or beginspace they are both working.

    Built it and your done, i tried this but i had 6 errors

    I also find a fps rate, Some guy here released that menu+Fps rate and everyone thought he was releasing a hack in GP.

    They say it's easy
    Just pick the source of the menu (i released in her)
    And put this source into it:

    Code:
    //includes 
    
    #include <time.h>  
    
    
    //globals 
    
    float fFps = 0.0f; 
    float fLastTickCount = 0.0f; 
    float fCurrentTickCount; 
    char cFrameRate[50] = {0}; 
    
    
    
    //Do the rest in EndScene 
    
    HRESULT APIENTRY IDirect3DDevice9::EndScene() 
    {  
    
      fCurrentTickCount = clock() * 0.001f;  
      ++fFps; 
    
      if((fCurrentTickCount - fLastTickCount) > 1.0f) 
      {  
        fLastTickCount = fCurrentTickCount;  
        sprintf(cFrameRate, "[ FPS: %d ]", int(fFps)); 
        fFps = 0; 
      }  
    
      return Device->EndScene();  
    
    }
    I hope it helpful and pleae don't flame me, thanks me if you want and please any1 try to make that crosshair
    Last edited by Disturbed; 06-23-2011 at 10:41 PM.

  2. #2
    stratbasher's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    1
    first of all, with the menu and FPS counter, you should add #include <iostream> and using namespace std; or else the sprintf won't work
    second, i got mine to compile fine, with a few warnings about float to long conversion and using sprintf, but it's compiled...

  3. #3
    ChimiBang's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    South California
    Posts
    5,870
    Reputation
    152
    Thanks
    441
    My Mood
    Mellow
    nice fucking bump -.- from the 09 ROFL


    Multi

  4. #4
    Jabuuty671's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    21,221
    Reputation
    1468
    Thanks
    4,093
    Oh fucking god /closed


  5. The Following User Says Thank You to Jabuuty671 For This Useful Post:

    Ali (09-04-2010)

Similar Threads

  1. [Tutorial] How to make a Crosshair for Dummies
    By Parade in forum CrossFire Tutorials
    Replies: 34
    Last Post: 06-25-2011, 04:53 PM
  2. Is there any tutorial for making a crosshair
    By salen in forum Alliance of Valiant Arms (AVA) Hacks & Cheats
    Replies: 14
    Last Post: 02-27-2010, 06:57 PM
  3. [Request] How to make a crosshair for combat arms in Visual basic?
    By trevor206 in forum Programming Tutorial Requests
    Replies: 3
    Last Post: 01-30-2010, 09:44 PM
  4. Looking partner for making PRO TRAINERS!
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-11-2007, 11:57 AM
  5. Need Values And Tips For Making Trainer
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 06-06-2007, 12:37 PM