mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Added possibility to show rank and name on enemies (by silversurfer)
- If a name is available for the enemy, the name will be shown and if INDIVIDUAL_ENEMY_RANK = TRUE also the rank will be shown - The name will be shown if INDIVIDUAL_ENEMY_NAMES = TRUE or SOLDIER_PROFILES_ENEMY = TRUE. If both are true, then the name will be taken from the enemies profiles git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6236 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -927,7 +927,7 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
||||
|
||||
|
||||
|
||||
if (gGameExternalOptions.fEnemyNames == TRUE && gGameExternalOptions.fEnemyRank == FALSE)
|
||||
if (gGameExternalOptions.fEnemyNames == TRUE)
|
||||
{
|
||||
// Enemy Names Group by Jazz
|
||||
strcpy(fileName, directoryName);
|
||||
@@ -980,7 +980,7 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (gGameExternalOptions.fEnemyNames == FALSE && gGameExternalOptions.fEnemyRank == TRUE)
|
||||
if (gGameExternalOptions.fEnemyRank == TRUE)
|
||||
{
|
||||
// Enemy Rank by Jazz
|
||||
strcpy(fileName, directoryName);
|
||||
|
||||
+10
-3
@@ -2231,7 +2231,7 @@ void DrawSelectedUIAboveGuy( UINT16 usSoldierID )
|
||||
gprintfdirty( sX, sY, NameStr );
|
||||
mprintf( sX, sY, NameStr );
|
||||
}
|
||||
else if (gGameExternalOptions.fEnemyNames == TRUE && gGameExternalOptions.fEnemyRank == FALSE)
|
||||
else if (gGameExternalOptions.fEnemyNames == TRUE)
|
||||
{
|
||||
for( iCounter2 = 0; iCounter2 < 500; ++iCounter2 )
|
||||
{
|
||||
@@ -2255,7 +2255,7 @@ void DrawSelectedUIAboveGuy( UINT16 usSoldierID )
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (gGameExternalOptions.fEnemyNames == FALSE && gGameExternalOptions.fEnemyRank == TRUE)
|
||||
if (gGameExternalOptions.fEnemyRank == TRUE)
|
||||
{
|
||||
for( iCounter2 = 1; iCounter2 < 11; ++iCounter2 )
|
||||
{
|
||||
@@ -2269,8 +2269,15 @@ void DrawSelectedUIAboveGuy( UINT16 usSoldierID )
|
||||
SetFontBackground( FONT_MCOLOR_BLACK );
|
||||
SetFontForeground( FONT_YELLOW );
|
||||
|
||||
// need to adjust sYPos because default position already occupied by the name
|
||||
if ( gGameExternalOptions.fSoldierProfiles_Enemy && pSoldier->usSoldierProfile || gGameExternalOptions.fEnemyNames )
|
||||
FindFontCenterCoordinates( sXPos, (INT16)( sYPos + 10 ), (INT16)(80 ), 1, NameStr, TINYFONT1, &sX, &sY );
|
||||
|
||||
// use default position for text
|
||||
else
|
||||
FindFontCenterCoordinates( sXPos, (INT16)( sYPos + 20 ), (INT16)(80 ), 1, NameStr, TINYFONT1, &sX, &sY );
|
||||
|
||||
//legion2
|
||||
FindFontCenterCoordinates( sXPos, (INT16)( sYPos + 20 ), (INT16)(80 ), 1, NameStr, TINYFONT1, &sX, &sY );
|
||||
gprintfdirty( sX, sY, NameStr );
|
||||
mprintf( sX, sY, NameStr );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user