mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
spies can now test their disguise by using option #6 in the tactical function selection menu - they will evaluate their disguise (see the resulting messages for hints on how to improve disguise)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5922 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4742,7 +4742,13 @@ void StartTacticalFunctionSelectionMessageBox( SOLDIERTYPE * pSoldier, INT32 sGr
|
||||
wcscpy( gzUserDefinedButton[2], TacticalStr[ CLEAN_ALL_GUNS_STR ] );
|
||||
wcscpy( gzUserDefinedButton[3], TacticalStr[ TAKE_OFF_CLOTHES_STR ] );
|
||||
wcscpy( gzUserDefinedButton[4], TacticalStr[ MILITIA_DROP_EQ_STR ] );
|
||||
wcscpy( gzUserDefinedButton[5], TacticalStr[ UNUSED_STR ] );
|
||||
|
||||
// if disguised, allow testing our disguise
|
||||
if ( gpTempSoldier->bSoldierFlagMask & (SOLDIER_COVERT_CIV|SOLDIER_COVERT_SOLDIER) )
|
||||
wcscpy( gzUserDefinedButton[5], TacticalStr[ SPY_SELFTEST_STR ] );
|
||||
else
|
||||
wcscpy( gzUserDefinedButton[5], TacticalStr[ UNUSED_STR ] );
|
||||
|
||||
wcscpy( gzUserDefinedButton[6], TacticalStr[ UNUSED_STR ] );
|
||||
wcscpy( gzUserDefinedButton[7], TacticalStr[ UNUSED_STR ] );
|
||||
DoMessageBox( MSG_BOX_BASIC_MEDIUM_BUTTONS, TacticalStr[ FUNCTION_SELECTION_STR ], GAME_SCREEN, MSG_BOX_FLAG_GENERIC_EIGHT_BUTTONS, TacticalFunctionSelectionMessageBoxCallBack, NULL );
|
||||
@@ -4920,6 +4926,10 @@ void TacticalFunctionSelectionMessageBoxCallBack( UINT8 ubExitValue )
|
||||
// militia drops all gear taken from sector inventory
|
||||
TeamDropAll( MILITIA_TEAM );
|
||||
break;
|
||||
case 6:
|
||||
// test our disguise
|
||||
gpTempSoldier->SpySelfTest();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -15385,6 +15385,15 @@ void SOLDIERTYPE::Strip()
|
||||
}
|
||||
}
|
||||
|
||||
// check wether our disguise is any good
|
||||
void SOLDIERTYPE::SpySelfTest()
|
||||
{
|
||||
if ( SeemsLegit(this->ubID) )
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, szCovertTextStr[STR_COVERT_TEST_OK], this->name );
|
||||
else
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, szCovertTextStr[STR_COVERT_TEST_FAIL], this->name );
|
||||
}
|
||||
|
||||
// can we process prisoners in this sector?
|
||||
BOOLEAN SOLDIERTYPE::CanProcessPrisoners()
|
||||
{
|
||||
|
||||
@@ -1489,7 +1489,7 @@ public:
|
||||
// Flugente: return a cleaning kit from our inventory
|
||||
OBJECTTYPE* GetCleaningKit();
|
||||
|
||||
// use cleaning kits to clean weapons in inventory. fCleanAll = TRUE: clean all eapons found, otherwise just the first one
|
||||
// use cleaning kits to clean weapons in inventory. fCleanAll = TRUE: clean all weapons found, otherwise just the first one
|
||||
void CleanWeapon( BOOLEAN fCleanAll );
|
||||
|
||||
// Flugente: functions for the covert ops trait
|
||||
@@ -1518,6 +1518,9 @@ public:
|
||||
// lose disguise or take off any clothes item and switch back to original clothes
|
||||
void Strip();
|
||||
|
||||
// check wether our disguise is any good
|
||||
void SpySelfTest();
|
||||
|
||||
// Flugente: prisoner system
|
||||
BOOLEAN CanProcessPrisoners();
|
||||
UINT32 GetSurrenderStrength();
|
||||
|
||||
Reference in New Issue
Block a user