-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathclient.h
51 lines (45 loc) · 1.76 KB
/
client.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
39
40
41
42
43
44
45
46
47
48
49
50
51
#define cls_realtime ((int*)0x155F3E0)
#define cls_state ((int*)0x155F2C0)
#define cls_downloadRestart ((PINT)0x15EEFBC)
#define clc_downloadList ((PCHAR)0x15EEBBC)
#define clc_stringData ((PCHAR)0x1436A7C)
#define clc_stringOffsets ((PINT)0x1434A7C)
#define cls_downloadBlock ((PINT)0x15EEBB0)
#define cls_downloadCount ((PINT)0x15EEBB4)
#define cls_downloadName ((PCHAR)0x15EEAAC)
#define cls_downloadTempName ((PCHAR)0x15EE9AC)
#define clc_serverAddress ((netadr_t*)0x15CE86C)
#define clc_connectTime ((PINT)0x15CE880)
#define clc_demoplaying ((PINT)0x15EF004)
#define clc_connectPacketCount ((PINT)0x15CE884)
#define cls_keyCatchers ((PINT)0x155F2C4)
#define cls_servername ((char*)0x155F2CC)
#define cls_numglobalservers ((int*)0x1565004)
#define cls_numGlobalServerAddresses ((int*)0x15C1008)
#define cls_pingUpdateSource ((int*)0x15C9C10)
static void(*CL_AddReliableCommand)(const char *cmd) = (void(*)(const char*))0x40E2F0;
static const char* (*CL_TranslateStringBuf)(const char *string) = (const char*(*)(const char*))0x4A9E20;
#define cs0 (clc_stringData + clc_stringOffsets[0])
#define cs1 (clc_stringData + clc_stringOffsets[1])
#define gameWindow ((HWND*)0x16C35E8)
#define glc_vidWidth ((int*)0x16C3AE4)
#define glc_vidHeight ((int*)0x16C3AE8)
static bool unlock_client_structure() {
__try {
XUNLOCK((void*)cls_realtime, sizeof(int));
XUNLOCK((void*)cls_state, sizeof(int));
XUNLOCK((void*)cls_downloadRestart, 4);
XUNLOCK((void*)0x155F2C0, 4);
XUNLOCK((void*)clc_connectTime, 4);
XUNLOCK((void*)clc_demoplaying, 4);
XUNLOCK((void*)clc_downloadList, 4096);
XUNLOCK((void*)cls_downloadBlock, 4);
XUNLOCK((void*)cls_downloadCount, 4);
XUNLOCK((void*)0x15EEAAC, 64);
XUNLOCK((void*)cls_downloadTempName, 64);
}
__except (1) {
return false;
}
return true;
}