3 #define COD2_MAX_STRINGLENGTH 1024
20 #define COD2_VERSION_1_0 0 // depricated
21 #define COD2_VERSION_1_2 2 // depricated
22 #define COD2_VERSION_1_3 3 // depricated
29 #define COD4_1_7_L 4171
80 #if COD2_VERSION == COD2_VERSION_1_2 || COD2_VERSION == COD2_VERSION_1_3 || COD_VERSION == COD2_1_0
81 #define STACK_UNDEFINED 0
82 #define STACK_OBJECT 1
83 #define STACK_STRING 2
84 #define STACK_LOCALIZED_STRING 3
85 #define STACK_VECTOR 4
88 #define STACK_CODEPOS 7
89 #define STACK_PRECODEPOS 8
90 #define STACK_FUNCTION 9
91 #define STACK_STACK 10
92 #define STACK_ANIMATION 11
93 #define STACK_DEVELOPER_CODEPOS 12
94 #define STACK_INCLUDE_CODEPOS 13
95 #define STACK_THREAD_LIST 14
96 #define STACK_THREAD_1 15
97 #define STACK_THREAD_2 16
98 #define STACK_THREAD_3 17
99 #define STACK_THREAD_4 18
100 #define STACK_STRUCT 19
101 #define STACK_REMOVED_ENTITY 20
102 #define STACK_ENTITY 21
103 #define STACK_ARRAY 22
104 #define STACK_REMOVED_THREAD 23
106 #elif COD_VERSION == COD1_1_5
108 #define STACK_UNDEFINED 0
109 #define STACK_STRING 1
110 #define STACK_LOCALIZED_STRING 2
111 #define STACK_VECTOR 3
112 #define STACK_FLOAT 4
114 #define STACK_CODEPOS 6
115 #define STACK_OBJECT 7
116 #define STACK_KEY_VALUE 8
117 #define STACK_FUNCTION 9
118 #define STACK_STACK 10
119 #define STACK_ANIMATION 11
120 #define STACK_THREAD 12
121 #define STACK_ENTITY 13
122 #define STACK_STRUCT 14
123 #define STACK_ARRAY 15
124 #define STACK_DEAD_THREAD 16
125 #define STACK_DEAD_ENTITY 17
126 #define STACK_DEAD_OBJECT 18
128 #elif COD_VERSION == COD4_1_7 || COD_VERSION == COD4_1_7_L
135 #define STACK_UNDEFINED 0
136 #define STACK_OBJECT 1
137 #define STACK_STRING 2
138 #define STACK_LOCALIZED_STRING 3
139 #define STACK_VECTOR 4
140 #define STACK_FLOAT 5
142 #define STACK_CODEPOS 7
143 #define STACK_PRECODEPOS 8
144 #define STACK_FUNCTION 9
145 #define STACK_STACK 10
146 #define STACK_ANIMATION 11
147 #define STACK_DEVELOPER_CODEPOS 12
148 #define STACK_INCLUDE_CODEPOS 13
149 #define STACK_THREAD_LIST 14
150 #define STACK_THREAD_1 15
151 #define STACK_THREAD_2 16
152 #define STACK_THREAD_3 17
153 #define STACK_THREAD_4 18
154 #define STACK_STRUCT 19
155 #define STACK_REMOVED_ENTITY 20
156 #define STACK_ENTITY 21
157 #define STACK_ARRAY 22
158 #define STACK_REMOVED_THREAD 23
199 int sub_8101B40(
int self,
int eInflictor,
int eAttacker,
float *vDir,
float *vPoint,
int iDamage,
int iDFlags,
int iMeansOfDeath,
int iHitLoc,
int psOffsetTime);
200 int cdecl_cod2_player_damage_new(
int self,
int eInflictor,
int eAttacker,
float *vDir,
float *vPoint,
int iDamage,
int iDFlags,
int iMeansOfDeath,
int iHitLoc,
int psOffsetTime);
int stackGetParamInt(int param, int *value)
Definition: gsc.cpp:474
int getStack()
Definition: gsc.cpp:367
void * offsetData
Definition: gsc.hpp:166
int stackReturnInt(int ret)
Definition: gsc.cpp:675
int developer
Definition: gsc.hpp:214
int stackNew()
Definition: gsc.cpp:618
char * stackGetParamTypeAsString(int param)
Definition: gsc.cpp:60
int stackPushEntity(int arg)
Definition: gsc.cpp:815
int stackGetParamFloat(int param, float *value)
Definition: gsc.cpp:542
Scr_MethodCall Scr_GetCustomMethod(const char **fname, int *fdev)
Definition: gsc.cpp:342
int stackPushVector(float *ret)
Definition: gsc.cpp:734
Scr_FunctionCall call
Definition: gsc.hpp:213
int cdecl_injected_closer()
Definition: gsc.cpp:1386
int stackPushString(char *toPush)
Definition: gsc.cpp:794
int cdecl_cod2_player_damage_new(int self, int eInflictor, int eAttacker, float *vDir, float *vPoint, int iDamage, int iDFlags, int iMeansOfDeath, int iHitLoc, int psOffsetTime)
Definition: gsc.cpp:2009
int stackGetParamString(int param, char **value)
Definition: gsc.cpp:500
Scr_MethodCall call
Definition: gsc.hpp:226
int stackReturnVector(float *ret)
Definition: gsc.cpp:722
Scr_FunctionCall(* Scr_GetFunction_t)(const char **fname, int *fdev)
Definition: gsc.hpp:217
void(* Scr_FunctionCall)()
Definition: gsc.hpp:209
int type
Definition: gsc.hpp:167
int stackCallScriptFunction(int self, int scriptFunction, int numberOfArgs)
Definition: gsc.cpp:834
int cdecl_injected_closer_stack_debug()
Definition: gsc.cpp:577
int developer
Definition: gsc.hpp:227
int stackGetParamVector(int param, float value[3])
Definition: gsc.cpp:530
void(* Scr_MethodCall)(int)
Definition: gsc.hpp:222
int stackPushFloat(float ret)
Definition: gsc.cpp:773
Scr_MethodCall(* Scr_GetMethod_t)(const char **, int *)
Definition: gsc.hpp:230
int stackSetKeyInArray(int precachedStringOffset)
Definition: gsc.cpp:864
const char * name
Definition: gsc.hpp:212
int stackPushUndefined()
Definition: gsc.cpp:641
int stackPushArray()
Definition: gsc.cpp:843
int stackGetNumberOfParams()
Definition: gsc.cpp:570
const char * name
Definition: gsc.hpp:225
Scr_FunctionCall Scr_GetCustomFunction(const char **fname, int *fdev)
Definition: gsc.cpp:279
int stackPushInt(int ret)
Definition: gsc.cpp:685
int stackGetParamType(int param)
Definition: gsc.cpp:387
int stackGetParams(char *params,...)
Definition: gsc.cpp:394
int sub_8101B40(int self, int eInflictor, int eAttacker, float *vDir, float *vPoint, int iDamage, int iDFlags, int iMeansOfDeath, int iHitLoc, int psOffsetTime)
Definition: gsc.cpp:1976
int stackPushArrayLast()
Definition: gsc.cpp:871