diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 20:43:53 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-02-23 22:14:16 +0100 |
commit | 50d8779208632d2cc23be36e144b0297b0c02d2b (patch) | |
tree | 9dd0dc41c4545a0be46c2612326ce351912e837b /src/game/g_local.h | |
parent | 4e7cea5faf3470e1cd1bf71eda5ad2999e82a822 (diff) |
Add !curse with some basic features.
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index 46bc31d..e59a6ad 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -453,6 +453,16 @@ typedef struct unlagged_s { qboolean used; } unlagged_t; +typedef struct { + float incDamage; // less one + float outDamage; // less one + float damageFeedback; + float ffOutDamage; // less one + float ffFeedback; + float staminaUse; // less one + float staminaRegen; // less one +} adminCurses_t; + // this structure is cleared on each ClientSpawn(), // except for 'client->pers' and 'client->sess' struct gclient_s @@ -553,6 +563,8 @@ struct gclient_s int tkcredits[ MAX_CLIENTS ]; int revertCookie; + + adminCurses_t curses; }; @@ -1030,6 +1042,7 @@ void G_InitDamageLocations( void ); #define DAMAGE_KNOCKBACK 0x00000004 // affect velocity, not just view angles #define DAMAGE_NO_PROTECTION 0x00000008 // armor, shields, invulnerability, and godmode have no effect #define DAMAGE_NO_LOCDAMAGE 0x00000010 // do not apply locational damage +#define DAMAGE_FEEDBACK 0x00000020 // damage comes from a feedback curse (do *not* feed it back again) // // g_missile.c @@ -1477,6 +1490,7 @@ extern vmCvar_t g_banNotice; extern vmCvar_t g_karma; extern vmCvar_t g_chat; extern vmCvar_t g_adminExpireTime; +extern vmCvar_t g_adminCurses; extern vmCvar_t g_nullifyTyrantKills; |