libcod
gsc.hpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <dlfcn.h>
#include <stdarg.h>
#include "config.hpp"
#include "functions.hpp"
#include "gsc_player.hpp"
#include "gsc_astar.hpp"
#include "gsc_mysql.hpp"
#include "gsc_memory.hpp"
#include "gsc_car.hpp"
#include "gsc_tcc.hpp"
#include "gsc_utils.hpp"
#include "gsc_math.hpp"
#include "cracking.hpp"
Include dependency graph for gsc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  aStackElement
 
struct  Scr_Function
 
struct  Scr_Method
 

Macros

#define COD2_MAX_STRINGLENGTH   1024
 
#define COD2_VERSION_1_0   0
 
#define COD2_VERSION_1_2   2
 
#define COD2_VERSION_1_3   3
 
#define COD1_1_5   115
 
#define COD2_1_0   210
 
#define COD2_1_2   212
 
#define COD2_1_3   213
 
#define COD4_1_7   417
 
#define COD4_1_7_L   4171
 

Typedefs

typedef void(* Scr_FunctionCall) ()
 
typedef Scr_FunctionCall(* Scr_GetFunction_t) (const char **fname, int *fdev)
 
typedef void(* Scr_MethodCall) (int)
 
typedef Scr_MethodCall(* Scr_GetMethod_t) (const char **, int *)
 

Functions

int getStack ()
 
int stackNew ()
 
int stackPushUndefined ()
 
int stackGetParamInt (int param, int *value)
 
int stackGetParamString (int param, char **value)
 
int stackGetParamVector (int param, float value[3])
 
int stackGetParamFloat (int param, float *value)
 
int stackGetNumberOfParams ()
 
int stackGetParamType (int param)
 
char * stackGetParamTypeAsString (int param)
 
int stackGetParams (char *params,...)
 
int stackReturnInt (int ret)
 
int stackPushInt (int ret)
 
int stackReturnVector (float *ret)
 
int stackPushVector (float *ret)
 
int stackPushFloat (float ret)
 
int stackPushString (char *toPush)
 
int stackPushEntity (int arg)
 
int stackPushArray ()
 
int stackPushArrayLast ()
 
int stackCallScriptFunction (int self, int scriptFunction, int numberOfArgs)
 
int stackSetKeyInArray (int precachedStringOffset)
 
int cdecl_injected_closer ()
 
int cdecl_injected_closer_stack_debug ()
 
int sub_8101B40 (int self, int eInflictor, int eAttacker, float *vDir, float *vPoint, int iDamage, int iDFlags, int iMeansOfDeath, int iHitLoc, int psOffsetTime)
 
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)
 
Scr_FunctionCall Scr_GetCustomFunction (const char **fname, int *fdev)
 
Scr_MethodCall Scr_GetCustomMethod (const char **fname, int *fdev)
 

Macro Definition Documentation

#define COD1_1_5   115
#define COD2_1_0   210
#define COD2_1_2   212
#define COD2_1_3   213
#define COD2_MAX_STRINGLENGTH   1024
#define COD2_VERSION_1_0   0
#define COD2_VERSION_1_2   2
#define COD2_VERSION_1_3   3
#define COD4_1_7   417
#define COD4_1_7_L   4171

Typedef Documentation

typedef void(* Scr_FunctionCall) ()
typedef Scr_FunctionCall(* Scr_GetFunction_t) (const char **fname, int *fdev)
typedef Scr_MethodCall(* Scr_GetMethod_t) (const char **, int *)
typedef void(* Scr_MethodCall) (int)

Function Documentation

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 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int cdecl_injected_closer ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int cdecl_injected_closer_stack_debug ( )
int getStack ( )

Here is the caller graph for this function:

Scr_FunctionCall Scr_GetCustomFunction ( const char **  fname,
int *  fdev 
)

Here is the caller graph for this function:

Scr_MethodCall Scr_GetCustomMethod ( const char **  fname,
int *  fdev 
)

Here is the caller graph for this function:

int stackCallScriptFunction ( int  self,
int  scriptFunction,
int  numberOfArgs 
)
int stackGetNumberOfParams ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParamFloat ( int  param,
float *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParamInt ( int  param,
int *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParams ( char *  params,
  ... 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParamString ( int  param,
char **  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParamType ( int  param)

Here is the call graph for this function:

Here is the caller graph for this function:

char* stackGetParamTypeAsString ( int  param)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackGetParamVector ( int  param,
float  value[3] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackNew ( )

Here is the caller graph for this function:

int stackPushArray ( )

Here is the caller graph for this function:

int stackPushArrayLast ( )

Here is the caller graph for this function:

int stackPushEntity ( int  arg)

Here is the caller graph for this function:

int stackPushFloat ( float  ret)

Here is the caller graph for this function:

int stackPushInt ( int  ret)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackPushString ( char *  toPush)

Here is the caller graph for this function:

int stackPushUndefined ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int stackPushVector ( float *  ret)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackReturnInt ( int  ret)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackReturnVector ( float *  ret)

Here is the call graph for this function:

Here is the caller graph for this function:

int stackSetKeyInArray ( int  precachedStringOffset)

Here is the caller graph for this function:

int sub_8101B40 ( int  self,
int  eInflictor,
int  eAttacker,
float *  vDir,
float *  vPoint,
int  iDamage,
int  iDFlags,
int  iMeansOfDeath,
int  iHitLoc,
int  psOffsetTime 
)

Here is the caller graph for this function: