Index: trunk/src/cgame/cg_local.h =================================================================== --- trunk/src/cgame/cg_local.h (revision 755) +++ trunk/src/cgame/cg_local.h (working copy) @@ -1795,6 +1795,8 @@ void CG_TestPS_f( void ); void CG_DestroyTestPS_f( void ); +void CG_ClientList_f( void ); + // // cg_trails.c // Index: trunk/src/cgame/cg_consolecmds.c =================================================================== --- trunk/src/cgame/cg_consolecmds.c (revision 755) +++ trunk/src/cgame/cg_consolecmds.c (working copy) @@ -162,6 +162,30 @@ trap_SendClientCommand( command ); } +void CG_ClientList_f( void ) { + clientInfo_t *ci; + int n; + + for( n = 0; n < MAX_CLIENTS; n++ ) { + ci = &cgs.clientinfo[ n ]; + if( !ci->infoValid ) { + continue; + } + + switch( ci->team ) { + case PTE_ALIENS: + Com_Printf( "^1%2i A ^7%s\n", n, ci->name ); + break; + case PTE_HUMANS: + Com_Printf( "^4%2i H ^7%s\n", n, ci->name ); + break; + default: + Com_Printf( "^3%2i S ^7%s\n", n, ci->name ); + break; + } + } +} + typedef struct { char *cmd; @@ -193,6 +217,7 @@ { "destroyTestPS", CG_DestroyTestPS_f }, { "testTS", CG_TestTS_f }, { "destroyTestTS", CG_DestroyTestTS_f }, + { "clientlist", CG_ClientList_f }, };