Skip to content

Commit

Permalink
Add Last Stand Race Swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Nov 27, 2024
1 parent d08e3a4 commit 09d5711
Show file tree
Hide file tree
Showing 10 changed files with 3,560 additions and 3,131 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 not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include "TriggerLibs/LibertyLib"
include "TriggerLibs/VoidLib"
include "TriggerLibs/VoidCampaignLib"
include "TriggerLibs/VoidCampaignMissionLib"
include "Lib15EF4C78"
include "Lib30B9E51A"
include "Lib5BD4895D"
include "LibABFE498B"
Expand All @@ -23,6 +24,7 @@ void InitLibs () {
libLotv_InitLib();
libVoiC_InitLib();
libVCMI_InitLib();
lib15EF4C78_InitLib();
lib30B9E51A_InitLib();
lib5BD4895D_InitLib();
libABFE498B_InitLib();
Expand Down Expand Up @@ -194,6 +196,7 @@ void gf_WarpOutUnit (unit lp_unit);
//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_FactionSwapInit;
trigger gt_onDifficultyCasual;
trigger gt_onDifficultyNormal;
trigger gt_onDifficultyHard;
Expand Down Expand Up @@ -838,6 +841,50 @@ bool auto_gf_WarpOutUnit_TriggerFunc (bool testConds, bool runActions) {
return true;
}

//--------------------------------------------------------------------------------------------------
// Trigger: Faction Swap Init
//--------------------------------------------------------------------------------------------------
bool gt_FactionSwapInit_Func (bool testConds, bool runActions) {
// Variable Declarations
unit lv_unit;

// Automatic Variable Declarations
// Variable Initialization

// Actions
if (!runActions) {
return true;
}

if ((libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Neut")) {
lib15EF4C78_gf_RemoveUnusedStartingUnits(UnitGroupFromId(4), "Prot", false);
}
else {
libABFE498B_gv_aP_Triggers_skipCutscenes = true;
lib15EF4C78_gf_RemoveUnusedStartingUnits(UnitGroupFromId(4), libABFE498B_gv_aP_Triggers_Option_overridePlayerRace, false);
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 @@ -5216,7 +5263,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 @@ -5969,6 +6016,7 @@ void gt_VictoryNydusWorms_Init () {
// Trigger Initialization
//--------------------------------------------------------------------------------------------------
void InitTriggers () {
gt_FactionSwapInit_Init();
gt_onDifficultyCasual_Init();
gt_onDifficultyNormal_Init();
gt_onDifficultyHard_Init();
Expand Down
6,336 changes: 3,207 additions & 3,129 deletions Maps/ArchipelagoCampaign/LotV/ap_last_stand.SC2Map/Objects

Large diffs are not rendered by default.

Binary file not shown.
23 changes: 23 additions & 0 deletions Maps/ArchipelagoCampaign/LotV/ap_last_stand.SC2Map/Preload.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
<Behavior id="HybridNemesisStasisPrevention"/>
<Model id="PingSimple"/>
<Model id="ProtossGenericWarpInOut"/>
<Race id="Terr"/>
<Race id="Zerg"/>
<Race id="Prot"/>
<Sound id="WarpGate_TrainStart"/>
<Sound id="WarpGate_TrainFinish"/>
<Sound id="NydusWorm_Unload"/>
Expand Down Expand Up @@ -188,9 +191,19 @@
<Unit id="HybridNemesis"/>
<Unit id="ZenithStone"/>
<Unit id="TempleShakuras02"/>
<Unit id="AP_SILiberator"/>
<Unit id="AP_BrynhildAssault"/>
<Unit id="AP_SupplyDepot"/>
<Unit id="AP_PerditionTurret"/>
<Unit id="AP_Assimilator"/>
<Unit id="AP_PlanetaryFortress"/>
<Unit id="AP_Lurker"/>
<Unit id="AP_CreepTumorBurrowed"/>
<Unit id="AP_Starport"/>
<Unit id="AP_Impaler"/>
<Unit id="AP_PhotonCannon"/>
<Unit id="AP_Probe"/>
<Unit id="AP_SpineCrawler"/>
<Unit id="AP_StalkerShakuras"/>
<Unit id="AP_DarkTemplarShakuras"/>
<Unit id="AP_Gateway"/>
Expand All @@ -199,4 +212,14 @@
<Unit id="AP_Forge"/>
<Unit id="AP_CyberneticsCore"/>
<Unit id="AP_KhaydarinMonolith"/>
<Unit id="AP_Overlord"/>
<Unit id="AP_SIInfestedBunker"/>
<Unit id="AP_DuskWing"/>
<Unit id="AP_EngineeringBay"/>
<Unit id="AP_MercCompound"/>
<Unit id="AP_Armory"/>
<Unit id="AP_LurkerDen"/>
<Unit id="AP_SpawningPool"/>
<Unit id="AP_EvolutionChamber"/>
<Unit id="AP_ZergMercenaryCompound"/>
</Preload>
Loading

0 comments on commit 09d5711

Please sign in to comment.