summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-02-13 20:07:13 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-02-13 20:07:13 +0000
commit62c6c73da1a63900de56fe729fac865f4911eeca (patch)
tree2ecd558a3c5b1b1eb0d53efee8cda1eec2567418 /src
parente8b2a3d5f75379a22cddb6bb6f52349227533fd5 (diff)
add !print command
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c13
-rw-r--r--src/game/g_admin.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 7635b86..4271dd8 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -488,6 +488,11 @@ g_admin_cmd_t g_admin_cmds[ ] =
"warn", G_admin_warn, "warn",
"Warn a player to cease or face admin intervention",
"[^3name|slot#^7] [reason]"
+ },
+
+ {"print",G_admin_print2, "print",
+ "prints text",
+ "[text to print]"
}
};
@@ -10830,3 +10835,11 @@ qboolean G_admin_showff(gentity_t *ent, int skiparg)
return qtrue;
}
+
+qboolean G_admin_print2(gentity_t *ent, int skiparg )
+{
+ char *text;
+ text = G_SayConcatArgs( 1 + skiparg );
+ AP( va( "print \"%s\n\"", text ));
+ return qtrue;
+}
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 042fc22..58ae857 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -353,6 +353,7 @@ qboolean G_admin_flaglist( gentity_t *ent, int skiparg );
qboolean G_admin_flag( gentity_t *ent, int skiparg );
qboolean G_admin_immunity( gentity_t *ent, int skiparg );
qboolean G_admin_cp( gentity_t *ent, int skiparg );
+qboolean G_admin_print2( gentity_t *ent, int skiparg );
qboolean G_admin_invisible( gentity_t *ent, int skiparg );
qboolean G_admin_slap( gentity_t *ent, int skiparg );