summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorMaeJong <mewiceclair@gmail.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:21 +0200
commite86e59bfe6c3a31ec76d6dd4de22457b1a8f821a (patch)
tree80cf24129e2a55509e0e059a057878c331990aec /src/game/g_main.c
parent5fe4cc98914d6a35ae2247552565cb7e4fee3dda (diff)
Reports system
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 105a95e..b535e73 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -183,6 +183,7 @@ vmCvar_t g_layouts;
vmCvar_t g_layoutAuto;
vmCvar_t g_admin;
+vmCvar_t g_report;
vmCvar_t g_adminLog;
vmCvar_t g_adminParseSay;
vmCvar_t g_adminSayFilter;
@@ -274,6 +275,11 @@ vmCvar_t mod_jetpackFuel;
vmCvar_t mod_jetpackConsume;
vmCvar_t mod_jetpackRegen;
+vmCvar_t g_maxReports;
+vmCvar_t g_maxUnregReports;
+
+vmCvar_t g_reportWelcomeComment;
+
static cvarTable_t gameCvarTable[ ] =
{
// don't override the cheat state set by the system
@@ -452,6 +458,7 @@ static cvarTable_t gameCvarTable[ ] =
{ &g_layoutAuto, "g_layoutAuto", "1", CVAR_ARCHIVE, 0, qfalse },
{ &g_admin, "g_admin", "admin.dat", CVAR_ARCHIVE, 0, qfalse },
+ { &g_report, "g_report", "report.dat", CVAR_ARCHIVE, 0, qfalse },
{ &g_adminLog, "g_adminLog", "admin.log", CVAR_ARCHIVE, 0, qfalse },
{ &g_adminParseSay, "g_adminParseSay", "1", CVAR_ARCHIVE, 0, qfalse },
{ &g_adminSayFilter, "g_adminSayFilter", "0", CVAR_ARCHIVE, 0, qfalse },
@@ -525,8 +532,12 @@ static cvarTable_t gameCvarTable[ ] =
{ &mod_jetpackFuel, "mod_jetpackFuel", "0", CVAR_ARCHIVE, 0, qfalse },
{ &mod_jetpackConsume, "mod_jetpackConsume", "2", CVAR_ARCHIVE, 0, qfalse },
- { &mod_jetpackRegen, "mod_jetpackRegen", "3", CVAR_ARCHIVE, 0, qfalse }
+ { &mod_jetpackRegen, "mod_jetpackRegen", "3", CVAR_ARCHIVE, 0, qfalse },
+
+ { &g_maxReports, "g_maxReports", "3", CVAR_ARCHIVE, 0, qfalse },
+ { &g_maxUnregReports, "g_maxUnregReports", "1", CVAR_ARCHIVE, 0, qfalse },
+ { &g_reportWelcomeComment, "g_reportWelcomeComment", "", CVAR_ARCHIVE, 0, qfalse }
};
static int gameCvarTableSize = sizeof( gameCvarTable ) / sizeof( gameCvarTable[ 0 ] );
@@ -2141,7 +2152,7 @@ void QDECL G_AdminsPrintf( const char *fmt, ... )
if( G_admin_permission( tempent, ADMF_ADMINCHAT) &&
!tempent->client->pers.ignoreAdminWarnings )
{
- trap_SendServerCommand(tempent-g_entities,va( "print \"^6[Admins]^7 %s\"", string) );
+ trap_SendServerCommand(tempent-g_entities,va( "print \"^7[^5ADMIN^7] %s\"", string) );
}
}