mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
new cheat command CTRL+SHIFT+g = god mode (invulnerability) requested by Parkan, works in both tactical and strategic
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9097 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -708,6 +708,7 @@ extern CHAR16 gzUserDefinedButton1[ 128 ];
|
||||
extern CHAR16 gzUserDefinedButton2[ 128 ];
|
||||
|
||||
extern BOOLEAN gfMilitiaPopupCreated;
|
||||
extern BOOLEAN gfGodModeCheat;
|
||||
|
||||
#ifdef JA2TESTVERSION
|
||||
extern INT16 MSYS_CurrentMX;
|
||||
@@ -7775,6 +7776,16 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'G':
|
||||
if (fCtrl)
|
||||
{
|
||||
if (CHEATER_CHEAT_LEVEL())
|
||||
{
|
||||
ScreenMsg(FONT_MCOLOR_RED, MSG_INTERFACE, gfGodModeCheat ? L"God mode deactivated." : L"God mode activated.");
|
||||
gfGodModeCheat = !gfGodModeCheat;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'g':
|
||||
break;
|
||||
case 'h':
|
||||
|
||||
Reference in New Issue
Block a user