summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-02-19 21:58:43 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-02-19 21:58:43 +0000
commit331f738c7a0487a715792ffc3ab30042924e0c2f (patch)
tree02eee670e1f3b2a705e2539535fa4e174d2f462e
parent18a6b055fdfe8bf0bed6278c9466d19e3bdad908 (diff)
add !print command
-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 e631384..0abba45 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -426,6 +426,11 @@ g_admin_cmd_t g_admin_cmds[ ] =
{"sm", G_admin_sm, "schachtmeister",
"Schachtmeister",
"..."
+ },
+
+ {"print",G_admin_print2, "print",
+ "prints text",
+ "[text to print]"
}
};
@@ -8422,3 +8427,11 @@ qboolean G_admin_sm( 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 25cf2a7..b85beec 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -305,6 +305,7 @@ void G_admin_IPA_judgement( const char *ipa, int rating, const char *comment );
qboolean G_admin_sm( gentity_t *ent, int skiparg );
void G_admin_schachtmeisterFrame( void );
qboolean G_admin_is_restricted(gentity_t *ent, qboolean sendMessage);
+qboolean G_admin_print2( gentity_t *ent, int skiparg );
void G_admin_print( gentity_t *ent, char *m );
void G_admin_buffer_print( gentity_t *ent, char *m );