-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathglobal.cpp
132 lines (119 loc) · 5.09 KB
/
global.cpp
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#include <global.h>
#include <typeHandlerImplementations/charHandler.h>
#include <typeHandlerImplementations/shortHandler.h>
#include <typeHandlerImplementations/boolHandler.h>
#include <typeHandlerImplementations/byteHandler.h>
#include <typeHandlerImplementations/longHandler.h>
#include <typeHandlerImplementations/CBaseEntityHandler.h>
#include <typeHandlerImplementations/charPtrHandler.h>
#include <typeHandlerImplementations/edict_sPtrHandler.h>
#include <typeHandlerImplementations/floatHandler.h>
#include <typeHandlerImplementations/VectorHandler.h>
#include <typeHandlerImplementations/VectorPointerHandler.h>
#include <typeHandlerImplementations/VectorPointerByRefHandler.h>
#include <typeHandlerImplementations/CMBaseMonsterHandler.h>
#include <typeHandlerImplementations/entvarsHandler.h>
#include <typeHandlerImplementations/CGameRulesHandler.h>
#include <typeHandlerImplementations/charArrHandler.h>
#include <structures/MonsterEvent.h>
#include <structures/DLL_FUNCTIONS.h>
#include <structures/playermove.h>
#include <structures/enginefuncs.h>
#include <structures/usercmdStruct.h>
#include <structures/traceResult.h>
#include <structures/movevars.h>
#include <structures/physent.h>
#include <structures/pmplane.h>
#include <structures/pmtraceStruct.h>
#include <structures/weapon_data.h>
#include <structures/ammoInfo.h>
#include <structures/itemInfo.h>
#include <structures/task.h>
#include <structures/schedule.h>
#include <structures/KeyValueData.h>
#include <structures/cvar.h>
namespace Global
{
TypeHandlerManager* TypeHandlerManagerObj = NULL;
ConfigManager* ConfigManagerObj = NULL;
FunctionManager* FunctionManagerObj = NULL;
StructManager* StructManagerObj = new StructManager();
FunctionStructuresManager* FunctionStructuresManagerObj = new FunctionStructuresManager();
FunctionVirtualManager* FunctionVirtualManagerObj = new FunctionVirtualManager();
MemoryStructManager* MemoryStructManagerObj = new MemoryStructManager();
Folders OrpheuFolders =
{
ke::AString("orpheu"),
ke::AString("libraries"),
ke::AString("functions"),
ke::AString("types"),
ke::AString("virtualFunctions"),
ke::AString("mods"),
ke::AString("memory")
};
TypeHandler* Types[] =
{
new BoolHandler(),
new ByteHandler(),
new LongHandler(),
new CBaseEntityHandler(),
new CharPtrHandler(),
new Edict_sPtrHandler(),
new FloatHandler(),
new VectorPointerHandler(),
new VectorPointerByRefHandler(),
new CMBaseMonsterHandler(),
new CharHandler(),
new ShortHandler(),
new EntvarsHandler(),
new VectorHandler(),
new CGameRulesHandler(),
new CharArrHandler()
};
StructHandlerDirect* StructuresDirect[] =
{
new StructHandlerDirect((new movevarsStructData())->getStructInfo()),
new StructHandlerDirect((new usercmdStructData())->getStructInfo()),
new StructHandlerDirect((new MonsterEvent())->getStructInfo()),
new StructHandlerDirect((new DLL_FUNCTIONS_StructData())->getStructInfo()),
new StructHandlerDirect((new PlayerMove())->getStructInfo()),
new StructHandlerDirect((new enginefuncsStructData())->getStructInfo()),
new StructHandlerDirect((new TraceResultStructData())->getStructInfo()),
new StructHandlerDirect((new PhysentStructData())->getStructInfo()),
new StructHandlerDirect((new PmplaneStructData())->getStructInfo()),
new StructHandlerDirect((new PmtraceStructData())->getStructInfo()),
new StructHandlerDirect((new WeaponData())->getStructInfo()),
new StructHandlerDirect((new AmmoInfo())->getStructInfo()),
new StructHandlerDirect((new ItemInfo())->getStructInfo()),
new StructHandlerDirect((new Task())->getStructInfo()),
new StructHandlerDirect((new Schedule())->getStructInfo()),
new StructHandlerDirect((new KeyValueData_StructData())->getStructInfo()),
new StructHandlerDirect((new cvarStructData())->getStructInfo())
};
StructHandler* Structures[] =
{
new StructHandler((new movevarsStructData())->getStructInfo()),
new StructHandler((new usercmdStructData())->getStructInfo()),
new StructHandler((new MonsterEvent())->getStructInfo()),
new StructHandler((new DLL_FUNCTIONS_StructData())->getStructInfo()),
new StructHandler((new PlayerMove())->getStructInfo()),
new StructHandler((new enginefuncsStructData())->getStructInfo()),
new StructHandler((new TraceResultStructData())->getStructInfo()),
new StructHandler((new PhysentStructData())->getStructInfo()),
new StructHandler((new PmplaneStructData())->getStructInfo()),
new StructHandler((new PmtraceStructData())->getStructInfo()),
new StructHandler((new WeaponData())->getStructInfo()),
new StructHandler((new AmmoInfo())->getStructInfo()),
new StructHandler((new ItemInfo())->getStructInfo()),
new StructHandler((new Task())->getStructInfo()),
new StructHandler((new Schedule())->getStructInfo()),
new StructHandler((new KeyValueData_StructData())->getStructInfo()),
new StructHandler((new cvarStructData())->getStructInfo())
};
unsigned int TypesCount = sizeof(Types) / sizeof(TypeHandler*);
unsigned int StructuresCount = sizeof(Structures) / sizeof(StructHandler*);
ke::AString Modname;
int pev = 0;
StringHashMap<char*>* LibrariesCvarToName = NULL;
Function* FunctionBeingHooked = NULL;
}