Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ClassManager
- {
- D3DXVECTOR3 position;
- public:
- CPlayerBase* GetGameBase()
- {
- return *(CPlayerBase**)Gbase;
- }
- CPlayerBoost* GetPlayerBoost()
- {
- return *(CPlayerBoost**)Gbase;
- }
- CrosshairData* GetCrosshairData()
- {
- return *(CrosshairData**)Gbase;
- }
- KillComboData* GetKillComboData()
- {
- return *(KillComboData**)Gbase;
- }
- DWORD GetBase()
- {
- DWORD result = *(PDWORD)Pbase;
- if (!result)
- return 0;
- result = *(PDWORD)(result + 0x1C);
- if (!result)
- return 0;
- return *(PDWORD)(result + 0x10);
- }
- CharacterHack* CharacterData()
- {
- DWORD x4 = *(PDWORD)Pbase;
- if (x4 == 0)return 0;
- x4 = *(PDWORD)(x4 + 0x1C);
- if (x4 == 0)return 0;
- x4 = *(PDWORD)(x4 + 0x10);
- if (x4 == 0)return 0;
- return *(CharacterHack**)(x4 + 0x0);
- }
- WeaponHack* WeaponData()
- {
- DWORD x5 = *(PDWORD)Gbase;
- if (x5 == 0) return 0;
- return *(WeaponHack**)(x5 + WEAPOFFSET);
- }
- DWORD GetBasePlayer()
- {
- DWORD x2 = *(PDWORD)Pbase;
- if (!x2) return 0;
- return *(PDWORD)(x2 + 0x24);
- }
- CPlayer* GetPlayerByIndex(int index)
- {
- DWORD BasePtr = GetBase();
- if (BasePtr == 0) return 0;
- return *(CPlayer**)(BasePtr + (index * 4) + 4);
- }
- int GetMyIndex()
- {
- CPlayerBase* pPlayerBase = GetGameBase();
- if (!pPlayerBase) return 0;
- return pPlayerBase->Index;
- }
- CPlayer* MyPlayer()
- {
- return GetPlayerByIndex(GetMyIndex());
- }
- WeapControl* WeapData()
- {
- DWORD zPlay = *(PDWORD)Pbase;
- if (zPlay == 0)return 0;
- zPlay = *(PDWORD)(zPlay + 0x1C);
- if (zPlay == 0)return 0;
- zPlay = *(PDWORD)(zPlay + 0x10);
- if (zPlay == 0)return 0;
- return *(WeapControl**)(zPlay + 0x44);
- }
- };
- extern ClassManager pClassManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement