diff options
author | Tim Angus <tim@ngus.net> | 2001-02-05 03:14:44 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-02-05 03:14:44 +0000 |
commit | 96d1e6700762377bbfe54f30422ee0f532bea275 (patch) | |
tree | c4e311216bb70d2ad4a3f818250d97f62a3c3989 /src/game/bg_public.h | |
parent | 76c534a0ef5d3d7ce318757d4be4675a9c63e8ae (diff) |
Significantly reogranised how class properties are propogated between client/server. Started on Droid infest mechanism.
Diffstat (limited to 'src/game/bg_public.h')
-rw-r--r-- | src/game/bg_public.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index a9c61caf..ab40ae77 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -240,8 +240,6 @@ typedef enum { STAT_MAX_HEALTH, // health / armor limit, changable by handicap STAT_PCLASS, //TA: player class (for droids AND humans) STAT_PTEAM, //TA: player team - STAT_ABILITIES, //TA: client abilities (based on class) - STAT_ATTRIBS, STAT_STAMINA, //TA: stamina (human only) STAT_STATE //TA: client states e.g. wall climbing } statIndex_t; @@ -707,6 +705,14 @@ typedef struct vec3_t deadMaxs; int viewheight; int crouchViewheight; + int health; + int armor; + int abilities; + int fov; + float bob; + int steptime; + float speed; + float sticky; } classAttributes_t; @@ -722,9 +728,17 @@ gitem_t *BG_FindItemForPowerup( powerup_t pw ); gitem_t *BG_FindItemForHoldable( holdable_t pw ); //TA: -char *BG_FindModelNameForClass( int pclass ); -void BG_FindBBoxForClass( int pclass, vec3_t mins, vec3_t maxs, vec3_t cmaxs, vec3_t dmins, vec3_t dmaxs ); -void BG_FindViewheightForClass( int pclass, int *viewheight, int *cViewheight ); +char *BG_FindModelNameForClass( int pclass ); +void BG_FindBBoxForClass( int pclass, vec3_t mins, vec3_t maxs, vec3_t cmaxs, vec3_t dmins, vec3_t dmaxs ); +void BG_FindViewheightForClass( int pclass, int *viewheight, int *cViewheight ); +int BG_FindHealthForClass( int pclass ); +int BG_FindArmorForClass( int pclass ); +int BG_FindFovForClass( int pclass ); +float BG_FindBobForClass( int pclass ); +float BG_FindSpeedForClass( int pclass ); +float BG_FindStickyForClass( int pclass ); +int BG_FindSteptimeForClass( int pclass ); +qboolean BG_ClassHasAbility( int pclass, int ability ); #define ITEM_INDEX(x) ((x)-bg_itemlist) qboolean BG_CanItemBeGrabbed( int gametype, const entityState_t *ent, const playerState_t *ps ); |