Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define Pbase 0xE3ABE0 //0x1235E48
- #define Gbase 0xE329FC //0x122DADC
- #define GEON 0xFC49 //[BYTE]
- #define GEXP 0xFC4C //[DWORD]
- #define GESP 0xFC50 //[DWORD]
- #define CP 0x7F5C //Knife + ChangeItem + Emblem( %d ) [%d%%] //DOWN
- #define GT 0x7F60 //[GameType]
- #define SPREAD 0x1C470
- #define RECOIL 0x1C474
- #define NOWEAPON 0xDA6C98 //BYTE 89 4E 30 89 4E 34 89 46 40 89 46 44 //FLD
- #define UNLIAMMO 0x92E9C2 //mg36 //up //MOV [ESI+00000134],EAX ADDRESS IS THE OFFSET
- #define EXPSET 0x869588 //],000003F3 //MOV EAX+OFFSET
- #define PNAME 0x56640
- #define WIN 0xD8 //menu\\Inf\\mode\\shotgun\\dead_screen_03.tga //DOWN //[ebp-84]:SE_DllLoaded //mov dwotd ptr ss: //or sf_c_luckypoint_curve_03.lma //down
- #define HEALTH 0x1D80F0 //t-ms-win-usp10-l1-1-0 //DOWN //esi+680:L"FALSE" //push dword ptr ds:[eax + OFFSET]
- class CPlayerBase
- {
- public:
- char unknown[GT];
- int Index;
- int GameType;
- };
- class CPlayer
- {
- public:
- char unknown1[PNAME];
- char _Name[12];
- char unknown2[HEALTH];
- int health;
- char unknown3[128];
- float lx;
- float ly;
- float lz;
- char unknown4[96];
- float vx;
- float vy;
- float vz;
- char unknown5[540];
- float x2;
- float y2;
- float z2;
- };
- class ClassManager
- {
- D3DXVECTOR3 position;
- public:
- CPlayerBase* GetPlayerBase()
- {
- return *(CPlayerBase**)Pbase;
- }
- DWORD GetHP()
- {
- DWORD x1 = *(PDWORD)Gbase;
- if (!x1) return 0;
- return *(PDWORD)(x1 + HEALTH);
- }
- DWORD GetBase()
- {
- DWORD result = *(PDWORD)Gbase;
- if (!result)
- return 0;
- result = *(PDWORD)(result + 0x1C);
- if (!result)
- return 0;
- return *(PDWORD)(result + 0x10);
- }
- void GetName(int index, char* name)
- {
- CPlayer* tmpc = GetPlayerByIndex(index);
- if (tmpc)
- sprintf(name, "%s", tmpc->_Name);
- else
- sprintf(name, "#");
- }
- bool SameTeam(int i)
- {
- DWORD ptr = (DWORD)GetPlayerBase();
- BYTE myTeam = *(PBYTE)(2604 * GetMyIndex() + 0x5F4 + ptr);
- BYTE iTeam = *(PBYTE)(2604 * i + 0x5F4 + ptr);
- if (iTeam == myTeam)
- return true;
- return false;
- }
- DWORD GetWeaponBase()
- {
- DWORD BasePtr = GetBase();
- if (!BasePtr)
- return 0;
- return *(PDWORD)(BasePtr + 0x44);
- }
- CPlayer* GetPlayerByIndex(int index)
- {
- DWORD BasePtr = GetBase();
- if (BasePtr == 0)
- return 0;
- return *(CPlayer**)(BasePtr + (index * 4) + 4);
- }
- int GetMyIndex()
- {
- CPlayerBase* pPlayerBase = GetPlayerBase();
- if (!pPlayerBase)
- return 0;
- return pPlayerBase->Index;
- }
- CPlayer* MyPlayer()
- {
- return GetPlayerByIndex(GetMyIndex());
- }
- };
- extern ClassManager pClassManager;
- class CSettings
- {
- public:
- int currentGT;
- BYTE Orig[6];
- void Options(LPDIRECT3DDEVICE9 pDevice);
- void RBytes();
- };
- extern CSettings Settings;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement