Revisión | bbfcb1b52fd640d9c8b151dd18f09b32784b13af (tree) |
---|---|
Tiempo | 2022-09-27 22:02:35 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
The "maplist" CCMD now also prints "current" or "used" alongside green or red text for map entries that are currently being played or used. This change is particularly useful for consoles or logfiles that strip color codes and couldn't show the colored text.
@@ -97,6 +97,7 @@ | ||
97 | 97 | ! - gl_texture is now forced to be true when sv_forcevideodefaults is true. [Kaminsky] |
98 | 98 | ! - cl_identifytarget now prints "ally" if the target is a teammate of the player being spied on, instead of the local player. Also, it now always prints a player's skin with their current class, if unmorphed. If cl_skins is 0, then the skin is always printed as "base" instead. [Kaminsky] |
99 | 99 | ! - The GAMEMODE lump now accepts a wider range of gameplay-related CVars that aren't limited to flags. Strictly speaking, any CVars with the CVAR_GAMEPLAYSETTING bit, or any flags whose flagset has the CVAR_GAMEPLAYFLAGSET (previously named CVAR_GAMEMODELOCK) bit. [Kaminsky] |
100 | +! - The "maplist" CCMD now also prints "current" or "used" alongside green or red text for map entries that are currently being played or used. This change is particularly useful for consoles or logfiles that strip color codes and couldn't show the colored text. [Kaminsky] | |
100 | 101 | |
101 | 102 | |
102 | 103 | 3.1 |
@@ -523,14 +523,22 @@ | ||
523 | 523 | Printf( "Map rotation list: \n" ); |
524 | 524 | for ( ULONG ulIdx = 0; ulIdx < g_MapRotationEntries.size( ); ulIdx++ ) |
525 | 525 | { |
526 | - message.Format( "%lu. %s - %s", ulIdx + 1, g_MapRotationEntries[ulIdx].pMap->mapname, g_MapRotationEntries[ulIdx].pMap->LookupLevelName( ).GetChars( )); | |
526 | + message.Format( "%lu. ", ulIdx + 1 ); | |
527 | 527 | |
528 | 528 | // [AK] Highlight the current position in the map rotation in green, but only if we're actually playing on that map. |
529 | 529 | // Otherwise, maps that have already been played will be highlighted in red. |
530 | 530 | if (( g_ulCurMapInList == ulIdx ) && ( stricmp( level.mapname, g_MapRotationEntries[g_ulCurMapInList].pMap->mapname ) == 0 )) |
531 | + { | |
531 | 532 | message.Insert( 0, TEXTCOLOR_GREEN ); |
533 | + message += "(Current) "; | |
534 | + } | |
532 | 535 | else if ( g_MapRotationEntries[ulIdx].bUsed ) |
536 | + { | |
533 | 537 | message.Insert( 0, TEXTCOLOR_RED ); |
538 | + message += "(Used) "; | |
539 | + } | |
540 | + | |
541 | + message.AppendFormat( "%s - %s", g_MapRotationEntries[ulIdx].pMap->mapname, g_MapRotationEntries[ulIdx].pMap->LookupLevelName( ).GetChars( )); | |
534 | 542 | |
535 | 543 | // [AK] Also print the min and max player limits if they're different from the default values. |
536 | 544 | if (( g_MapRotationEntries[ulIdx].ulMinPlayers > 0 ) || ( g_MapRotationEntries[ulIdx].ulMaxPlayers < MAXPLAYERS )) |