-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsc.hpp
126 lines (105 loc) · 2.93 KB
/
gsc.hpp
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
#ifndef _GSC_HPP_
#define _GSC_HPP_
#define COD2_1_0 210
#define COD2_1_2 212
#define COD2_1_3 213
/* default stuff */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <dlfcn.h> // dlcall
#include <stdarg.h> // va_args
#include <unistd.h> //link, unlink, usleep
#include <dirent.h> // dir stuff
#include <sys/mman.h> // mprotect
#include <execinfo.h> // stacktrace
#include <stddef.h> // offsetof
#include <ctype.h> // toupper
#include <time.h> // getsystemtime
#include <sys/stat.h> // fsize
#include "config.hpp"
#include "declarations.hpp" //voron tak reshil :)
#include "cracking.hpp"
#include "functions.hpp"
#if COMPILE_BOTS == 1
#include "gsc_bots.hpp"
#endif
#if COMPILE_ENTITY == 1
#include "gsc_entity.hpp"
#endif
#if COMPILE_EXEC == 1
#include "gsc_exec.hpp"
#endif
#if COMPILE_LEVEL == 1
#include "gsc_level.hpp"
#endif
#if COMPILE_MEMORY == 1
#include "gsc_memory.hpp"
#endif
#if COMPILE_MYSQL_DEFAULT == 1
#include "gsc_mysql.hpp"
#endif
#if COMPILE_MYSQL_VORON == 1
#include "gsc_mysql_voron.hpp"
#endif
#if COMPILE_PLAYER == 1
#include "gsc_player.hpp"
#endif
#if COMPILE_UTILS == 1
#include "gsc_utils.hpp"
#endif
#if COMPILE_WEAPONS == 1
#include "gsc_weapons.hpp"
#endif
#ifdef EXTRA_INCLUDES_INC
#include "extra/includes.hpp"
#endif
#define STACK_UNDEFINED 0
#define STACK_OBJECT 1
#define STACK_STRING 2
#define STACK_LOCALIZED_STRING 3
#define STACK_VECTOR 4
#define STACK_FLOAT 5
#define STACK_INT 6
#define STACK_CODEPOS 7
#define STACK_PRECODEPOS 8
#define STACK_FUNCTION 9
#define STACK_STACK 10
#define STACK_ANIMATION 11
#define STACK_DEVELOPER_CODEPOS 12
#define STACK_INCLUDE_CODEPOS 13
#define STACK_THREAD_LIST 14
#define STACK_THREAD_1 15
#define STACK_THREAD_2 16
#define STACK_THREAD_3 17
#define STACK_THREAD_4 18
#define STACK_STRUCT 19
#define STACK_REMOVED_ENTITY 20
#define STACK_ENTITY 21
#define STACK_ARRAY 22
#define STACK_REMOVED_THREAD 23
#define stackPushUndefined Scr_AddUndefined
#define stackPushBool Scr_AddBool
#define stackPushInt Scr_AddInt
#define stackPushFloat Scr_AddFloat
#define stackPushString Scr_AddString
#define stackPushVector Scr_AddVector
#define stackPushEntity Scr_AddEntity
#define stackPushArray Scr_MakeArray
#define stackPushArrayLast Scr_AddArray
#define stackPushObject Scr_AddObject
int stackGetParamType(int param);
const char *stackGetParamTypeAsString(int param);
int stackGetParams(const char *params, ...);
void stackError(const char *format, ...);
int stackGetParamInt(int param, int *value);
int stackGetParamFunction(int param, int *value);
int stackGetParamString(int param, char **value);
int stackGetParamConstString(int param, unsigned int *value);
int stackGetParamVector(int param, vec3_t value);
int stackGetParamFloat(int param, float *value);
int stackGetParamObject(int param, unsigned int *value);
xfunction_t Scr_GetCustomFunction(const char **fname, qboolean *fdev);
xmethod_t Scr_GetCustomMethod(const char **fname, qboolean *fdev);
#endif