mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
Formatted g_public source file
This commit is contained in:
parent
1c10e7a63d
commit
b27bfbe189
1 changed files with 414 additions and 369 deletions
|
@ -143,7 +143,6 @@ typedef struct {
|
|||
int port;
|
||||
} client_persistant_t;
|
||||
|
||||
|
||||
// this structure is cleared on each ClientSpawn(),
|
||||
// except for 'client->pers' and 'client->sess'
|
||||
struct gclient_s {
|
||||
|
@ -199,8 +198,7 @@ typedef enum {
|
|||
MOVER_2TO1
|
||||
} moverState_t;
|
||||
|
||||
typedef struct profVar_s
|
||||
{
|
||||
typedef struct profVar_s {
|
||||
int start;
|
||||
int clockCycles;
|
||||
int calls;
|
||||
|
@ -212,8 +210,7 @@ typedef struct profVar_s
|
|||
|
||||
} profVar_t;
|
||||
|
||||
typedef struct profGame_s
|
||||
{
|
||||
typedef struct profGame_s {
|
||||
profVar_t AI;
|
||||
profVar_t MmoveSingle;
|
||||
profVar_t thread_timingList;
|
||||
|
@ -232,8 +229,7 @@ typedef struct profGame_s
|
|||
|
||||
//===============================================================
|
||||
|
||||
typedef struct gameImport_s
|
||||
{
|
||||
typedef struct gameImport_s {
|
||||
void (*Printf)(const char *format, ...);
|
||||
void (*DPrintf)(const char *format, ...);
|
||||
void (*DPrintf2)(const char *format, ...);
|
||||
|
@ -298,9 +294,36 @@ typedef struct gameImport_s
|
|||
void (*GetUserinfo)(int index, char *buffer, int bufferSize);
|
||||
void (*SetBrushModel)(gentity_t *ent, const char *name);
|
||||
void (*ModelBoundsFromName)(const char *name, vec3_t mins, vec3_t maxs);
|
||||
qboolean ( *SightTraceEntity )( gentity_t *touch, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int contentMask, qboolean cylinder );
|
||||
qboolean ( *SightTrace )( const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int passEntityNum2, int contentMask, qboolean cylinder );
|
||||
void ( *trace )( trace_t *results, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int passEntityNum, int contentMask, qboolean cylinder, qboolean traceDeep );
|
||||
qboolean (*SightTraceEntity)(
|
||||
gentity_t *touch,
|
||||
const vec3_t start,
|
||||
const vec3_t mins,
|
||||
const vec3_t maxs,
|
||||
const vec3_t end,
|
||||
int contentMask,
|
||||
qboolean cylinder
|
||||
);
|
||||
qboolean (*SightTrace)(
|
||||
const vec3_t start,
|
||||
const vec3_t mins,
|
||||
const vec3_t maxs,
|
||||
const vec3_t end,
|
||||
int passEntityNum,
|
||||
int passEntityNum2,
|
||||
int contentMask,
|
||||
qboolean cylinder
|
||||
);
|
||||
void (*trace)(
|
||||
trace_t *results,
|
||||
const vec3_t start,
|
||||
const vec3_t mins,
|
||||
const vec3_t maxs,
|
||||
const vec3_t end,
|
||||
int passEntityNum,
|
||||
int contentMask,
|
||||
qboolean cylinder,
|
||||
qboolean traceDeep
|
||||
);
|
||||
baseshader_t *(*GetShader)(int shaderNum);
|
||||
int (*pointcontents)(const vec3_t p, int passEntityNum);
|
||||
int (*PointBrushnum)(const vec3_t p, clipHandle_t model);
|
||||
|
@ -311,7 +334,15 @@ typedef struct gameImport_s
|
|||
void (*linkentity)(gentity_t *gEnt);
|
||||
void (*unlinkentity)(gentity_t *gEnt);
|
||||
int (*AreaEntities)(const vec3_t mins, const vec3_t maxs, int *list, int maxcount);
|
||||
void ( *ClipToEntity )( trace_t *tr, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, int entityNum, int contentMask );
|
||||
void (*ClipToEntity)(
|
||||
trace_t *tr,
|
||||
const vec3_t start,
|
||||
const vec3_t mins,
|
||||
const vec3_t maxs,
|
||||
const vec3_t end,
|
||||
int entityNum,
|
||||
int contentMask
|
||||
);
|
||||
qboolean (*HitEntity)(gentity_t *pEnt, gentity_t *pOther);
|
||||
int (*imageindex)(const char *name);
|
||||
int (*itemindex)(const char *name);
|
||||
|
@ -356,7 +387,9 @@ typedef struct gameImport_s
|
|||
orientation_t (*TIKI_OrientationInternal)(dtiki_t *tiki, int entNum, int tagNum, float scale);
|
||||
void *(*TIKI_TransformInternal)(dtiki_t *tiki, int entNum, int tagNum);
|
||||
qboolean (*TIKI_IsOnGroundInternal)(dtiki_t *tiki, int entNum, int num, float threshold);
|
||||
void ( *TIKI_SetPoseInternal )( dtiki_t *tiki, int entNum, const frameInfo_t *frameInfo, int *boneTag, vec4_t *boneQuat, float actionWeight );
|
||||
void (*TIKI_SetPoseInternal)(
|
||||
dtiki_t *tiki, int entNum, const frameInfo_t *frameInfo, int *boneTag, vec4_t *boneQuat, float actionWeight
|
||||
);
|
||||
const char *(*CM_GetHitLocationInfo)(int location, float *radius, float *offset);
|
||||
const char *(*CM_GetHitLocationInfoSecondary)(int location, float *radius, float *offset);
|
||||
|
||||
|
@ -375,7 +408,17 @@ typedef struct gameImport_s
|
|||
|
||||
void (*centerprintf)(gentity_t *ent, const char *format, ...);
|
||||
void (*locationprintf)(gentity_t *ent, int x, int y, const char *format, ...);
|
||||
void ( *Sound )( vec3_t *org, int entNum, int channel, const char *soundName, float volume, float minDist, float pitch, float maxDist, int streamed );
|
||||
void (*Sound)(
|
||||
vec3_t *org,
|
||||
int entNum,
|
||||
int channel,
|
||||
const char *soundName,
|
||||
float volume,
|
||||
float minDist,
|
||||
float pitch,
|
||||
float maxDist,
|
||||
int streamed
|
||||
);
|
||||
void (*StopSound)(int entNum, int channel);
|
||||
float (*SoundLength)(int channel, const char *name);
|
||||
unsigned char *(*SoundAmplitudes)(int channel, const char *name);
|
||||
|
@ -387,7 +430,9 @@ typedef struct gameImport_s
|
|||
debugstring_t **DebugStrings;
|
||||
int *numDebugStrings;
|
||||
|
||||
void ( *LocateGameData )( gentity_t *gEnts, int numGEntities, int sizeofGEntity, playerState_t *clients, int sizeofGameClient );
|
||||
void (*LocateGameData)(
|
||||
gentity_t *gEnts, int numGEntities, int sizeofGEntity, playerState_t *clients, int sizeofGameClient
|
||||
);
|
||||
void (*SetFarPlane)(int farPlane);
|
||||
void (*SetSkyPortal)(qboolean skyPortal);
|
||||
void (*Popmenu)(int client, int i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue