diff options
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 15 |
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) ); } } |