summaryrefslogtreecommitdiff
path: root/src/game/g_svcmds.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-15 00:16:35 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:29:37 +0200
commit259c996ebe14cdb52e4a47149ce6c33dbeffa4d3 (patch)
tree9821fb451b7a7fc280a5446b479c5b8b756fab38 /src/game/g_svcmds.c
parent91c463d4bfe3e57330e5fbce63c98eb22d5b208e (diff)
implement Schachtmeister v2
Diffstat (limited to 'src/game/g_svcmds.c')
-rw-r--r--src/game/g_svcmds.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index 8b7b575..c4ce182 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -704,6 +704,34 @@ qboolean ConsoleCommand( void )
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;