Results 1 to 3 of 3
  1. #1
    undergroundhack's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    130
    Reputation
    10
    Thanks
    100
    My Mood
    Amazed

    Cool [new source] drawing crosshair

    here is an easy way to center a crosshair. d3d

    thanks

    Code:
    //Globals 
      
      float ScreenCenterX = 0.0f;//Horizontal Position 
      float ScreenCenterY = 0.0f;//Vertical Position 
      bool crosshair = false; 
      D3DCOLOR redt = D3DCOLOR_XRGB( 255, 0, 0 ); 
    
    
    //Add this SetViewport 
    
      ScreenCenterX = ( float )pViewport->Width / 2; 
      ScreenCenterY = ( float )pViewport->Height / 2; 
    
    //Add this in EndScene 
    
            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,redt, 0,  0); 
        m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,redt, 0,  0); 
        }
    [IMG]https://i665.photobucke*****m/albums/vv17/undergroundhack/avatar_2961.gif[/IMG]
    goal list!
    get 10 kill streak on ca [X]
    get 100 kill streak on ca [X]
    get 30 post [X]
    get 80 post [X]
    get 100 post [X]
    get 400 post []
    make a small ca cham [X]
    get mpgh mod []

    respect list!
    dave84311
    [MPGH]obama

    press thanks!

  2. #2
    Darko155's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    71
    My Mood
    Relaxed
    only that?? That is a full hack???

  3. #3
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by Darko155 View Post
    only that?? That is a full hack???
    Well yes, a crosshair. All that is happening here is he is dividing the width and hight of your comp by 2, and finding where they meet. Then you have the center... And when your done with that, you can customize it.

Tags for this Thread