libcod
gsc.cpp File Reference
#include "gsc.hpp"
Include dependency graph for gsc.cpp:

Data Structures

struct  aStack
 

Macros

#define TOSTRING2(str)   #str
 
#define TOSTRING1(str)   TOSTRING2(str)
 
#define AT   __FILE__ ":" TOSTRING1(__LINE__)
 
#define LEVEL_SPACE   do { for (int i=0; i<level; i++) printf(" "); }while(0);
 
#define MAX_OSPATH   256
 
#define MAX_ZPATH   256
 
#define MAX_SEARCH_PATHS   4096
 
#define MAX_FILEHASH_SIZE   1024
 

Functions

char * stackGetParamTypeAsString (int param)
 
int stackPrintParam (int param)
 
void gsc_utils_printf ()
 
void gsc_utils_printfline ()
 
void gsc_utils_com_printf ()
 
void gsc_utils_redirectprintf ()
 
Scr_FunctionCall Scr_GetCustomFunction (const char **fname, int *fdev)
 
void gsc_player_printf (int id)
 
Scr_MethodCall Scr_GetCustomMethod (const char **fname, int *fdev)
 
int getStack ()
 
int stackGetParamType (int param)
 
int stackGetParams (char *params,...)
 
int getNumberOfParams ()
 
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 cdecl_injected_closer_stack_debug ()
 
int stackNew ()
 
int stackPushUndefined ()
 
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 stackCallScriptFunction (int self, int scriptFunction, int numberOfArgs)
 
int stackPushArray ()
 
int stackSetKeyInArray (int precachedStringOffset)
 
int stackPushArrayLast ()
 
int sub_807BCA8 ()
 
int sub_807AB64 (void *offsetData, int key, int a_plus_b_mod_fffd_plus_1)
 
void print_aStack (aStack *stack)
 
int sub_807B064 (void *offsetData, int key, int a_plus_b_mod_fffd_plus_1)
 
int sub_807B1E6 (void *offsetData, int key)
 
int sub_807C71C (void *offsetData, int key)
 
int sub_807CB12 (int v2, aStackElement *stackElement)
 
int sub_80853B6 (int key)
 
int cdecl_injected_closer ()
 
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)
 

Variables

Scr_GetFunction_t Scr_GetFunction = (Scr_GetFunction_t)NULL
 
Scr_GetMethod_t Scr_GetMethod = (Scr_GetMethod_t)NULL
 
Scr_Function scriptFunctions []
 
Scr_Method scriptMethods []
 
int stackCallbackPlayerDamage = 0x0884D718
 
int level = 0
 

Macro Definition Documentation

#define AT   __FILE__ ":" TOSTRING1(__LINE__)
#define LEVEL_SPACE   do { for (int i=0; i<level; i++) printf(" "); }while(0);
#define MAX_FILEHASH_SIZE   1024
#define MAX_OSPATH   256
#define MAX_SEARCH_PATHS   4096
#define MAX_ZPATH   256
#define TOSTRING1 (   str)    TOSTRING2(str)
#define TOSTRING2 (   str)    #str

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 getNumberOfParams ( )

Here is the caller graph for this function:

int getStack ( )

Here is the caller graph for this function:

void gsc_player_printf ( int  id)
void gsc_utils_com_printf ( )

Here is the call graph for this function:

void gsc_utils_printf ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void gsc_utils_printfline ( )

Here is the call graph for this function:

void gsc_utils_redirectprintf ( )

Here is the call graph for this function:

void print_aStack ( aStack stack)

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 stackPrintParam ( int  param)

Here is the call graph for this function:

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_807AB64 ( void *  offsetData,
int  key,
int  a_plus_b_mod_fffd_plus_1 
)

Here is the caller graph for this function:

int sub_807B064 ( void *  offsetData,
int  key,
int  a_plus_b_mod_fffd_plus_1 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int sub_807B1E6 ( void *  offsetData,
int  key 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int sub_807BCA8 ( )

Here is the caller graph for this function:

int sub_807C71C ( void *  offsetData,
int  key 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int sub_807CB12 ( int  v2,
aStackElement stackElement 
)

Here is the caller graph for this function:

int sub_80853B6 ( int  key)

Here is the call graph for this function:

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:

Variable Documentation

int level = 0
Scr_GetFunction_t Scr_GetFunction = (Scr_GetFunction_t)NULL
Scr_GetMethod_t Scr_GetMethod = (Scr_GetMethod_t)NULL
Scr_Function scriptFunctions[]
Scr_Method scriptMethods[]
int stackCallbackPlayerDamage = 0x0884D718