mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Updates / Fixes by Arynn
- Fixed: Mercs randomly drop aimed weapons automatically under some weird circumstances - Fixed: Merc are now a little more "talkactive" - Update: New option screen with "Next" and "Prev" button. This allows "unlimited" of options in the option screen - New: New "Forced turn base mode" option in the option screen and also available via keyboard shortcut (CTRL+ALT+SHIFT+T) in tactical. This forces the game to go in turn based mode when there are enemies in the sector. INFO: There is a new STI Graphic (OPTIONSCREENADDONS2.sti) which is needed for the updated option screen. You can download the file from http://ja2.h758491.serverkompetenz.net/Wanne/NewOptionScreen/OPTIONSCREENADDONS2.sti Put this file in your Data\Interface folder. If I build a new release I will upload the file to SVN GameDir and then remove it from my private download folder. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2610 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#include "Exit Grids.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include "GameSettings.h" // arynn : add forced turn mode
|
||||
#include "font control.h" // arynn : add forced turn mode
|
||||
#include "message.h" // arynn : add forced turn mode
|
||||
#include "connect.h"
|
||||
//forward declarations of common classes to eliminate includes
|
||||
class OBJECTTYPE;
|
||||
@@ -1522,12 +1526,21 @@ void AddSoldierToSectorGridNo( SOLDIERTYPE *pSoldier, INT16 sGridNo, UINT8 ubDir
|
||||
// If he's an enemy... set presence
|
||||
if ( !pSoldier->aiData.bNeutral && (pSoldier->bSide != gbPlayerNum ) )
|
||||
{
|
||||
// ATE: Added if not bloodcats
|
||||
// only do this once they are seen.....
|
||||
if ( pSoldier->ubBodyType != BLOODCAT )
|
||||
{
|
||||
SetEnemyPresence( );
|
||||
}
|
||||
// ATE: Added if not bloodcats
|
||||
// only do this once they are seen.....
|
||||
if ( pSoldier->ubBodyType != BLOODCAT )
|
||||
{
|
||||
SetEnemyPresence( );
|
||||
// arynn : add forced turn mode : note not for bloodcats..
|
||||
if ( gGameSettings.fOptions[ TOPTION_TOGGLE_TURN_MODE ])
|
||||
{
|
||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"Forced Turn Mode Active, Entering Combat" );
|
||||
if( Random( 100 ) >= Random( 100 ) ) // give a chance for either to go first
|
||||
EnterCombatMode( OUR_TEAM );
|
||||
else
|
||||
EnterCombatMode( ENEMY_TEAM );
|
||||
}// arynn : add forced turn mode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user