mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- New Feature: Arulco special division controls other features to fight the player. For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&goto=343706&#msg_343706
- New Feature: Enemy helicopters allow the AI to rapidly deploy troops aross the map. For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&goto=343707&#msg_343707. GameDir <= r2279 is required. - Fix: income of mine 0 was not correctly calculated git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8015 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -47,6 +47,8 @@
|
||||
#include "MilitiaSquads.h"
|
||||
#include "PMC.h" // added by Flugente
|
||||
#include "finances.h" // added by Flugente
|
||||
#include "ASD.h" // added by Flugente
|
||||
#include "Player Command.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
#include "connect.h"
|
||||
@@ -573,7 +575,47 @@ BOOLEAN ExecuteStrategicEvent( STRATEGICEVENT *pEvent )
|
||||
EndQuest( QUEST_KINGPIN_ANGEL_MARIA, gWorldSectorX, gWorldSectorY );
|
||||
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
case EVENT_ASD_UPDATE:
|
||||
UpdateASD();
|
||||
break;
|
||||
|
||||
case EVENT_ASD_PURCHASE_FUEL:
|
||||
if ( IsSectorEnemyControlled( SECTORX( gGameExternalOptions.usASDSupplyArrivalSector ), SECTORY( gGameExternalOptions.usASDSupplyArrivalSector ), 0 ) )
|
||||
ASDReceiveOrderedStrategicAIResources( ASD_FUEL, pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ASD_PURCHASE_JEEP:
|
||||
if ( IsSectorEnemyControlled( SECTORX( gGameExternalOptions.usASDSupplyArrivalSector ), SECTORY( gGameExternalOptions.usASDSupplyArrivalSector ), 0 ) )
|
||||
ASDReceiveOrderedStrategicAIResources( ASD_JEEP, pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ASD_PURCHASE_TANK:
|
||||
if ( IsSectorEnemyControlled( SECTORX( gGameExternalOptions.usASDSupplyArrivalSector ), SECTORY( gGameExternalOptions.usASDSupplyArrivalSector ), 0 ) )
|
||||
ASDReceiveOrderedStrategicAIResources( ASD_TANK, pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ASD_PURCHASE_HELI:
|
||||
if ( IsSectorEnemyControlled( SECTORX( gGameExternalOptions.usEnemyHeliBaseSector ), SECTORY( gGameExternalOptions.usEnemyHeliBaseSector ), 0 ) )
|
||||
ASDReceiveOrderedStrategicAIResources( ASD_HELI, pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ENEMY_HELI_UPDATE:
|
||||
UpdateEnemyHeli( pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ENEMY_HELI_REPAIR:
|
||||
UpdateEnemyHeliRepair( pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_ENEMY_HELI_REFUEL:
|
||||
UpdateEnemyHeliRefuel( pEvent->uiParam );
|
||||
break;
|
||||
|
||||
case EVENT_SAMSITE_REPAIRED:
|
||||
RepairSamSite( pEvent->uiParam );
|
||||
break;
|
||||
}
|
||||
gfPreventDeletionOfAnyEvent = fOrigPreventFlag;
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user