diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:04:16 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:39 +0000 |
commit | c29de5a7d5984c27fd85305aaab69e8d88db6d71 (patch) | |
tree | 73393543e9eda6247b9238f9ea8e96a98db931c3 /src/game/g_local.h | |
parent | 33a2c3494a0be2050c8a2e4757764fd55056480c (diff) |
* Flood protection in chat and admin commands
(thanks to Phil Bordelon, Chris "Lakitu7" Schwarz, and M. Kristall)
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index bd5cdc78..da99d44e 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -330,6 +330,10 @@ typedef struct qboolean vote; qboolean teamVote; + // flood protection + int floodDemerits; + int floodTime; + vec3_t lastDeathLocation; char guid[ 33 ]; char ip[ 40 ]; @@ -1140,6 +1144,9 @@ extern vmCvar_t g_chatTeamPrefix; extern vmCvar_t g_debugVoices; extern vmCvar_t g_voiceChats; +extern vmCvar_t g_floodMaxDemerits; +extern vmCvar_t g_floodMinTime; + extern vmCvar_t g_shove; extern vmCvar_t g_mapConfigs; |