-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathOffsets.h
38 lines (33 loc) · 1.01 KB
/
Offsets.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <Windows.h>
#include "ProcessManager.hpp"
namespace Offset
{
inline DWORD EntityList;
inline DWORD LocalPlayerController;
inline DWORD LocalPlayerPawn;
// https://github.com/a2x/cs2-dumper/blob/main/generated/client.dll.hpp
struct
{
DWORD Health = 0x334;
DWORD TeamID = 0x3CB;
DWORD PlayerPawn = 0x604; // CBasePlayerController -> m_hPawn
DWORD EnemySensor = 0x1440; // m_flDetectedByEnemySensorTime
} Entity;
struct
{
DWORD CurrentHealth = 0x334; // m_iHealth
DWORD pClippingWeapon = 0x1308;
DWORD iIDEntIndex = 0x15A4;
DWORD iTeamNum = 0x3CB;
DWORD bSpottedByMask = 0x1698 + 0xC;
} Pawn;
// https://github.com/a2x/cs2-dumper/blob/main/config.json
namespace Signatures
{
const std::string EntityList = "48 8B 0D ?? ?? ?? ?? 48 89 7C 24 ?? 8B FA C1 EB";
const std::string LocalPlayerController = "48 8B 05 ?? ?? ?? ?? 48 85 C0 74 4F";
const std::string LocalPlayerPawn = "48 8D 05 ?? ?? ?? ?? C3 CC CC CC CC CC CC CC CC 48 83 EC ?? 8B 0D";
}
bool UpdateOffsets();
}