diff options
Diffstat (limited to 'src/game/bg_public.h')
-rw-r--r-- | src/game/bg_public.h | 78 |
1 files changed, 37 insertions, 41 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 2f4f3a1a..0ea1ac63 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define MINS_Z -24 #define DEFAULT_VIEWHEIGHT 26 #define CROUCH_VIEWHEIGHT 12 -#define DEAD_VIEWHEIGHT -14 //TA: watch for mins[ 2 ] less than this causing +#define DEAD_VIEWHEIGHT -14 // watch for mins[ 2 ] less than this causing // // config strings are a general means of communicating variable length strings @@ -67,9 +67,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define CS_WINNER 23 // string indicating round winner #define CS_SHADERSTATE 24 #define CS_BOTINFO 25 -#define CS_CLIENTS_READY 26 //TA: following suggestion in STAT_ enum STAT_CLIENTS_READY becomes a configstring +#define CS_CLIENTS_READY 26 -//TA: extra stuff: #define CS_BUILDPOINTS 28 #define CS_STAGES 29 #define CS_SPAWNS 30 @@ -139,12 +138,12 @@ typedef enum #define PMF_TIME_WATERJUMP 256 // pm_time is waterjump #define PMF_RESPAWNED 512 // clear after attack and jump buttons come up #define PMF_USE_ITEM_HELD 1024 -#define PMF_WEAPON_RELOAD 2048 //TA: force a weapon switch +#define PMF_WEAPON_RELOAD 2048 // force a weapon switch #define PMF_FOLLOW 4096 // spectate following another player -#define PMF_QUEUED 8192 //TA: player is queued -#define PMF_TIME_WALLJUMP 16384 //TA: for limiting wall jumping -#define PMF_CHARGE 32768 //TA: keep track of pouncing -#define PMF_WEAPON_SWITCH 65536 //TA: force a weapon switch +#define PMF_QUEUED 8192 // player is queued +#define PMF_TIME_WALLJUMP 16384 // for limiting wall jumping +#define PMF_CHARGE 32768 // keep track of pouncing +#define PMF_WEAPON_SWITCH 65536 // force a weapon switch #define PMF_ALL_TIMES (PMF_TIME_WATERJUMP|PMF_TIME_LAND|PMF_TIME_KNOCKBACK|PMF_TIME_WALLJUMP) @@ -206,19 +205,19 @@ typedef enum { STAT_HEALTH, STAT_ITEMS, - STAT_SLOTS, //TA: tracks the amount of stuff human players are carrying + STAT_SLOTS, // tracks the amount of stuff human players are carrying STAT_ACTIVEITEMS, STAT_WEAPONS, // 16 bit fields - STAT_WEAPONS2, //TA: another 16 bits to push the max weapon count up + STAT_WEAPONS2, // another 16 bits to push the max weapon count up STAT_MAX_HEALTH, // health / armor limit, changable by handicap - STAT_PCLASS, //TA: player class (for aliens AND humans) - STAT_PTEAM, //TA: player team - STAT_STAMINA, //TA: stamina (human only) - STAT_STATE, //TA: client states e.g. wall climbing - STAT_MISC, //TA: for uh...misc stuff - STAT_BUILDABLE, //TA: which ghost model to display for building - STAT_FALLDIST, //TA: the distance the player fell - STAT_VIEWLOCK //TA: direction to lock the view in + STAT_PCLASS, // player class (for aliens AND humans) + STAT_PTEAM, // player team + STAT_STAMINA, // stamina (human only) + STAT_STATE, // client states e.g. wall climbing + STAT_MISC, // for uh...misc stuff + STAT_BUILDABLE, // which ghost model to display for building + STAT_FALLDIST, // the distance the player fell + STAT_VIEWLOCK // direction to lock the view in } statIndex_t; #define SCA_WALLCLIMBER 0x00000001 @@ -262,7 +261,6 @@ typedef enum PERS_ATTACKER, // clientnum of last damage inflicter PERS_KILLED, // count of the number of times you died - //TA: PERS_STATE, PERS_CREDIT, // human credit PERS_BANK, // human credit in the bank @@ -403,7 +401,7 @@ typedef enum WUT_NUM_TEAMS } WUTeam_t; -//TA: bitmasks for upgrade slots +// bitmasks for upgrade slots #define SLOT_NONE 0x00000000 #define SLOT_HEAD 0x00000001 #define SLOT_TORSO 0x00000002 @@ -520,7 +518,7 @@ typedef enum EV_FIRE_WEAPON2, EV_FIRE_WEAPON3, - EV_PLAYER_RESPAWN, //TA: for fovwarp effects + EV_PLAYER_RESPAWN, // for fovwarp effects EV_PLAYER_TELEPORT_IN, EV_PLAYER_TELEPORT_OUT, @@ -552,11 +550,11 @@ typedef enum EV_GIB_PLAYER, // gib a previously living player - EV_BUILD_CONSTRUCT, //TA - EV_BUILD_DESTROY, //TA - EV_BUILD_DELAY, //TA: can't build yet - EV_BUILD_REPAIR, //TA: repairing buildable - EV_BUILD_REPAIRED, //TA: buildable has full health + EV_BUILD_CONSTRUCT, + EV_BUILD_DESTROY, + EV_BUILD_DELAY, // can't build yet + EV_BUILD_REPAIR, // repairing buildable + EV_BUILD_REPAIRED, // buildable has full health EV_HUMAN_BUILDABLE_EXPLOSION, EV_ALIEN_BUILDABLE_EXPLOSION, EV_ALIEN_ACIDTUBE, @@ -570,13 +568,13 @@ typedef enum EV_STOPLOOPINGSOUND, EV_TAUNT, - EV_OVERMIND_ATTACK, //TA: overmind under attack - EV_OVERMIND_DYING, //TA: overmind close to death - EV_OVERMIND_SPAWNS, //TA: overmind needs spawns + EV_OVERMIND_ATTACK, // overmind under attack + EV_OVERMIND_DYING, // overmind close to death + EV_OVERMIND_SPAWNS, // overmind needs spawns - EV_DCC_ATTACK, //TA: dcc under attack + EV_DCC_ATTACK, // dcc under attack - EV_RPTUSE_SOUND //TA: trigger a sound + EV_RPTUSE_SOUND // trigger a sound } entity_event_t; typedef enum @@ -738,7 +736,7 @@ typedef enum MAX_NONSEG_PLAYER_TOTALANIMATIONS } nonSegPlayerAnimNumber_t; -//TA: for buildable animations +// for buildable animations typedef enum { BANIM_NONE, @@ -798,7 +796,7 @@ typedef enum // How many players on the overlay #define TEAM_MAXOVERLAY 32 -//TA: player classes +// player classes typedef enum { PCL_NONE, @@ -825,7 +823,7 @@ typedef enum } pClass_t; -//TA: player teams +// player teams typedef enum { PTE_NONE, @@ -892,7 +890,7 @@ typedef enum //--------------------------------------------------------- -//TA: player class record +// player class record typedef struct { int classNum; @@ -976,7 +974,7 @@ typedef enum #define MAX_BUILDABLE_MODELS 4 -//TA: buildable item record +// buildable item record typedef struct { int buildNum; @@ -1040,7 +1038,7 @@ typedef struct float zOffset; } buildableAttributeOverrides_t; -//TA: weapon record +// weapon record typedef struct { int weaponNum; @@ -1078,7 +1076,7 @@ typedef struct WUTeam_t team; } weaponAttributes_t; -//TA: upgrade record +// upgrade record typedef struct { int upgradeNum; @@ -1099,8 +1097,6 @@ typedef struct WUTeam_t team; } upgradeAttributes_t; - -//TA: void BG_UnpackAmmoArray( int weapon, int psAmmo[ ], int psAmmo2[ ], int *ammo, int *clips ); void BG_PackAmmoArray( int weapon, int psAmmo[ ], int psAmmo2[ ], int ammo, int clips ); qboolean BG_WeaponIsFull( weapon_t weapon, int stats[ ], int psAmmo[ ], int psAmmo2[ ] ); @@ -1249,7 +1245,7 @@ typedef enum ET_PLAYER, ET_ITEM, - ET_BUILDABLE, //TA: buildable type + ET_BUILDABLE, // buildable type ET_MISSILE, ET_MOVER, |