|
|
|
@ -234,14 +234,14 @@ typedef struct enginefuncs_s
@@ -234,14 +234,14 @@ typedef struct enginefuncs_s
|
|
|
|
|
|
|
|
|
|
int (*pfnCheckVisibility )( const edict_t *entity, unsigned char *pset ); |
|
|
|
|
|
|
|
|
|
void (*pfnDeltaSetField) ( delta_t *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaUnsetField)( delta_t *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaAddEncoder)( char *name, void (*conditionalencode)( delta_t *pFields, const unsigned char *from, const unsigned char *to ) ); |
|
|
|
|
void (*pfnDeltaSetField) ( struct delta_s *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaUnsetField)( struct delta_s *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaAddEncoder)( char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to ) ); |
|
|
|
|
int (*pfnGetCurrentPlayer)( void ); |
|
|
|
|
int (*pfnCanSkipPlayer)( const edict_t *player ); |
|
|
|
|
int (*pfnDeltaFindField)( delta_t *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaSetFieldByIndex)( delta_t *pFields, int fieldNumber ); |
|
|
|
|
void (*pfnDeltaUnsetFieldByIndex)( delta_t *pFields, int fieldNumber ); |
|
|
|
|
int (*pfnDeltaFindField)( struct delta_s *pFields, const char *fieldname ); |
|
|
|
|
void (*pfnDeltaSetFieldByIndex)( struct delta_s *pFields, int fieldNumber ); |
|
|
|
|
void (*pfnDeltaUnsetFieldByIndex)( struct delta_s *pFields, int fieldNumber ); |
|
|
|
|
void (*pfnSetGroupMask)( int mask, int op ); |
|
|
|
|
int (*pfnCreateInstancedBaseline)( int classname, struct entity_state_s *baseline ); |
|
|
|
|
void (*pfnCvar_DirectSet)( struct cvar_s *var, const char *value ); |
|
|
|
@ -393,13 +393,6 @@ typedef struct
@@ -393,13 +393,6 @@ typedef struct
|
|
|
|
|
#undef ARRAYSIZE |
|
|
|
|
#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 |
|
|
|
|
{ |
|
|
|
|
// Initialize/shutdown the game (one-time call after loading of game .dll )
|
|
|
|
@ -450,22 +443,22 @@ typedef struct
@@ -450,22 +443,22 @@ typedef struct
|
|
|
|
|
// 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 (*pfnPM_Move)( playermove_t *ppmove, qboolean server ); |
|
|
|
|
void (*pfnPM_Init)( playermove_t *ppmove ); |
|
|
|
|
void (*pfnPM_Move)( struct playermove_s *ppmove, qboolean server ); |
|
|
|
|
void (*pfnPM_Init)( struct playermove_s *ppmove ); |
|
|
|
|
char (*pfnPM_FindTextureType)( char *name ); |
|
|
|
|
void (*pfnSetupVisibility)( edict_t *pViewEntity, edict_t *pClient, unsigned char **pvs, unsigned char **pas ); |
|
|
|
|
void (*pfnUpdateClientData) ( const edict_t *ent, int sendweapons, clientdata_t *cd ); |
|
|
|
|
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, entity_state_t *baseline, edict_t *entity, int playermodelindex, vec3_t player_mins, vec3_t player_maxs ); |
|
|
|
|
void (*pfnSetupVisibility)( struct edict_s *pViewEntity, struct edict_s *pClient, unsigned char **pvs, unsigned char **pas ); |
|
|
|
|
void (*pfnUpdateClientData) ( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd ); |
|
|
|
|
int (*pfnAddToFullPack)( struct entity_state_s *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 (*pfnRegisterEncoders)( void ); |
|
|
|
|
int (*pfnGetWeaponData)( edict_t *player, weapon_data_t *info ); |
|
|
|
|
int (*pfnGetWeaponData)( struct edict_s *player, struct weapon_data_s *info ); |
|
|
|
|
|
|
|
|
|
void (*pfnCmdStart)( const edict_t *player, const usercmd_t *cmd, unsigned int random_seed ); |
|
|
|
|
void (*pfnCmdStart)( const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed ); |
|
|
|
|
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
|
|
|
|
|
// size of the response_buffer, so you must zero it out if you choose not to respond.
|
|
|
|
|
int (*pfnConnectionlessPacket )( const netadr_t *net_from, const char *args, char *response_buffer, int *response_buffer_size ); |
|
|
|
|
int (*pfnConnectionlessPacket )( const struct netadr_s *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
|
|
|
|
|
int (*pfnGetHullBounds) ( int hullnumber, float *mins, float *maxs ); |
|
|
|
@ -475,7 +468,7 @@ typedef struct
@@ -475,7 +468,7 @@ typedef struct
|
|
|
|
|
|
|
|
|
|
// 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 )
|
|
|
|
|
int (*pfnInconsistentFile)( const edict_t *player, const char *filename, char *disconnect_message ); |
|
|
|
|
int (*pfnInconsistentFile)( const struct edict_s *player, const char *filename, char *disconnect_message ); |
|
|
|
|
|
|
|
|
|
// The game .dll should return 1 if lag compensation should be allowed ( could also just set
|
|
|
|
|
// the sv_unlag cvar.
|
|
|
|
|