Advertisement
allen343434

Untitled

Mar 23rd, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. class ClassManager
  2. {
  3. D3DXVECTOR3 position;
  4. public:
  5. CPlayerBase* GetGameBase()
  6. {
  7. return *(CPlayerBase**)Gbase;
  8. }
  9.  
  10. CPlayerBoost* GetPlayerBoost()
  11. {
  12. return *(CPlayerBoost**)Gbase;
  13. }
  14.  
  15. CrosshairData* GetCrosshairData()
  16. {
  17. return *(CrosshairData**)Gbase;
  18. }
  19.  
  20. KillComboData* GetKillComboData()
  21. {
  22. return *(KillComboData**)Gbase;
  23. }
  24.  
  25. DWORD GetBase()
  26. {
  27. DWORD result = *(PDWORD)Pbase;
  28. if (!result)
  29. return 0;
  30.  
  31. result = *(PDWORD)(result + 0x1C);
  32.  
  33. if (!result)
  34. return 0;
  35.  
  36. return *(PDWORD)(result + 0x10);
  37. }
  38.  
  39. CharacterHack* CharacterData()
  40. {
  41. DWORD x4 = *(PDWORD)Pbase;
  42. if (x4 == 0)return 0;
  43.  
  44. x4 = *(PDWORD)(x4 + 0x1C);
  45. if (x4 == 0)return 0;
  46.  
  47. x4 = *(PDWORD)(x4 + 0x10);
  48. if (x4 == 0)return 0;
  49.  
  50. return *(CharacterHack**)(x4 + 0x0);
  51. }
  52.  
  53. WeaponHack* WeaponData()
  54. {
  55. DWORD x5 = *(PDWORD)Gbase;
  56. if (x5 == 0) return 0;
  57.  
  58. return *(WeaponHack**)(x5 + WEAPOFFSET);
  59. }
  60.  
  61. DWORD GetBasePlayer()
  62. {
  63. DWORD x2 = *(PDWORD)Pbase;
  64. if (!x2) return 0;
  65.  
  66. return *(PDWORD)(x2 + 0x24);
  67. }
  68.  
  69. CPlayer* GetPlayerByIndex(int index)
  70. {
  71. DWORD BasePtr = GetBase();
  72. if (BasePtr == 0) return 0;
  73.  
  74. return *(CPlayer**)(BasePtr + (index * 4) + 4);
  75. }
  76.  
  77. int GetMyIndex()
  78. {
  79. CPlayerBase* pPlayerBase = GetGameBase();
  80. if (!pPlayerBase) return 0;
  81.  
  82. return pPlayerBase->Index;
  83. }
  84.  
  85. CPlayer* MyPlayer()
  86. {
  87. return GetPlayerByIndex(GetMyIndex());
  88. }
  89.  
  90. WeapControl* WeapData()
  91. {
  92. DWORD zPlay = *(PDWORD)Pbase;
  93. if (zPlay == 0)return 0;
  94.  
  95. zPlay = *(PDWORD)(zPlay + 0x1C);
  96. if (zPlay == 0)return 0;
  97.  
  98. zPlay = *(PDWORD)(zPlay + 0x10);
  99. if (zPlay == 0)return 0;
  100.  
  101. return *(WeapControl**)(zPlay + 0x44);
  102. }
  103. };
  104. extern ClassManager pClassManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement