-
Notifications
You must be signed in to change notification settings - Fork 13
/
m_GameCount.h
63 lines (38 loc) · 1.03 KB
/
m_GameCount.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
52
53
54
55
56
57
58
59
60
61
62
63
#ifdef FUNCTION_DECLARE
#define MODULE_GAMECOUNT
void KillCountPatch_ASM();
void ShowGameCount();
void UnitModeChangePatch_ASM();
#endif
#ifdef VARIABLE_DEFINE
GVAR2(ToggleVar, tKillCount, 1, 0, -1, 1, 0, )
GVAR2(ToggleVar, tGetHitCount, 1, 0, -1, 1, 0, )
GVAR (DWORD, dwKillSum, 0)
GVAR (DWORD, dwGameKills, 0)
GVAR (DWORD, dwLastKills, 0)
GVAR (DWORD, dwGetHitSum, 0)
GVAR (DWORD, dwGetHits, 0)
GVAR (DWORD, dwOrgMode, 0)
#endif
#ifdef PATH_INSTALL
{PatchCALL, DLLOFFSET(D2CLIENT, 0x6FB6EB21), (DWORD)KillCountPatch_ASM, 6 , &fDefault},
{PatchCALL, DLLOFFSET(D2COMMON, 0x6FDAF912), (DWORD)UnitModeChangePatch_ASM, 6 , &fDefault},
#endif
#ifdef CONFIG_LOAD
{1, "KillCountToggle", &tKillCount },
{1, "GetHitCountToggle", &tGetHitCount },
#endif
#ifdef RUN_ONCE
dwGetHits = 0;
dwGameKills = 0;
dwLastKills = 0;
#endif
#ifdef RUN_LOOP
dwOrgMode = 0;
#endif
#ifdef RUN_ENDGAME
#endif
#ifdef INIT_VALUE
#endif
#ifdef FIX_VALUE
#endif