summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_admin.c8
-rw-r--r--src/game/g_admin.h1
-rw-r--r--src/game/g_local.h1
-rw-r--r--src/game/g_main.c2
4 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index dc7fa32..13b9099 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1095,6 +1095,13 @@ char* G_admin_adminPrintName( gentity_t *ent )
return out;
}
+ if( G_admin_permission( ent, ADMF_ADMINSUPERSTEALTH )
+ || g_adminSuperStealth.integer )
+ {
+ out = "^9someone";
+ return out;
+ }
+
if( G_admin_permission( ent, ADMF_ADMINSTEALTH ) )
{
out = ent->client->pers.adminName;
@@ -2578,6 +2585,7 @@ static AdminFlagListEntry_t adminFlagList[] =
{ ADMF_SEESFULLLISTPLAYERS, "sees all info in !listplayers" },
{ ADMF_SPEC_ALLCHAT, "can see team chat as spectator" },
{ ADMF_ADMINSTEALTH, "uses admin stealth" },
+ { ADMF_ADMINSUPERSTEALTH, "uses admin 'super' stealth" },
{ ADMF_TEAMCHANGEFREE, "keeps credits on team switch" },
{ ADMF_TEAMCHAT_CMD, "can run commands from team chat" },
{ ADMF_UNACCOUNTABLE, "does not need to specify reason for kick/ban" },
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index fcd45ad..5a5f4d9 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -92,6 +92,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ADMF_SEESFULLLISTPLAYERS "SEESFULLLISTPLAYERS"
#define ADMF_DBUILDER "DBUILDER"
#define ADMF_ADMINSTEALTH "STEALTH"
+#define ADMF_ADMINSUPERSTEALTH "SUPERSTEALTH"
#define ADMF_ALLFLAGS "ALLFLAGS"
#define ADMF_BAN_IMMUNITY "BANIMMUNITY"
diff --git a/src/game/g_local.h b/src/game/g_local.h
index af2a790..7c69539 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -1450,6 +1450,7 @@ extern vmCvar_t g_adminTempBan;
extern vmCvar_t g_adminMaxBan;
extern vmCvar_t g_adminTempSpec;
extern vmCvar_t g_adminMapLog;
+extern vmCvar_t g_adminSuperStealth;
extern vmCvar_t g_minLevelToJoinTeam;
extern vmCvar_t g_minDeconLevel;
extern vmCvar_t g_minDeconAffectsMark;
diff --git a/src/game/g_main.c b/src/game/g_main.c
index b06e512..d8e53b0 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -176,6 +176,7 @@ vmCvar_t g_adminTempBan;
vmCvar_t g_adminMaxBan;
vmCvar_t g_adminTempSpec;
vmCvar_t g_adminMapLog;
+vmCvar_t g_adminSuperStealth;
vmCvar_t g_minLevelToJoinTeam;
vmCvar_t g_minDeconLevel;
vmCvar_t g_minDeconAffectsMark;
@@ -421,6 +422,7 @@ static cvarTable_t gameCvarTable[ ] =
{ &g_adminMaxBan, "g_adminMaxBan", "2w", CVAR_ARCHIVE, 0, qfalse },
{ &g_adminTempSpec, "g_adminTempSpec", "2m", CVAR_ARCHIVE, 0, qfalse },
{ &g_adminMapLog, "g_adminMapLog", "", CVAR_ROM, 0, qfalse },
+ { &g_adminSuperStealth, "g_adminSuperStealth", "0", CVAR_ARCHIVE, 0, qfalse },
{ &g_minLevelToJoinTeam, "g_minLevelToJoinTeam", "0", CVAR_ARCHIVE, 0, qfalse },
{ &g_minDeconLevel, "g_minDeconLevel", "0", CVAR_ARCHIVE, 0, qfalse},
{ &g_minDeconAffectsMark, "g_minDeconAffectsMark", "0", CVAR_ARCHIVE, 0, qfalse},