Skip to content

Commit

Permalink
Add The Host race-swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Dec 4, 2024
1 parent 4966618 commit 3dfa130
Show file tree
Hide file tree
Showing 10 changed files with 9,908 additions and 9,822 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Components>
<Optimized/>
<DataComponent Type="gada">GameData</DataComponent>
<DataComponent Type="text" Locale="enUS">GameText</DataComponent>
<DataComponent Type="info">DocumentInfo</DataComponent>
Expand Down
Binary file modified Maps/ArchipelagoCampaign/LotV/ap_the_host.SC2Map/DocumentHeader
Binary file not shown.
49 changes: 46 additions & 3 deletions Maps/ArchipelagoCampaign/LotV/ap_the_host.SC2Map/MapScript.galaxy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include "TriggerLibs/SwarmLib"
include "TriggerLibs/VoidLib"
include "TriggerLibs/VoidCampaignLib"
include "TriggerLibs/VoidCampaignMissionLib"
include "Lib15EF4C78"
include "Lib30B9E51A"
include "Lib5BD4895D"
include "LibABFE498B"
Expand All @@ -28,6 +29,7 @@ void InitLibs () {
libLotv_InitLib();
libVoiC_InitLib();
libVCMI_InitLib();
lib15EF4C78_InitLib();
lib30B9E51A_InitLib();
lib5BD4895D_InitLib();
libABFE498B_InitLib();
Expand Down Expand Up @@ -161,6 +163,7 @@ void gf_IntroVoidRiftEventSpawning (string lp_unitType);
//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_FactionSwapInit;
trigger gt_onDifficultyCasual;
trigger gt_onDifficultyNormal;
trigger gt_onDifficultyHard;
Expand Down Expand Up @@ -596,7 +599,7 @@ void gf_VoidShardAbilityDeathGripUnit (unit lp_casterUnit, region lp_targetRegio
for (;; autoC20E9EDC_u -= 1) {
autoC20E9EDC_var = UnitGroupUnitFromEnd(autoC20E9EDC_g, autoC20E9EDC_u);
if (autoC20E9EDC_var == null) { break; }
if (((UnitGetType(autoC20E9EDC_var) == "Interceptor") || (UnitGetType(autoC20E9EDC_var) == "InterceptorAiur") || (UnitGetType(autoC20E9EDC_var) == "CarrierRepairDrone") || (UnitGetType(autoC20E9EDC_var) == "FenixSOA") || (UnitGetType(autoC20E9EDC_var) == "Flagship") || (UnitHasBehavior2(autoC20E9EDC_var, "VoidTendrilDeathGripStun") == true) || (UnitHasBehavior2(autoC20E9EDC_var, "VoidTendrilDeathGripWarningDebuff") == true))) {
if (((UnitGetType(autoC20E9EDC_var) == "Interceptor") || (UnitGetType(autoC20E9EDC_var) == "InterceptorAiur") || (UnitGetType(autoC20E9EDC_var) == "CarrierRepairDrone") || (UnitGetType(autoC20E9EDC_var) == "FenixSOA") || (UnitGetType(autoC20E9EDC_var) == "Flagship") || (UnitHasBehavior2(autoC20E9EDC_var, "VoidTendrilDeathGripStun") == true) || (UnitHasBehavior2(autoC20E9EDC_var, "VoidTendrilDeathGripWarningDebuff") == true) || (UnitGetType(autoC20E9EDC_var) == "AP_CarrierRepairDrone") || (UnitGetType(autoC20E9EDC_var) == "AP_Interceptor") || (UnitGetType(autoC20E9EDC_var) == "AP_InterceptorPurifier") || (UnitGetType(autoC20E9EDC_var) == "AP_InterceptorTaldarim") || (UnitGetType(autoC20E9EDC_var) == "AP_CarrierPurifierBomber") || (UnitGetType(autoC20E9EDC_var) == "AP_BroodlingEscort"))) {
UnitGroupRemove(lv_enemyGroup, autoC20E9EDC_var);
}

Expand Down Expand Up @@ -644,7 +647,7 @@ void gf_VoidShardAbilityShockwave (unit lp_voidShard, region lp_targetRegion) {
for (;; auto160C49C9_u -= 1) {
auto160C49C9_var = UnitGroupUnitFromEnd(auto160C49C9_g, auto160C49C9_u);
if (auto160C49C9_var == null) { break; }
if (((UnitGetType(auto160C49C9_var) == "Interceptor") || (UnitGetType(auto160C49C9_var) == "InterceptorAiur") || (UnitGetType(auto160C49C9_var) == "CarrierRepairDrone"))) {
if (((UnitGetType(auto160C49C9_var) == "Interceptor") || (UnitGetType(auto160C49C9_var) == "InterceptorAiur") || (UnitGetType(auto160C49C9_var) == "CarrierRepairDrone") || (UnitGetType(auto160C49C9_var) == "AP_CarrierRepairDrone") || (UnitGetType(auto160C49C9_var) == "AP_Interceptor") || (UnitGetType(auto160C49C9_var) == "AP_InterceptorPurifier") || (UnitGetType(auto160C49C9_var) == "AP_InterceptorTaldarim") || (UnitGetType(auto160C49C9_var) == "AP_CarrierPurifierBomber") || (UnitGetType(auto160C49C9_var) == "AP_BroodlingEscort"))) {
UnitGroupRemove(lv_enemyGroup, auto160C49C9_var);
}

Expand Down Expand Up @@ -1044,6 +1047,45 @@ bool auto_gf_IntroVoidRiftEventSpawning_TriggerFunc (bool testConds, bool runAct
return true;
}

//--------------------------------------------------------------------------------------------------
// Trigger: Faction Swap Init
//--------------------------------------------------------------------------------------------------
bool gt_FactionSwapInit_Func (bool testConds, bool runActions) {
// Automatic Variable Declarations
// Actions
if (!runActions) {
return true;
}

if ((libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Neut")) {
lib15EF4C78_gf_RemoveUnusedStartingUnits(UnitGroupFromId(7), "Prot", false);
}
else {
libABFE498B_gv_aP_Triggers_skipCutscenes = true;
lib15EF4C78_gf_RemoveUnusedStartingUnits(UnitGroupFromId(7), libABFE498B_gv_aP_Triggers_Option_overridePlayerRace, true);
if ((libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Terr")) {
PlayerSetRace(gv_pLAYER_01_USER, "Terr");
lib5BD4895D_gf_AP_Core_MapConfig_setPlayerFaction(gv_pLAYER_01_USER, lib5BD4895D_gv_aP_Core_Faction_RAYNORS_RAIDERS);
}
else {
if ((libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Zerg")) {
PlayerSetRace(gv_pLAYER_01_USER, "Zerg");
lib5BD4895D_gf_AP_Core_MapConfig_setPlayerFaction(gv_pLAYER_01_USER, lib5BD4895D_gv_aP_Core_Faction_KERRIGAN_SWARM);
}

}
libLbty_gf_OrderWorkerstoGatherNearbyResources(RegionEntireMap(), gv_pLAYER_01_USER);
lib15EF4C78_gf_AP_Player_UtilTownHallAutoRally(gv_pLAYER_01_USER);
}
return true;
}

//--------------------------------------------------------------------------------------------------
void gt_FactionSwapInit_Init () {
gt_FactionSwapInit = TriggerCreate("gt_FactionSwapInit_Func");
TriggerAddEventGeneric(gt_FactionSwapInit, lib5BD4895D_gv_aP_Core_LOAD_FINISHED_EVENT);
}

//--------------------------------------------------------------------------------------------------
// Trigger: onDifficultyCasual
//--------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -4902,7 +4944,7 @@ bool gt_IntroQ_Func (bool testConds, bool runActions) {
TriggerEnable(TriggerGetCurrent(), false);
TriggerQueueEnter();
TriggerExecute(gt_IntroSetup, true, true);
if ((libABFE498B_gv_aP_Triggers_skipCutscenes == false)) {
if ((libABFE498B_gv_aP_Triggers_skipCutscenes == false) && (libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Neut")) {
TriggerExecute(gt_IntroCinematic, true, true);
TriggerExecute(gt_IntroCinematicEnd, true, true);
}
Expand Down Expand Up @@ -5651,6 +5693,7 @@ void gt_VictoryAmonBeamController_Init () {
// Trigger Initialization
//--------------------------------------------------------------------------------------------------
void InitTriggers () {
gt_FactionSwapInit_Init();
gt_onDifficultyCasual_Init();
gt_onDifficultyNormal_Init();
gt_onDifficultyHard_Init();
Expand Down
Binary file modified Maps/ArchipelagoCampaign/LotV/ap_the_host.SC2Map/Minimap.tga
Binary file not shown.
Loading

0 comments on commit 3dfa130

Please sign in to comment.