mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
*************************
* HAM 3.6 (by Headrock) * ************************* - Info: Needed GameDir files for HAM 3.6 are not committed yet to the SVN GameDir. Will do that in the next few days - For more infos on HAM 3.6 check out: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=244808&page=0&fpart=1 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3323 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+17
-12
@@ -78,8 +78,9 @@ extern BOOLEAN gfFirstHeliRun;
|
||||
// ATE: Globals that dictate where the mercs will land once being hired
|
||||
// Default to Omerta
|
||||
// Saved in general saved game structure
|
||||
INT16 gsMercArriveSectorX = 9;
|
||||
INT16 gsMercArriveSectorY = 1;
|
||||
// HEADROCK HAM 3.5: Externalized coordinates
|
||||
INT16 gsMercArriveSectorX = gGameExternalOptions.ubDefaultArrivalSectorX;
|
||||
INT16 gsMercArriveSectorY = gGameExternalOptions.ubDefaultArrivalSectorY;
|
||||
|
||||
void CheckForValidArrivalSector( );
|
||||
|
||||
@@ -317,16 +318,20 @@ void MercArrivesCallback( UINT8 ubSoldierID )
|
||||
if (!is_networked)
|
||||
{
|
||||
// hayden - maybe you want to duke it out in omerta ;)
|
||||
if( !DidGameJustStart() && gsMercArriveSectorX == 9 && gsMercArriveSectorY == 1 )
|
||||
{
|
||||
//Mercs arriving in A9. This sector has been deemed as the always safe sector.
|
||||
//Seeing we don't support entry into a hostile sector (except for the beginning),
|
||||
//we will nuke any enemies in this sector first.
|
||||
if( gWorldSectorX != 9 || gWorldSectorY != 1 || gbWorldSectorZ )
|
||||
{
|
||||
EliminateAllEnemies( (UINT8)gsMercArriveSectorX, (UINT8)gsMercArriveSectorY );
|
||||
}
|
||||
}
|
||||
// HEADROCK HAM 3.5: Externalized starting (safe) sector
|
||||
// HEADROCK HAM 3.5: Actually, this is really ridiculous. Why should enemies at the LZ be eliminated at all?
|
||||
// I'm taking the initiative and removing this from the code. Mainly because it ends up interfering with
|
||||
// externalized LZs combined with other features like "Always Real Time" and "Forced Turn Based".
|
||||
//if( !DidGameJustStart() && gsMercArriveSectorX == gGameExternalOptions.ubDefaultArrivalSectorX && gsMercArriveSectorY == gGameExternalOptions.ubDefaultArrivalSectorY )
|
||||
// {
|
||||
// //Mercs arriving in A9. This sector has been deemed as the always safe sector.
|
||||
// //Seeing we don't support entry into a hostile sector (except for the beginning),
|
||||
// //we will nuke any enemies in this sector first.
|
||||
// if( gWorldSectorX != gGameExternalOptions.ubDefaultArrivalSectorX || gWorldSectorY != gGameExternalOptions.ubDefaultArrivalSectorY || gbWorldSectorZ )
|
||||
// {
|
||||
// EliminateAllEnemies( (UINT8)gsMercArriveSectorX, (UINT8)gsMercArriveSectorY );
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// This will update ANY soldiers currently schedules to arrive too
|
||||
|
||||
Reference in New Issue
Block a user