|
|
@ -96,6 +96,8 @@ typedef struct |
|
|
|
|
|
|
|
|
|
|
|
typedef unsigned long CRC32_t; |
|
|
|
typedef unsigned long CRC32_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct delta_s delta_t; |
|
|
|
|
|
|
|
|
|
|
|
// Engine hands this to DLLs for functionality callbacks
|
|
|
|
// Engine hands this to DLLs for functionality callbacks
|
|
|
|
typedef struct enginefuncs_s |
|
|
|
typedef struct enginefuncs_s |
|
|
|
{ |
|
|
|
{ |
|
|
@ -231,14 +233,14 @@ typedef struct enginefuncs_s |
|
|
|
|
|
|
|
|
|
|
|
int (*pfnCheckVisibility )( const edict_t *entity, unsigned char *pset ); |
|
|
|
int (*pfnCheckVisibility )( const edict_t *entity, unsigned char *pset ); |
|
|
|
|
|
|
|
|
|
|
|
void (*pfnDeltaSetField) ( struct delta_s *pFields, const char *fieldname ); |
|
|
|
void (*pfnDeltaSetField) ( delta_t *pFields, const char *fieldname ); |
|
|
|
void (*pfnDeltaUnsetField)( struct delta_s *pFields, const char *fieldname ); |
|
|
|
void (*pfnDeltaUnsetField)( delta_t *pFields, const char *fieldname ); |
|
|
|
void (*pfnDeltaAddEncoder)( char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to ) ); |
|
|
|
void (*pfnDeltaAddEncoder)( char *name, void (*conditionalencode)( delta_t *pFields, const unsigned char *from, const unsigned char *to ) ); |
|
|
|
int (*pfnGetCurrentPlayer)( void ); |
|
|
|
int (*pfnGetCurrentPlayer)( void ); |
|
|
|
int (*pfnCanSkipPlayer)( const edict_t *player ); |
|
|
|
int (*pfnCanSkipPlayer)( const edict_t *player ); |
|
|
|
int (*pfnDeltaFindField)( struct delta_s *pFields, const char *fieldname ); |
|
|
|
int (*pfnDeltaFindField)( delta_t *pFields, const char *fieldname ); |
|
|
|
void (*pfnDeltaSetFieldByIndex)( struct delta_s *pFields, int fieldNumber ); |
|
|
|
void (*pfnDeltaSetFieldByIndex)( delta_t *pFields, int fieldNumber ); |
|
|
|
void (*pfnDeltaUnsetFieldByIndex)( struct delta_s *pFields, int fieldNumber ); |
|
|
|
void (*pfnDeltaUnsetFieldByIndex)( delta_t *pFields, int fieldNumber ); |
|
|
|
void (*pfnSetGroupMask)( int mask, int op ); |
|
|
|
void (*pfnSetGroupMask)( int mask, int op ); |
|
|
|
int (*pfnCreateInstancedBaseline)( int classname, struct entity_state_s *baseline ); |
|
|
|
int (*pfnCreateInstancedBaseline)( int classname, struct entity_state_s *baseline ); |
|
|
|
void (*pfnCvar_DirectSet)( struct cvar_s *var, char *value ); |
|
|
|
void (*pfnCvar_DirectSet)( struct cvar_s *var, char *value ); |
|
|
@ -389,6 +391,13 @@ typedef struct |
|
|
|
|
|
|
|
|
|
|
|
#define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) |
|
|
|
#define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct playermove_s playermove_t; |
|
|
|
|
|
|
|
typedef struct clientdata_s clientdata_t; |
|
|
|
|
|
|
|
typedef struct entity_state_s entity_state_t; |
|
|
|
|
|
|
|
typedef struct weapon_data_s weapon_data_t; |
|
|
|
|
|
|
|
typedef struct netadr_t netadr_s; |
|
|
|
|
|
|
|
typedef struct usercmd_s usercmd_t; |
|
|
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
typedef struct |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Initialize/shutdown the game (one-time call after loading of game .dll )
|
|
|
|
// Initialize/shutdown the game (one-time call after loading of game .dll )
|
|
|
@ -439,22 +448,22 @@ typedef struct |
|
|
|
// Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
|
|
|
|
// Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint.
|
|
|
|
void (*pfnSys_Error)( const char *error_string ); |
|
|
|
void (*pfnSys_Error)( const char *error_string ); |
|
|
|
|
|
|
|
|
|
|
|
void (*pfnPM_Move)( struct playermove_s *ppmove, qboolean server ); |
|
|
|
void (*pfnPM_Move)( playermove_t *ppmove, qboolean server ); |
|
|
|
void (*pfnPM_Init)( struct playermove_s *ppmove ); |
|
|
|
void (*pfnPM_Init)( playermove_t *ppmove ); |
|
|
|
char (*pfnPM_FindTextureType)( char *name ); |
|
|
|
char (*pfnPM_FindTextureType)( char *name ); |
|
|
|
void (*pfnSetupVisibility)( struct edict_s *pViewEntity, struct edict_s *pClient, unsigned char **pvs, unsigned char **pas ); |
|
|
|
void (*pfnSetupVisibility)( edict_t *pViewEntity, edict_t *pClient, unsigned char **pvs, unsigned char **pas ); |
|
|
|
void (*pfnUpdateClientData) ( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd ); |
|
|
|
void (*pfnUpdateClientData) ( const edict_t *ent, int sendweapons, clientdata_t *cd ); |
|
|
|
int (*pfnAddToFullPack)( struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet ); |
|
|
|
int (*pfnAddToFullPack)( entity_state_t *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet ); |
|
|
|
void (*pfnCreateBaseline)( int player, int eindex, struct entity_state_s *baseline, struct edict_s *entity, int playermodelindex, vec3_t player_mins, vec3_t player_maxs ); |
|
|
|
void (*pfnCreateBaseline)( int player, int eindex, entity_state_t *baseline, edict_t *entity, int playermodelindex, vec3_t player_mins, vec3_t player_maxs ); |
|
|
|
void (*pfnRegisterEncoders)( void ); |
|
|
|
void (*pfnRegisterEncoders)( void ); |
|
|
|
int (*pfnGetWeaponData)( struct edict_s *player, struct weapon_data_s *info ); |
|
|
|
int (*pfnGetWeaponData)( edict_t *player, weapon_data_t *info ); |
|
|
|
|
|
|
|
|
|
|
|
void (*pfnCmdStart)( const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed ); |
|
|
|
void (*pfnCmdStart)( const edict_t *player, const usercmd_t *cmd, unsigned int random_seed ); |
|
|
|
void (*pfnCmdEnd)( const edict_t *player ); |
|
|
|
void (*pfnCmdEnd)( const edict_t *player ); |
|
|
|
|
|
|
|
|
|
|
|
// Return 1 if the packet is valid. Set response_buffer_size if you want to send a response packet. Incoming, it holds the max
|
|
|
|
// Return 1 if the packet is valid. Set response_buffer_size if you want to send a response packet. Incoming, it holds the max
|
|
|
|
// size of the response_buffer, so you must zero it out if you choose not to respond.
|
|
|
|
// size of the response_buffer, so you must zero it out if you choose not to respond.
|
|
|
|
int (*pfnConnectionlessPacket )( const struct netadr_s *net_from, const char *args, char *response_buffer, int *response_buffer_size ); |
|
|
|
int (*pfnConnectionlessPacket )( const netadr_t *net_from, const char *args, char *response_buffer, int *response_buffer_size ); |
|
|
|
|
|
|
|
|
|
|
|
// Enumerates player hulls. Returns 0 if the hull number doesn't exist, 1 otherwise
|
|
|
|
// Enumerates player hulls. Returns 0 if the hull number doesn't exist, 1 otherwise
|
|
|
|
int (*pfnGetHullBounds) ( int hullnumber, float *mins, float *maxs ); |
|
|
|
int (*pfnGetHullBounds) ( int hullnumber, float *mins, float *maxs ); |
|
|
@ -464,7 +473,7 @@ typedef struct |
|
|
|
|
|
|
|
|
|
|
|
// One of the pfnForceUnmodified files failed the consistency check for the specified player
|
|
|
|
// One of the pfnForceUnmodified files failed the consistency check for the specified player
|
|
|
|
// Return 0 to allow the client to continue, 1 to force immediate disconnection ( with an optional disconnect message of up to 256 characters )
|
|
|
|
// Return 0 to allow the client to continue, 1 to force immediate disconnection ( with an optional disconnect message of up to 256 characters )
|
|
|
|
int (*pfnInconsistentFile)( const struct edict_s *player, const char *filename, char *disconnect_message ); |
|
|
|
int (*pfnInconsistentFile)( const edict_t *player, const char *filename, char *disconnect_message ); |
|
|
|
|
|
|
|
|
|
|
|
// The game .dll should return 1 if lag compensation should be allowed ( could also just set
|
|
|
|
// The game .dll should return 1 if lag compensation should be allowed ( could also just set
|
|
|
|
// the sv_unlag cvar.
|
|
|
|
// the sv_unlag cvar.
|
|
|
@ -496,4 +505,4 @@ extern NEW_DLL_FUNCTIONS gNewDLLFunctions; |
|
|
|
typedef int (*APIFUNCTION)( DLL_FUNCTIONS *pFunctionTable, int interfaceVersion ); |
|
|
|
typedef int (*APIFUNCTION)( DLL_FUNCTIONS *pFunctionTable, int interfaceVersion ); |
|
|
|
typedef int (*APIFUNCTION2)( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion ); |
|
|
|
typedef int (*APIFUNCTION2)( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion ); |
|
|
|
|
|
|
|
|
|
|
|
#endif//EIFACE_H
|
|
|
|
#endif//EIFACE_H
|
|
|
|