Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Offsets.h"
- #include "Memory.h"
- #include "readMemory.h"
- #include "Math.h"
- #include "Vector3.h"
- void readMemory::getClient()
- {
- DWORD clientSize = 0;
- ClientDLL = Memory::Module("client.dll", clientSize);
- }
- void Weapon::currWep(DWORD Player)
- {
- DWORD WepHandle = Memory::Read<DWORD>(Player + m_hActiveWeapon);
- DWORD EntID = WepHandle & 0xFFF;
- currW = Memory::Read<DWORD>(ClientDLL + EntityListOff + (EntID - 1) * 0x10); //current weapon
- }
- void LocalPlayer::getPlayer()
- {
- Player = Memory::Read<DWORD>(ClientDLL + LocalPlayerOff);
- }
Advertisement
Add Comment
Please, Sign In to add comment