summaryrefslogtreecommitdiff
path: root/src/game/bg_public.h
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-03-21 04:52:59 +0000
committerTim Angus <tim@ngus.net>2001-03-21 04:52:59 +0000
commit8a3452aa2a8fd7f82d267a1de0b05288b8d92dfe (patch)
treef65eeaa962f201ca8c9828d5f453c552ebdf6ce8 /src/game/bg_public.h
parent8810860bef57b702988faa8b7ecd1a0a0f267a62 (diff)
Beginnings of a new buildable database system.
Diffstat (limited to 'src/game/bg_public.h')
-rw-r--r--src/game/bg_public.h43
1 files changed, 38 insertions, 5 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h
index 49e71c38..34e822ed 100644
--- a/src/game/bg_public.h
+++ b/src/game/bg_public.h
@@ -162,10 +162,6 @@ typedef enum {
#define BM_SWB 0x0000FFFF
#define BM_SW2B 0xFFFF0000
-//TA: buildable item type
-#define BIT_DROIDS 1
-#define BIT_HUMANS 2
-
// pmove->pm_flags
#define PMF_DUCKED 1
@@ -382,6 +378,13 @@ typedef enum {
BA_NUM_BUILDABLES
} buildable_t;
+typedef enum
+{
+ BIT_NONE,
+ BIT_DROIDS,
+ BIT_HUMANS
+} buildableTeam_t;
+
// reward sounds (stored in ps->persistant[PERS_PLAYEREVENTS])
#define PLAYEREVENT_DENIEDREWARD 0x0001
#define PLAYEREVENT_GAUNTLETREWARD 0x0002
@@ -696,7 +699,7 @@ typedef struct gitem_s {
char *sounds; // string of all sounds this item will use
} gitem_t;
-//TA: player model precaching
+//TA: player class record
typedef struct
{
int classNum;
@@ -730,6 +733,36 @@ typedef struct
int timeToEvolve;
} classAttributes_t;
+//TA: buildable item record
+typedef struct
+{
+ int buildNum;
+
+ char *buildName;
+ char *entityName;
+ char *precacheName;
+
+ char *modelPrecache[ 4 ];
+ char *soundPrecache[ 4 ];
+ char *icon;
+
+ vec3_t mins;
+ vec3_t maxs;
+
+ int health;
+
+ int damage;
+ int splashDamage;
+ int splashRadius;
+
+ int meansOfDeath;
+
+ int team;
+
+ int spawnEvent;
+
+ int nextthink;
+} buildableAttributes_t;
// included in both the game dll and the client
extern gitem_t bg_itemlist[];