From e136b8c5d070d14721585263b41a325794030f7d Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 1 Nov 2019 23:02:33 +0000 Subject: schachtmeister and autobahn implementation --- src/game/g_svcmds.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'src/game/g_svcmds.c') diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c index 62148c8..f0d45b1 100644 --- a/src/game/g_svcmds.c +++ b/src/game/g_svcmds.c @@ -703,7 +703,35 @@ qboolean ConsoleCommand( void ) G_admin_maplog_result( "d" ); return qtrue; } - + + if( !Q_stricmp( cmd, "smr" ) ) + { + if( trap_Argc() >= 2 ) + { + char arg[ 32 ]; + trap_Argv( 1, arg, sizeof( arg ) ); + + if( !Q_stricmp( arg, "ipa" ) && trap_Argc() >= 4 ) + { + int rating; + const char *comment = NULL; + + trap_Argv( 3, arg, sizeof( arg ) ); + rating = atoi( arg ); + if( trap_Argc() >= 5 ) + comment = ConcatArgs( 4 ); + trap_Argv( 2, arg, sizeof( arg ) ); + + G_admin_IPA_judgement( arg, rating, comment ); + + return qtrue; + } + } + + G_Printf( "unrecognized Schachtmeister response: %s\n", ConcatArgs( 1 ) ); + return qtrue; + } + // see if this is a a admin command if( G_admin_cmd_check( NULL, qfalse ) ) return qtrue; -- cgit