mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-02-16 00:51:59 +00:00
Cleanup and reformatting of some structs in g_local.h
This commit is contained in:
parent
fd6e6fca30
commit
fed00c7f67
1 changed files with 130 additions and 161 deletions
|
@ -115,9 +115,7 @@ typedef struct {
|
|||
char message[MAX_QPATH]; //!< msg when player enters class
|
||||
|
||||
int weaponsFlags; //!< flags denoting default weapons of this class
|
||||
//int color[3]; //Color denoting the color of dot in radar and class color
|
||||
|
||||
//int iconColor; //Denoting which set of icons to use in the scoreboard
|
||||
char modelSkin[36]; //!< Denoting which skin this class is forced to
|
||||
|
||||
int isAdmin; //!< class has admin access
|
||||
|
@ -125,10 +123,6 @@ typedef struct {
|
|||
int isMedical; //!< class has medical capacity
|
||||
int isn00b; //!< class is a dumbass
|
||||
int isBorg; //!< class is a borg
|
||||
|
||||
//int hasRanks;
|
||||
|
||||
//int noShow; //DON'T show this rank in the UI menu
|
||||
} g_classData_t;
|
||||
|
||||
//Class Data
|
||||
|
@ -219,15 +213,15 @@ struct gentity_s {
|
|||
|
||||
qboolean inuse;
|
||||
|
||||
char *classname; //!< set in QuakeEd
|
||||
char* classname; //!< set in QuakeEd
|
||||
int spawnflags; //!< set in QuakeEd
|
||||
|
||||
qboolean neverFree; //!< if true, FreeEntity will only unlink bodyque uses this
|
||||
|
||||
int flags; //!< FL_* variables
|
||||
|
||||
char *model; //!< the model or brushmodel the entities uses
|
||||
char *model2; //!< an alternate model
|
||||
char* model; //!< the model or brushmodel the entities uses
|
||||
char* model2; //!< an alternate model
|
||||
int freetime; //!< level.time when the object was freed
|
||||
|
||||
int eventTime; //!< events will be cleared EVENT_VALID_MSEC after set
|
||||
|
@ -246,24 +240,24 @@ struct gentity_s {
|
|||
int sound2to1; //!< soundindex of sound to play when moving from Pos2 to Pos1
|
||||
int soundPos2; //!< soundindex of sound to play when reaching Pos2
|
||||
int soundLoop; //!< soundindex for looped sounds
|
||||
gentity_t *parent; //!< parent of this entity
|
||||
gentity_t *nextTrain; //!< next path_corner of a func_train
|
||||
gentity_t *prevTrain; //!< previous path_corner of a func_train
|
||||
gentity_t* parent; //!< parent of this entity
|
||||
gentity_t* nextTrain; //!< next path_corner of a func_train
|
||||
gentity_t* prevTrain; //!< previous path_corner of a func_train
|
||||
vec3_t pos1; //!< start position for binary movers
|
||||
vec3_t pos2; //!< end position for binary movers
|
||||
vec3_t apos1; //!< angular start position for movers
|
||||
vec3_t apos2; //!< angular end position for movers
|
||||
|
||||
char *message; //!< message for target_print
|
||||
char* message; //!< message for target_print
|
||||
|
||||
int timestamp; //!< body queue sinking, etc
|
||||
|
||||
float angle; //!< set in editor, -1 = up, -2 = down
|
||||
char *target; //!< target of the entity
|
||||
char *paintarget; //!< target to use if entity takes damage
|
||||
char *targetname; //!< targetname that identyfies the entity
|
||||
char *team; //!< for teamchains
|
||||
gentity_t *target_ent; //!< target of turrets etc
|
||||
char* target; //!< target of the entity
|
||||
char* paintarget; //!< target to use if entity takes damage
|
||||
char* targetname; //!< targetname that identyfies the entity
|
||||
char* team; //!< for teamchains
|
||||
gentity_t* target_ent; //!< target of turrets etc
|
||||
|
||||
float speed; //!< moving speed etc
|
||||
vec3_t movedir; //!< moving direction
|
||||
|
@ -296,11 +290,11 @@ struct gentity_s {
|
|||
int count; //!< used for counting, check whether an entity is allowed to use
|
||||
//!< and other various things
|
||||
|
||||
gentity_t *lastEnemy; //!< last enemy of the entity (turrets etc)
|
||||
gentity_t *enemy; //!< current enemy of the entity (turrets etc)
|
||||
gentity_t *activator; //!< entity that activated/used this entity
|
||||
gentity_t *teamchain; //!< next entity in team
|
||||
gentity_t *teammaster; //!< master of the team
|
||||
gentity_t* lastEnemy; //!< last enemy of the entity (turrets etc)
|
||||
gentity_t* enemy; //!< current enemy of the entity (turrets etc)
|
||||
gentity_t* activator; //!< entity that activated/used this entity
|
||||
gentity_t* teamchain; //!< next entity in team
|
||||
gentity_t* teammaster; //!< master of the team
|
||||
|
||||
int watertype;
|
||||
int waterlevel;
|
||||
|
@ -314,82 +308,58 @@ struct gentity_s {
|
|||
float wait; //!< how long to wait
|
||||
float random;
|
||||
|
||||
gitem_t *item; //!< for bonus items
|
||||
gitem_t* item; //!< for bonus items
|
||||
|
||||
qboolean botDelayBegin;
|
||||
//RPG-X: RedTechie - Added this :P
|
||||
//gentity_t *beingfiredby;
|
||||
|
||||
//RPG-X: J2J Added to slow down the tr116 rate of fire.
|
||||
//int last_tr116_fire; //TiM - Why? Why not use addTime in bg_pmove like the other weapons?
|
||||
|
||||
char *swapname; //RPG-X Modification | Phenix | 13/06/2004
|
||||
char *truename;
|
||||
char *falsename;
|
||||
char *truetarget;
|
||||
char *falsetarget;
|
||||
char* swapname; //RPG-X Modification | Phenix | 13/06/2004
|
||||
char* truename;
|
||||
char* falsename;
|
||||
char* truetarget;
|
||||
char* falsetarget;
|
||||
qboolean booleanstate;
|
||||
//char *gravity; //End Modification || GSIO01 || 28.05.2009 || now in targetname2
|
||||
//float stopAt; //RPG-X | Phenix | 8/8/2004 || GSIO01: using distance now
|
||||
|
||||
//float intensity; //RPG-X | Phenix | 20/11/2004 | For Target_Shake Map Entity | GSIO01: using distance now
|
||||
|
||||
float distance; // VALKYRIE: for rotating doors
|
||||
|
||||
int n00bCount; //RPG-X | Phenix | 06/04/2004 | For when people kill
|
||||
|
||||
//RPG-X: TiM : Additional Params for map ents
|
||||
//float radius; //Explosion Radius | GSIO01: using distance instead
|
||||
char *targetname2; // GSIO01 | 08/05/2009
|
||||
//int soundLocked; // GSIO01 | 08/05/2009 for locked doors | now using n00bCount instead
|
||||
gentity_t *touched; // GSIO01 | 08/05/2009 repairing breakables
|
||||
//char *lockMsg; // GSIO01 | 10/05/2009 | --> swapname
|
||||
//char *unlockMsg; // GSIO01 | 10/05/2009 | --> truename
|
||||
//GSIO01 | 10/05/2009 | ok these are for target_alert:
|
||||
char //*greenname, //--> swapname
|
||||
//*yellowname, //--> truename
|
||||
//*redname, //-->falsename
|
||||
*bluename,
|
||||
//*greentarget, //-->truetarget
|
||||
//*yellowtarget, //-->falsetarget
|
||||
//*redtarget, //-->paintarget
|
||||
//*bluetarget, //-->targetname2
|
||||
*greensound,
|
||||
*yellowsound,
|
||||
*redsound,
|
||||
*bluesound;
|
||||
char* targetname2; // GSIO01 | 08/05/2009
|
||||
|
||||
//GSIO01 | 19/05/2009 | target_warp
|
||||
//char //*swapWarp, // -->swapname
|
||||
//*swapCoreState, // -->truename
|
||||
//*swapCoreEject, // -->falsename
|
||||
//*warpTarget, // -->truetarget
|
||||
//*core, // -->falsetarget
|
||||
//*coreSwap; // -->bluename
|
||||
gentity_t* touched; // GSIO01 | 08/05/2009 repairing breakables
|
||||
|
||||
//GSIO01 | 10/05/2009 | ok these are for target_alert:
|
||||
char* bluename;
|
||||
char* greensound;
|
||||
char* yellowsound;
|
||||
char* redsound;
|
||||
char* bluesound;
|
||||
|
||||
char *targetShaderName; //!< shader to remap for shader remapping
|
||||
char *targetShaderNewName; //!< shader to remap to for shader remapping
|
||||
|
||||
qboolean tmpEntity; //!< is this a temporal entity?
|
||||
|
||||
#ifdef G_LUA
|
||||
// for lua hooks
|
||||
// pointers to lua functions
|
||||
char *luaTouch;
|
||||
char *luaUse;
|
||||
char *luaThink;
|
||||
char *luaHurt;
|
||||
char *luaDie;
|
||||
char *luaFree;
|
||||
char *luaTrigger;
|
||||
char *luaReached;
|
||||
char *luaReachedAngular;
|
||||
char *luaSpawn;
|
||||
char *luaParm1;
|
||||
char *luaParm2;
|
||||
char *luaParm3;
|
||||
char *luaParm4;
|
||||
char* luaTouch;
|
||||
char* luaUse;
|
||||
char* luaThink;
|
||||
char* luaHurt;
|
||||
char* luaDie;
|
||||
char* luaFree;
|
||||
char* luaTrigger;
|
||||
char* luaReached;
|
||||
char* luaReachedAngular;
|
||||
char* luaSpawn;
|
||||
char* luaParm1;
|
||||
char* luaParm2;
|
||||
char* luaParm3;
|
||||
char* luaParm4;
|
||||
qboolean luaEntity;
|
||||
#endif
|
||||
|
||||
vec4_t startRGBA;
|
||||
vec4_t finalRGBA;
|
||||
};
|
||||
|
@ -464,13 +434,13 @@ typedef struct {
|
|||
* MUST be dealt with in G_InitSessionData() / G_ReadSessionData() / G_WriteSessionData()
|
||||
*/
|
||||
typedef struct {
|
||||
team_t sessionTeam;
|
||||
//pclass_t sessionClass;
|
||||
int sessionClass;
|
||||
team_t sessionTeam; //!< team of the client
|
||||
int sessionClass; //!< class of the client is in
|
||||
int spectatorTime; //!< for determining next-in-line to play
|
||||
spectatorState_t spectatorState;
|
||||
spectatorState_t spectatorState; //!< spectator state
|
||||
int spectatorClient; //!< for chasecam and follow mode
|
||||
int wins, losses; //!< tournament stats
|
||||
int wins; //!< tournament stat wins
|
||||
int losses; //!< tournament stat losses
|
||||
} clientSession_t;
|
||||
|
||||
#define MAX_VOTE_COUNT 3
|
||||
|
@ -550,8 +520,7 @@ struct gclient_s {
|
|||
int nextRespawn; //!< level.time when player is allowed to use the respawn command/button again
|
||||
|
||||
qboolean fireHeld; //!< used for hook
|
||||
gentity_t *hook; //!< grapple hook if out
|
||||
//gentity_t *lasersight; // lasersight OR flashlight if in use
|
||||
gentity_t* hook; //!< grapple hook if out
|
||||
|
||||
int switchTeamTime;
|
||||
|
||||
|
@ -592,13 +561,13 @@ struct gclient_s {
|
|||
// RPG-X | Marcin | 03/01/2009
|
||||
|
||||
// for sql
|
||||
char *userName; //!< username (not player name) in the sql database
|
||||
char* userName; //!< username (not player name) in the sql database
|
||||
int uid; //!< uiser id of the player in the sql database
|
||||
|
||||
// CCAM
|
||||
vec3_t origViewAngles;
|
||||
vec3_t origOrigin;
|
||||
gentity_t *cam;
|
||||
gentity_t* cam;
|
||||
|
||||
// for selfdestruct and shiphealth
|
||||
int nokilli; //!< if 1 this player won't be killed if the ship is killed
|
||||
|
|
Loading…
Reference in a new issue