-
Notifications
You must be signed in to change notification settings - Fork 13
/
m_CheckDangerous.h
75 lines (52 loc) · 2.04 KB
/
m_CheckDangerous.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
64
65
66
67
68
69
70
71
72
73
74
75
#ifdef FUNCTION_DECLARE
#define MODULE_CHECKDANGEROUS
void ChickenLife();
void CheckDangerousPlayer( UnitAny *pUnit );
void CheckDangerousMonster( UnitAny *pUnit );
#endif
#ifdef VARIABLE_DEFINE
GVAR (BOOL, fLifeProtectOn, FALSE)
GVAR (BOOL, fDangerousMonsterActive,FALSE)
GVAR (DWORD, dwChickenLife, 0)
GVAR (DWORD, dwChickenHostileLife, 0)
GVAR (DWORD, dwChickenHostileNearbyLife, 0)
GVAR (DWORD, dwChickenLifePercent, 0)
GVAR (DWORD, dwChickenHostileLifePercent, 0)
GVAR (DWORD, dwChickenHostileNearbyLifePercent, 0)
GVAR (DWORD, nChickenLifeAction, 1)
GVAR2(ToggleVar, tChickenLife, 1, 0, -1, 1, "Chicken life")
GVAR2(ToggleVar, tChickenHostile, 1, 0, -1, 1, "Chicken hostile")
GVAR2(ToggleVar, tChickenHostileNearby, 1, 0, -1, 1, "Chicken hostile nearby")
GVAR2(ToggleVar, tChickenDangerousMonster, 1, 0, -1, 1, "Chicken Dangerous Monster")
GVAR2(char, anDangerousMonster[1000][2] , {0})
GVAR (DWORD, nDangerousMonsterAction, 2)
#endif
#ifdef PATH_INSTALL
#endif
#ifdef CONFIG_LOAD
{1, "ChickenLifeToggle", &tChickenLife },
{1, "ChickenHostileToggle", &tChickenHostile },
{1, "ChickenHostileNearbyToggle", &tChickenHostileNearby },
{2, "ChickenLife", &dwChickenLife, 4},
{2, "ChickenHostileLife", &dwChickenHostileLife, 4},
{2, "ChickenHostileNearbyLife", &dwChickenHostileNearbyLife,4},
{2, "ChickenLifePercent", &dwChickenLifePercent, 4},
{2, "ChickenHostileLifePercent", &dwChickenHostileLifePercent,4},
{2, "ChickenHostileNearbyLifePercent", &dwChickenHostileNearbyLifePercent,4},
{2, "ChickenLifeAction", &nChickenLifeAction, 4},
{5, "DangerousMonster", &anDangerousMonster, 2,{1000}},
{1, "DangerousMonsterChickenToggle", &tChickenDangerousMonster},
{2, "DangerousMonsterAction", &nDangerousMonsterAction, 4},
#endif
#ifdef RUN_ONCE
#endif
#ifdef RUN_LOOP
ChickenLife();
#endif
#ifdef RUN_ENDGAME
#endif
#ifdef INIT_VALUE
memset(anDangerousMonster, 0, sizeof(anDangerousMonster));
#endif
#ifdef FIX_VALUE
#endif