From dac3d3127fc94231bdde0c0822bb12de01e9e836 Mon Sep 17 00:00:00 2001 From: enneract Date: Tue, 25 Feb 2014 13:03:43 +0100 Subject: 0.1.7 --- src/game/bg_public.h | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) (limited to 'src/game/bg_public.h') diff --git a/src/game/bg_public.h b/src/game/bg_public.h index e06015d..cbaf90a 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -280,12 +280,11 @@ typedef enum PERS_CREDIT, // human credit PERS_QUEUEPOS, // position in the spawn queue PERS_NEWWEAPON, // weapon to switch to - PERS_BP, - PERS_MARKEDBP, + PERS_BUILDPOINTS, //zdrytchx: no space in stats, use persistant. This meanas we risk doing a double jump upon spawning but death animations are 1700 msecs long, so technically it's impossible anyway PERS_JUMPTIME, PERS_SPAWNS_IMPLANTED - // netcode has space for 1 more + // netcode has space for 2 more } persEnum_t; #define PS_WALLCLIMBINGFOLLOW 0x00000001 @@ -293,6 +292,21 @@ typedef enum #define PS_NONSEGMODEL 0x00000004 #define PS_SPRINTTOGGLE 0x00000008 +// player_state->misc[] indexes +typedef enum +{ + MISC_INFOHEAD, + MISC_INFO1, + MISC_INFO2, + MISC_INFO3, + + MISC_CUBOID_X, + MISC_CUBOID_Y, + MISC_CUBOID_Z + + // netcode has space for 10 more +} miscEnum_t; + // entityState_t->eFlags // notice that some flags are overlapped, so their meaning depends on context #define EF_DEAD 0x0001 // don't draw a foe marker over players with EF_DEAD @@ -307,7 +321,7 @@ typedef enum // buildable flags: #define EF_B_SPAWNED 0x0008 #define EF_B_POWERED 0x0010 -#define EF_B_MARKED 0x0020 +#define EF_B_SURGE 0x0020 // note: enabled/disabled for Repeaters #define EF_WARN_CHARGE 0x0020 // Lucifer Cannon is about to overcharge #define EF_WALLCLIMB 0x0040 // wall walking @@ -438,6 +452,10 @@ typedef enum BA_H_REACTOR, BA_H_REPEATER, + BA_H_CAPBANK, + BA_H_RTG, + + BA_H_REFINERY, //cuboids must stay in a block #define CUBOID_FIRST BA_H_CUBOID1 @@ -581,7 +599,10 @@ typedef enum EV_ALIEN_HATCH_FAILURE, // when it doesns't work EV_JETPACK_DEACTIVATE, - EV_JETPACK_REFUEL + EV_JETPACK_REFUEL, + + EV_POWER_SWITCH, + EV_POWER_ZAP } entity_event_t; @@ -1068,9 +1089,17 @@ typedef struct qboolean transparentTest; qboolean uniqueTest; - int value; + int value; qboolean cuboid; + + //power grid features + qboolean isPowerSource; + qboolean requiresPower; + float resistance; + float surgeResistance; + + qboolean hasStorage; } buildableAttributes_t; typedef struct -- cgit