diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-02-20 19:37:53 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-02-20 19:37:53 +0000 |
commit | f77fa03797d80118c65bd7e82a344d9934d7bde1 (patch) | |
tree | 23277f071d397094316c7537b0ce0505e1187859 /src | |
parent | 7f801426a68c39c3c440608ec7991c4ce5bbdf1a (diff) |
add !print command
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 13 | ||||
-rw-r--r-- | src/game/g_admin.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index c17b2b4..f3fc247 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -421,6 +421,11 @@ g_admin_cmd_t g_admin_cmds[ ] = {"tklog", G_admin_tklog, "tklog", "list recent teamkill activity", "(^5start id#|name|-skip#^7) (^5search skip#^7)" + }, + + {"print",G_admin_print2, "print", + "prints text", + "[text to print]" } }; @@ -8185,3 +8190,11 @@ qboolean G_admin_tklog( 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 3b94644..75d5122 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -290,6 +290,7 @@ qboolean G_admin_showff(gentity_t *ent, int skiparg); qboolean G_admin_tklog( gentity_t *ent, int skiparg ); void G_admin_tklog_cleanup( void ); void G_admin_tklog_log( gentity_t *attacker, gentity_t *victim, int meansOfDeath ); +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 ); |