Advertisement
Guest User

Hacks.h

a guest
Jun 23rd, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <Windows.h>
  4. #include "d3d9.h"
  5. #include <ctime>
  6. #include <iostream>
  7.  
  8. #define D3DHOOK_TEXTURES
  9. #define MAX_MENU_ITEMS 5
  10.  
  11. #define WALLHACK 0
  12. #define CUSTOM_CROSSHAIR 1
  13. #define NO_RECOIL 2
  14. #define UNLIM_AMMO 3
  15. #define HIDE_MENU 4
  16.  
  17. class Hacks
  18. {
  19. public:
  20.     int m_Stride;
  21.  
  22.     void Hacks::CreateFont(IDirect3DDevice9 *d3dDevice, std::string choiceFont);
  23.     void Hacks::InitializeMenuItems();
  24.     void Hacks::Draw_Text(LPCSTR TextToDraw, int x, int y, D3DCOLOR Colour);
  25.     void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice);
  26.     void Hacks::DrawFilledRect(int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* d3dDevice);
  27.     void Hacks::DrawBorderBox( int x, int y, int w, int h, int thickness, D3DCOLOR Colour, IDirect3DDevice9 *d3dDevice);
  28.     void Hacks::KeyboardInput();
  29.  
  30.  
  31.     LPDIRECT3DTEXTURE9 texRed;
  32.     LPDIRECT3DTEXTURE9 texGreen;
  33.  
  34.  
  35.     LPDIRECT3DTEXTURE9 texBlue;
  36.     LPDIRECT3DTEXTURE9 texWhite;
  37.  
  38.  
  39.     D3DVIEWPORT9 g_ViewPort;
  40.  
  41.     LPD3DXFONT m_font;
  42.  
  43.  
  44.     struct d3dMenuHack
  45.     {
  46.         bool on;
  47.         std::string name;
  48.     };
  49.  
  50.     d3dMenuHack hack[MAX_MENU_ITEMS];
  51. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement