diff options
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index 66aa53de..da8da039 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -329,6 +329,18 @@ struct gclient_s { gentity_t *infestBody; //TA: body that is being infested. must be persistant }; +#define MAX_LOCDAMAGE_TEXT 8192 +#define MAX_LOCDAMAGE_REGIONS 32 + +//TA: store locational damage regions +typedef struct damageRegion_s +{ + float minHeight, maxHeight; + int minAngle, maxAngle; + + float modifier; +} damageRegion_t; + // // this structure is cleared as each map is entered // @@ -429,7 +441,6 @@ typedef struct { int humanBuildPointsPowered; } level_locals_t; - // // g_spawn.c // @@ -542,6 +553,9 @@ qboolean G_SelectiveRadiusDamage (vec3_t origin, gentity_t *attacker, float dama void body_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath ); void TossClientItems( gentity_t *self ); +//TA: +void G_InitDamageLocations( ); + // damage flags #define DAMAGE_RADIUS 0x00000001 // damage was indirect #define DAMAGE_NO_ARMOR 0x00000002 // armour does not protect from this damage |