-
Notifications
You must be signed in to change notification settings - Fork 12
/
MapScript.galaxy
4413 lines (3919 loc) · 187 KB
/
MapScript.galaxy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//==================================================================================================
//
// Generated Map Script
//
// Name: Mutalisk Evolution
//
//==================================================================================================
include "TriggerLibs/NativeLib"
include "TriggerLibs/SwarmLib"
include "TriggerLibs/SwarmCampaignLib"
//--------------------------------------------------------------------------------------------------
// Library Initialization
//--------------------------------------------------------------------------------------------------
void InitLibs () {
libNtve_InitLib();
libHots_InitLib();
libSwaC_InitLib();
}
//--------------------------------------------------------------------------------------------------
// Constants
//--------------------------------------------------------------------------------------------------
const int gv_pLAYER_01_USER = 1;
const int gv_pLAYER_02_DOMINION = 2;
const int gv_pLAYER_03_ZERG_ALLY = 3;
const int gv_pLAYER_04_FERALZERG = 4;
const int gv_pLAYER_05_ZERG_ALLY = 5;
//--------------------------------------------------------------------------------------------------
// Global Preset Declarations
//--------------------------------------------------------------------------------------------------
const int ge_ReticleSize_Small = 0;
const int ge_ReticleSize_Medium = 1;
const int ge_ReticleSize_Large = 2;
const int ge_AirUnitType_Mutalisk = 0;
const int ge_AirUnitType_BroodLord = 1;
//--------------------------------------------------------------------------------------------------
// Global Variables
//--------------------------------------------------------------------------------------------------
bool gv_gameOver;
bool gv_inCinematic;
string gv_mapMusicTrack;
unitgroup gv_broodLordUnits;
unitgroup gv_viperUnits;
bool gv_broodLordActive;
bool gv_viperActive;
point gv_backupPoint;
bool gv_backupSuppressed;
unitgroup gv_broodLordsGroup;
unitgroup gv_feralBroodLordsGroup;
unitgroup gv_feralEscortGroup;
unitgroup gv_mutaliskGroup;
unitgroup gv_backupMutaliskGroup;
int gv_pingPFort;
bool gv_backupUnitsSelected;
unit gv_mutaSpawner;
int gv_reinforcementTransmission;
unitgroup gv_viperGroup;
unitgroup gv_aberrationGroup;
unitgroup gv_bunkers;
unitgroup gv_bunkerMarines;
int gv_pingCargoShip;
int gv_aberrationReinforcementAmount;
unitgroup gv_tanks;
int gv_objectiveCollectBroodLordEssence;
int gv_objectiveCountEssenceCollected;
int gv_objectiveMorphBroodLords;
int gv_objectiveCountBroodLordsMorphed;
int gv_objectiveDestroyPlanetaryFortress;
int gv_objectiveSecureCargoShip;
unitgroup gv_cinematicHiddenUnits;
unitgroup gv_cinematicTempUnits;
bool gv_cinematicCompleted;
actor[7] gv_introBroodMutaliskActors;
sound gv_mutaTransitionPipeSound;
void InitGlobals () {
gv_broodLordUnits = UnitGroupEmpty();
gv_viperUnits = UnitGroupEmpty();
gv_broodLordsGroup = UnitGroupEmpty();
gv_feralBroodLordsGroup = UnitGroupEmpty();
gv_feralEscortGroup = UnitGroupEmpty();
gv_mutaliskGroup = UnitGroupEmpty();
gv_backupMutaliskGroup = UnitGroupEmpty();
gv_pingPFort = c_invalidPingId;
gv_reinforcementTransmission = c_invalidTransmissionId;
gv_viperGroup = UnitGroupEmpty();
gv_aberrationGroup = UnitGroupEmpty();
gv_bunkers = UnitGroupEmpty();
gv_bunkerMarines = UnitGroupEmpty();
gv_pingCargoShip = c_invalidPingId;
gv_aberrationReinforcementAmount = 3;
gv_tanks = UnitGroupEmpty();
gv_objectiveCollectBroodLordEssence = c_invalidObjectiveId;
gv_objectiveMorphBroodLords = c_invalidObjectiveId;
gv_objectiveDestroyPlanetaryFortress = c_invalidObjectiveId;
gv_objectiveSecureCargoShip = c_invalidObjectiveId;
gv_cinematicHiddenUnits = UnitGroupEmpty();
gv_cinematicTempUnits = UnitGroupEmpty();
}
//--------------------------------------------------------------------------------------------------
// Global Function Declarations
//--------------------------------------------------------------------------------------------------
void gf_RevitalizeUnitGroup (unitgroup lp_uNITGROUP);
void gf_AttachModelToEnemyUntilDamaged (int lp_size, unit lp_unit);
void gf_SpawnMutalisks (int lp_spawnCount, fixed lp_spawnInterval);
void gf_BroodLordPatrol (unitgroup lp_unitGroup);
void gf_DropinAirUnits (int lp_type, int lp_count);
void gf_AberrationHelper (unit lp_aberration, int lp_targetCliffLevel);
void gf_TankHelper (unit lp_tank);
void gf_MutaSwap (unit lp_mutalisk);
//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_Initialization;
trigger gt_Init01Technology;
trigger gt_Init02Players;
trigger gt_Init03Units;
trigger gt_Init04MusicSound;
trigger gt_Init05Environment;
trigger gt_Init06Difficulties;
trigger gt_Init07Help;
trigger gt_DEBUGSkiptoPart2;
trigger gt_StartGameQ;
trigger gt_BroodLordMusicCue;
trigger gt_CatchUnitSpawnsBroodLord;
trigger gt_StartBroodLord;
trigger gt_BroodLordEscort;
trigger gt_BroodLordKilled;
trigger gt_BroodLordResourceFailsafe;
trigger gt_BroodLordMorphIntro;
trigger gt_BroodLordsMorphedQ;
trigger gt_VikingModeSwap;
trigger gt_DropPodTrigger;
trigger gt_DominionDropPod1;
trigger gt_DominionDropPod2;
trigger gt_DominionDropPod3;
trigger gt_PFortKilled;
trigger gt_BroodLordReinforcements1;
trigger gt_BroodLordReinforcements2;
trigger gt_TransmissionBroodLordReinforcementsQ;
trigger gt_TransmissionKillBroodLordsQ;
trigger gt_TransmissionMorphBroodLordsQ;
trigger gt_TransmissionBroodLordQ;
trigger gt_TransmissionMutaliskEscortQ;
trigger gt_TransmissionEndStalemateQ;
trigger gt_TransmissionDropPodsQ;
trigger gt_TransmissionPFortDestroyedQ;
trigger gt_ViperMusicCue;
trigger gt_StartViperQ;
trigger gt_AbductIntro;
trigger gt_TankIntro;
trigger gt_TreeTank;
trigger gt_TankSiege;
trigger gt_DisablingCloudIntro;
trigger gt_CloudHelper;
trigger gt_AllowConsumption;
trigger gt_TreeBackup1;
trigger gt_TreeBackup2;
trigger gt_AbductRefresher;
trigger gt_CargoShipReached;
trigger gt_ViperReinforcements;
trigger gt_ViperReinforcementsFinal;
trigger gt_TransmissionViperQ;
trigger gt_TransmissionUseAbductQ;
trigger gt_TransmissionTanksDetectedQ;
trigger gt_TransmissionGetItOffMe;
trigger gt_TransmissionDisablingCloudQ;
trigger gt_TransmissionBunkerDisabledQ;
trigger gt_TransmissionFinalDefensesQ;
trigger gt_TransmissionJoriumSecuredQ;
trigger gt_TransmissionAbductRefresherQ;
trigger gt_VictoryDestroythePlanetaryFortressCompleted;
trigger gt_VictoryDestroyAllTerranForcesCompleted;
trigger gt_VictorySequence;
trigger gt_Victory;
trigger gt_Defeat;
trigger gt_VictoryCheat;
trigger gt_DefeatCheat;
trigger gt_TipMissionHelpQ;
trigger gt_ObjectiveCollectBroodLordEssenceCreate;
trigger gt_ObjectiveCollectBroodLordEssenceUpdate;
trigger gt_ObjectiveCollectBroodLordEssenceComplete;
trigger gt_ObjectiveMorphBroodLordsCreate;
trigger gt_ObjectiveMorphBroodLordsUpdate;
trigger gt_ObjectiveMorphBroodLordsComplete;
trigger gt_ObjectiveMorphBroodLordsGroupUpdate;
trigger gt_ObjectiveDestroythePlanetaryFortressCreate;
trigger gt_ObjectiveDestroythePlanetaryFortressComplete;
trigger gt_ObjectiveSecuretheCargoShipCreate;
trigger gt_ObjectiveSecuretheCargoShipComplete;
trigger gt_IntroBroodLordQ;
trigger gt_IntroBroodLordSetup;
trigger gt_IntroBroodLordCinematic;
trigger gt_IntroBroodLordCinematicEnd;
trigger gt_IntroBroodLordCleanup;
trigger gt_TransitionQ;
trigger gt_TransitionSetup;
trigger gt_TransitionCinematic;
trigger gt_TransitionCinematicEnd;
trigger gt_TransitionCleanup;
trigger gt_IntroViperQ;
trigger gt_IntroViperSetup;
trigger gt_IntroViperMusicCue;
trigger gt_IntroViperCinematic;
trigger gt_IntroViperCinematicEnd;
trigger gt_IntroViperCleanup;
trigger gt_VictoryQ;
trigger gt_VictorySetup;
trigger gt_VictoryMusicCue;
//--------------------------------------------------------------------------------------------------
// Global Presets
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Global Functions
//--------------------------------------------------------------------------------------------------
void gf_RevitalizeUnitGroup (unitgroup lp_uNITGROUP) {
// Implementation
SoundPlay(SoundLink("Protoss_PowerUpSmall", 1), PlayerGroupAll(), 100.0, 0.0);
UnitGroupLoopBegin(lp_uNITGROUP);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
libNtve_gf_AttachModelToUnit(UnitGroupLoopCurrent(), "PrimalHealBuffImpactModel", "Ref_Center");
UnitSetPropertyFixed(UnitGroupLoopCurrent(), c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(UnitGroupLoopCurrent(), c_unitPropEnergyPercent, 100.0);
}
UnitGroupLoopEnd();
}
trigger auto_gf_AttachModelToEnemyUntilDamaged_Trigger = null;
int auto_gf_AttachModelToEnemyUntilDamaged_lp_size;
unit auto_gf_AttachModelToEnemyUntilDamaged_lp_unit;
void gf_AttachModelToEnemyUntilDamaged (int lp_size, unit lp_unit) {
auto_gf_AttachModelToEnemyUntilDamaged_lp_size = lp_size;
auto_gf_AttachModelToEnemyUntilDamaged_lp_unit = lp_unit;
if (auto_gf_AttachModelToEnemyUntilDamaged_Trigger == null) {
auto_gf_AttachModelToEnemyUntilDamaged_Trigger = TriggerCreate("auto_gf_AttachModelToEnemyUntilDamaged_TriggerFunc");
}
TriggerExecute(auto_gf_AttachModelToEnemyUntilDamaged_Trigger, false, false);
}
bool auto_gf_AttachModelToEnemyUntilDamaged_TriggerFunc (bool testConds, bool runActions) {
int lp_size = auto_gf_AttachModelToEnemyUntilDamaged_lp_size;
unit lp_unit = auto_gf_AttachModelToEnemyUntilDamaged_lp_unit;
int auto8D8B2651_val;
// Implementation
auto8D8B2651_val = lp_size;
if (auto8D8B2651_val == ge_ReticleSize_Small) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Small, null, lp_unit, "Ref_Center");
}
else if (auto8D8B2651_val == ge_ReticleSize_Medium) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, null, lp_unit, "Ref_Center");
}
else if (auto8D8B2651_val == ge_ReticleSize_Large) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Large, null, lp_unit, "Ref_Center");
}
else {
}
while (!((UnitGetPropertyFixed(lp_unit, c_unitPropLifePercent, c_unitPropCurrent) < 100.0))) {
Wait(0.25, c_timeGame);
}
libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());
return true;
}
trigger auto_gf_SpawnMutalisks_Trigger = null;
int auto_gf_SpawnMutalisks_lp_spawnCount;
fixed auto_gf_SpawnMutalisks_lp_spawnInterval;
void gf_SpawnMutalisks (int lp_spawnCount, fixed lp_spawnInterval) {
auto_gf_SpawnMutalisks_lp_spawnCount = lp_spawnCount;
auto_gf_SpawnMutalisks_lp_spawnInterval = lp_spawnInterval;
if (auto_gf_SpawnMutalisks_Trigger == null) {
auto_gf_SpawnMutalisks_Trigger = TriggerCreate("auto_gf_SpawnMutalisks_TriggerFunc");
}
TriggerExecute(auto_gf_SpawnMutalisks_Trigger, false, false);
}
bool auto_gf_SpawnMutalisks_TriggerFunc (bool testConds, bool runActions) {
int lp_spawnCount = auto_gf_SpawnMutalisks_lp_spawnCount;
fixed lp_spawnInterval = auto_gf_SpawnMutalisks_lp_spawnInterval;
int auto0D27CA7E_n;
int auto0D27CA7E_i;
// Implementation
SoundPlay(SoundLink("Muta_Evo1_PipeExit", -1), PlayerGroupAll(), 100.0, 0.0);
auto0D27CA7E_n = lp_spawnCount;
for (auto0D27CA7E_i = 1; auto0D27CA7E_i <= auto0D27CA7E_n; auto0D27CA7E_i += 1) {
UnitIssueOrder(gv_mutaSpawner, Order(AbilityCommand("InfestedVentSpawnMutalisk", 0)), c_orderQueueReplace);
Wait(lp_spawnInterval, c_timeGame);
}
return true;
}
trigger auto_gf_BroodLordPatrol_Trigger = null;
unitgroup auto_gf_BroodLordPatrol_lp_unitGroup;
void gf_BroodLordPatrol (unitgroup lp_unitGroup) {
auto_gf_BroodLordPatrol_lp_unitGroup = lp_unitGroup;
if (auto_gf_BroodLordPatrol_Trigger == null) {
auto_gf_BroodLordPatrol_Trigger = TriggerCreate("auto_gf_BroodLordPatrol_TriggerFunc");
}
TriggerExecute(auto_gf_BroodLordPatrol_Trigger, false, false);
}
bool auto_gf_BroodLordPatrol_TriggerFunc (bool testConds, bool runActions) {
unitgroup lp_unitGroup = auto_gf_BroodLordPatrol_lp_unitGroup;
// Implementation
while ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > 0)) {
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
Wait(3.0, c_timeGame);
UnitGroupIssueOrder(lp_unitGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(128)), c_orderQueueAddToEnd);
while (!((UnitOrderCount(UnitGroupUnit(lp_unitGroup, 1)) == 0))) {
Wait(0.25, c_timeGame);
}
Wait(3.0, c_timeGame);
}
return true;
}
trigger auto_gf_DropinAirUnits_Trigger = null;
int auto_gf_DropinAirUnits_lp_type;
int auto_gf_DropinAirUnits_lp_count;
void gf_DropinAirUnits (int lp_type, int lp_count) {
auto_gf_DropinAirUnits_lp_type = lp_type;
auto_gf_DropinAirUnits_lp_count = lp_count;
if (auto_gf_DropinAirUnits_Trigger == null) {
auto_gf_DropinAirUnits_Trigger = TriggerCreate("auto_gf_DropinAirUnits_TriggerFunc");
}
TriggerExecute(auto_gf_DropinAirUnits_Trigger, false, false);
}
bool auto_gf_DropinAirUnits_TriggerFunc (bool testConds, bool runActions) {
int lp_type = auto_gf_DropinAirUnits_lp_type;
int lp_count = auto_gf_DropinAirUnits_lp_count;
int autoCF462546_val;
int auto3185DCEF_n;
int auto3185DCEF_i;
int auto25987E1C_n;
int auto25987E1C_i;
// Variable Declarations
unitgroup lv_reinforcements;
point lv_centerPoint;
point lv_spawnPoint;
int lv_spawnTries;
// Variable Initialization
lv_reinforcements = UnitGroupEmpty();
// Implementation
if ((libNtve_gf_UnitGroupIsDead(gv_broodLordsGroup) == true)) {
lv_centerPoint = CameraGetTarget(gv_pLAYER_01_USER);
}
else {
lv_centerPoint = UnitGroupCenterOfGroup(gv_broodLordsGroup);
}
autoCF462546_val = lp_type;
if (autoCF462546_val == ge_AirUnitType_Mutalisk) {
auto3185DCEF_n = lp_count;
for (auto3185DCEF_i = 1; auto3185DCEF_i <= auto3185DCEF_n; auto3185DCEF_i += 1) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "MutaliskBroodlord", 0, gv_pLAYER_01_USER, lv_centerPoint);
UnitGroupAdd(lv_reinforcements, UnitLastCreated());
UnitGroupAdd(gv_mutaliskGroup, UnitLastCreated());
libNtve_gf_PauseUnit(UnitLastCreated(), true);
libNtve_gf_ShowHideUnit(UnitLastCreated(), false);
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 10.0);
}
Wait(1.0, c_timeGame);
UnitGroupLoopBegin(lv_reinforcements);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
lv_spawnPoint = PointWithOffset(PointWithOffset(lv_centerPoint, 0.0, 0.0), RandomFixed(-2.5, 2.5), RandomFixed(-2.5, 2.5));
while ((RegionContainsPoint(RegionFromId(5), lv_spawnPoint) == false)) {
if ((lv_spawnTries >= 10)) {
lv_spawnPoint = PointFromId(40);
break;
}
else {
lv_spawnTries += 1;
lv_spawnPoint = PointWithOffset(PointWithOffset(lv_centerPoint, 0.0, 0.0), RandomFixed(-2.5, 2.5), RandomFixed(-2.5, 2.5));
}
}
UnitSetPosition(UnitGroupLoopCurrent(), lv_spawnPoint, false);
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
}
else if (autoCF462546_val == ge_AirUnitType_BroodLord) {
auto25987E1C_n = lp_count;
for (auto25987E1C_i = 1; auto25987E1C_i <= auto25987E1C_n; auto25987E1C_i += 1) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "BroodLord", 0, gv_pLAYER_01_USER, lv_centerPoint);
UnitGroupAdd(lv_reinforcements, UnitLastCreated());
UnitGroupAdd(gv_broodLordsGroup, UnitLastCreated());
libNtve_gf_PauseUnit(UnitLastCreated(), true);
libNtve_gf_ShowHideUnit(UnitLastCreated(), false);
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 10.0);
}
Wait(1.0, c_timeGame);
UnitGroupLoopBegin(lv_reinforcements);
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
lv_spawnPoint = PointWithOffset(PointWithOffset(lv_centerPoint, 0.0, 0.0), RandomFixed(-2.5, 2.5), RandomFixed(-2.5, 2.5));
while ((RegionContainsPoint(RegionFromId(5), lv_spawnPoint) == false)) {
if ((lv_spawnTries >= 10)) {
lv_spawnPoint = PointFromId(40);
break;
}
else {
lv_spawnTries += 1;
lv_spawnPoint = PointWithOffset(PointWithOffset(lv_centerPoint, 0.0, 0.0), RandomFixed(-2.5, 2.5), RandomFixed(-2.5, 2.5));
}
}
UnitSetPosition(UnitGroupLoopCurrent(), lv_spawnPoint, false);
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);
UnitSetHeight(UnitGroupLoopCurrent(), UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight), 2.0);
}
UnitGroupLoopEnd();
}
else {
}
return true;
}
trigger auto_gf_AberrationHelper_Trigger = null;
unit auto_gf_AberrationHelper_lp_aberration;
int auto_gf_AberrationHelper_lp_targetCliffLevel;
void gf_AberrationHelper (unit lp_aberration, int lp_targetCliffLevel) {
auto_gf_AberrationHelper_lp_aberration = lp_aberration;
auto_gf_AberrationHelper_lp_targetCliffLevel = lp_targetCliffLevel;
if (auto_gf_AberrationHelper_Trigger == null) {
auto_gf_AberrationHelper_Trigger = TriggerCreate("auto_gf_AberrationHelper_TriggerFunc");
}
TriggerExecute(auto_gf_AberrationHelper_Trigger, false, false);
}
bool auto_gf_AberrationHelper_TriggerFunc (bool testConds, bool runActions) {
unit lp_aberration = auto_gf_AberrationHelper_lp_aberration;
int lp_targetCliffLevel = auto_gf_AberrationHelper_lp_targetCliffLevel;
// Implementation
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/13B04441"), lp_aberration, "Ref_Center");
while (!(((CliffLevel(UnitGetPosition(lp_aberration)) == lp_targetCliffLevel) || (UnitIsAlive(lp_aberration) == false)))) {
Wait(0.25, c_timeGame);
}
libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());
TextTagDestroy(TextTagLastCreated());
return true;
}
trigger auto_gf_TankHelper_Trigger = null;
unit auto_gf_TankHelper_lp_tank;
void gf_TankHelper (unit lp_tank) {
auto_gf_TankHelper_lp_tank = lp_tank;
if (auto_gf_TankHelper_Trigger == null) {
auto_gf_TankHelper_Trigger = TriggerCreate("auto_gf_TankHelper_TriggerFunc");
}
TriggerExecute(auto_gf_TankHelper_Trigger, false, false);
}
bool auto_gf_TankHelper_TriggerFunc (bool testConds, bool runActions) {
unit lp_tank = auto_gf_TankHelper_lp_tank;
// Variable Declarations
text lv_text;
bool lv_tankCallout;
// Variable Initialization
// Implementation
if ((libNtve_gf_UnitInRegion(lp_tank, RegionFromId(7)) == true)) {
lv_text = StringExternal("Param/Value/B6EE3A85");
}
else {
}
if ((libNtve_gf_UnitInRegion(lp_tank, RegionFromId(20)) == true)) {
lv_tankCallout = true;
}
else {
}
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, lv_text, lp_tank, "Ref_Center");
PingCreate(PlayerGroupAll(), "PingSimple", UnitGetPosition(lp_tank), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
PingSetScale(PingLastCreated(), 0.8);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/5B59B205"));
while (!((CliffLevel(UnitGetPosition(lp_tank)) == 2))) {
Wait(0.25, c_timeGame);
}
PingDestroy(PingLastCreated());
libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());
TextTagDestroy(TextTagLastCreated());
if ((lv_tankCallout == true)) {
TriggerExecute(gt_TransmissionGetItOffMe, true, false);
}
else {
}
return true;
}
trigger auto_gf_MutaSwap_Trigger = null;
unit auto_gf_MutaSwap_lp_mutalisk;
void gf_MutaSwap (unit lp_mutalisk) {
auto_gf_MutaSwap_lp_mutalisk = lp_mutalisk;
if (auto_gf_MutaSwap_Trigger == null) {
auto_gf_MutaSwap_Trigger = TriggerCreate("auto_gf_MutaSwap_TriggerFunc");
}
TriggerExecute(auto_gf_MutaSwap_Trigger, false, false);
}
bool auto_gf_MutaSwap_TriggerFunc (bool testConds, bool runActions) {
unit lp_mutalisk = auto_gf_MutaSwap_lp_mutalisk;
// Implementation
UnitIssueOrder(lp_mutalisk, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(gv_mutaSpawner)), c_orderQueueReplace);
while (!((UnitOrderCount(lp_mutalisk) == 0))) {
Wait(0.25, c_timeGame);
}
UnitRemove(lp_mutalisk);
return true;
}
//--------------------------------------------------------------------------------------------------
// Trigger: Initialization
//--------------------------------------------------------------------------------------------------
bool gt_Initialization_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_ULoadCampaignData("ZEvolutionMutalisk");
TriggerExecute(gt_Init01Technology, true, true);
libSwaC_gf_PurchaseStorymodeTech();
TriggerExecute(gt_Init02Players, true, true);
TriggerExecute(gt_Init03Units, true, true);
TriggerExecute(gt_Init04MusicSound, true, true);
TriggerExecute(gt_Init05Environment, true, true);
TriggerExecute(gt_Init06Difficulties, true, true);
TriggerExecute(gt_Init07Help, true, true);
libNtve_gf_PreloadModelObject("EvolutionPlanet", false);
gv_broodLordActive = true;
gv_viperActive = false;
TriggerExecute(gt_IntroBroodLordQ, true, true);
TriggerExecute(gt_StartGameQ, true, true);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Initialization_Init () {
gt_Initialization = TriggerCreate("gt_Initialization_Func");
TriggerAddEventMapInit(gt_Initialization);
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 01 Technology
//--------------------------------------------------------------------------------------------------
bool gt_Init01Technology_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("InfestedVentSpawnMutalisk", 0), true);
TechTreeUpgradeAddLevel(gv_pLAYER_02_DOMINION, "SiegeTech", 1);
TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("SpireResearch", 0), false);
TechTreeAbilityAllow(gv_pLAYER_01_USER, AbilityCommand("SpireResearch", 3), false);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init01Technology_Init () {
gt_Init01Technology = TriggerCreate("gt_Init01Technology_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 02 Players
//--------------------------------------------------------------------------------------------------
bool gt_Init02Players_Func (bool testConds, bool runActions) {
// Variable Declarations
playergroup lv_visionGroup01;
playergroup lv_visionGroup02;
// Variable Initialization
lv_visionGroup01 = PlayerGroupEmpty();
lv_visionGroup02 = PlayerGroupEmpty();
// Actions
if (!runActions) {
return true;
}
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_02_DOMINION, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_03_ZERG_ALLY, libNtve_ge_AllianceSetting_Ally);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_05_ZERG_ALLY, libNtve_ge_AllianceSetting_Ally);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_04_FERALZERG, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_02_DOMINION, gv_pLAYER_03_ZERG_ALLY, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_02_DOMINION, gv_pLAYER_05_ZERG_ALLY, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_02_DOMINION, gv_pLAYER_04_FERALZERG, libNtve_ge_AllianceSetting_Ally);
libNtve_gf_SetAlliance(gv_pLAYER_03_ZERG_ALLY, gv_pLAYER_04_FERALZERG, libNtve_ge_AllianceSetting_Enemy);
PlayerGroupAdd(lv_visionGroup01, gv_pLAYER_02_DOMINION);
PlayerGroupAdd(lv_visionGroup01, gv_pLAYER_04_FERALZERG);
libSwaC_gf_ShareVisionAmongPlayers(lv_visionGroup01);
PlayerGroupAdd(lv_visionGroup02, gv_pLAYER_01_USER);
PlayerGroupAdd(lv_visionGroup02, gv_pLAYER_03_ZERG_ALLY);
PlayerGroupAdd(lv_visionGroup02, gv_pLAYER_05_ZERG_ALLY);
libSwaC_gf_ShareVisionAmongPlayers(lv_visionGroup02);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
PlayerModifyPropertyInt(gv_pLAYER_03_ZERG_ALLY, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_03_ZERG_ALLY, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_03_ZERG_ALLY, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
PlayerModifyPropertyInt(gv_pLAYER_05_ZERG_ALLY, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_05_ZERG_ALLY, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_05_ZERG_ALLY, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init02Players_Init () {
gt_Init02Players = TriggerCreate("gt_Init02Players_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 03 Units
//--------------------------------------------------------------------------------------------------
bool gt_Init03Units_Func (bool testConds, bool runActions) {
int autoAED4CC6F_n;
int autoAED4CC6F_i;
int autoE734F9C5_n;
int autoE734F9C5_i;
// Actions
if (!runActions) {
return true;
}
UnitGroupLoopBegin(UnitGroup(null, c_playerAny, RegionFromId(5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_broodLordUnits, UnitGroupLoopCurrent());
}
UnitGroupLoopEnd();
UnitGroupLoopBegin(UnitGroup(null, c_playerAny, RegionFromId(6), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_viperUnits, UnitGroupLoopCurrent());
}
UnitGroupLoopEnd();
gv_mutaSpawner = UnitFromId(139);
libNtve_gf_MakeUnitInvulnerable(gv_mutaSpawner, true);
UnitSetState(gv_mutaSpawner, c_unitStateSelectable, false);
UnitSetState(gv_mutaSpawner, c_unitStateHighlightable, false);
UnitSetState(gv_mutaSpawner, c_unitStateTargetable, false);
UnitGroupLoopBegin(UnitGroup("Medivac", gv_pLAYER_02_DOMINION, RegionFromId(21), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitIssueOrder(UnitGroupLoopCurrent(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
}
UnitGroupLoopEnd();
autoAED4CC6F_n = 8;
for (autoAED4CC6F_i = 1; autoAED4CC6F_i <= autoAED4CC6F_n; autoAED4CC6F_i += 1) {
libNtve_gf_CreateUnitsAtPoint2(1, "MutaliskBroodlord", 0, gv_pLAYER_01_USER, PointFromId(40));
UnitGroupAdd(gv_backupMutaliskGroup, UnitLastCreated());
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 10.0);
libNtve_gf_PauseUnit(UnitLastCreated(), true);
libNtve_gf_ShowHideUnit(UnitLastCreated(), false);
}
autoE734F9C5_n = 3;
for (autoE734F9C5_i = 1; autoE734F9C5_i <= autoE734F9C5_n; autoE734F9C5_i += 1) {
libNtve_gf_CreateUnitsAtPoint2(1, "MutaliskViper", 0, gv_pLAYER_01_USER, PointFromId(124));
UnitGroupAdd(gv_viperGroup, UnitLastCreated());
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropHeight, 10.0);
libNtve_gf_PauseUnit(UnitLastCreated(), true);
libNtve_gf_ShowHideUnit(UnitLastCreated(), false);
}
UnitGroupLoopBegin(UnitGroup("BroodLord", gv_pLAYER_04_FERALZERG, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_feralBroodLordsGroup, UnitGroupLoopCurrent());
libNtve_gf_UnitSetVariation(UnitGroupLoopCurrent(), "BroodLord", 0, "");
}
UnitGroupLoopEnd();
CatalogFieldValueSet(c_gameCatalogUnit, "BroodLord", "Speed", gv_pLAYER_04_FERALZERG, "1");
UnitGroupLoopBegin(UnitGroup("Mutalisk", gv_pLAYER_04_FERALZERG, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitGroupAdd(gv_feralEscortGroup, UnitGroupLoopCurrent());
}
UnitGroupLoopEnd();
CatalogFieldValueSet(c_gameCatalogUnit, "Mutalisk", "Speed", gv_pLAYER_04_FERALZERG, "1");
UnitGroupLoopBegin(UnitGroup("CreepTumorUsed", gv_pLAYER_03_ZERG_ALLY, RegionFromId(6), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
CreepModify(UnitGetPosition(UnitGroupLoopCurrent()), 10.0, true, true);
}
UnitGroupLoopEnd();
UnitGroupLoopBegin(UnitGroup("CreepTumorUsed", gv_pLAYER_05_ZERG_ALLY, RegionFromId(5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);
}
UnitGroupLoopEnd();
UnitGroupRemove(gv_broodLordUnits, UnitFromId(206));
CreepModify(UnitGetPosition(UnitFromId(206)), 2.0, true, true);
libNtve_gf_ShowHideUnit(UnitFromId(206), false);
UnitGroupLoopBegin(UnitGroup("InfestedCocoon", 0, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitSetState(UnitGroupLoopCurrent(), c_unitStateStatusBar, false);
UnitSetState(UnitGroupLoopCurrent(), c_unitStateSelectable, false);
}
UnitGroupLoopEnd();
UnitGroupLoopBegin(UnitGroup("InfestationSpire", 0, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitSetState(UnitGroupLoopCurrent(), c_unitStateStatusBar, false);
}
UnitGroupLoopEnd();
UnitGroupLoopBegin(UnitGroup("RichMineralField", c_playerAny, RegionFromId(6), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
UnitSetState(UnitGroupLoopCurrent(), c_unitStateHighlightable, false);
UnitSetState(UnitGroupLoopCurrent(), c_unitStateSelectable, false);
UnitSetState(UnitGroupLoopCurrent(), c_unitStateTargetable, false);
libSwaC_gf_SetUnitInfoTextCampaign(UnitGroupLoopCurrent(), null, StringExternal("Param/Value/DDB6F5C1"), null);
}
UnitGroupLoopEnd();
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init03Units_Init () {
gt_Init03Units = TriggerCreate("gt_Init03Units_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 04 Music/Sound
//--------------------------------------------------------------------------------------------------
bool gt_Init04MusicSound_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
gv_mapMusicTrack = libSwaC_gf_MissionDefaultMusic();
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, gv_mapMusicTrack, c_soundtrackCueAny, c_soundtrackIndexAny, true);
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_BraxisAlpha", c_soundtrackCueAny, c_soundtrackIndexAny, true);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init04MusicSound_Init () {
gt_Init04MusicSound = TriggerCreate("gt_Init04MusicSound_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 05 Environment
//--------------------------------------------------------------------------------------------------
bool gt_Init05Environment_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
GameTimeOfDaySet("08:00:00");
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(17));
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init05Environment_Init () {
gt_Init05Environment = TriggerCreate("gt_Init05Environment_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 06 Difficulties
//--------------------------------------------------------------------------------------------------
bool gt_Init06Difficulties_Func (bool testConds, bool runActions) {
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init06Difficulties_Init () {
gt_Init06Difficulties = TriggerCreate("gt_Init06Difficulties_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Init 07 Help
//--------------------------------------------------------------------------------------------------
bool gt_Init07Help_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_AddMissionTipUserData("Brood Lord");
libSwaC_gf_AddMissionTipUserData("Mutalisks");
libSwaC_gf_AddMissionTipUserData("Viper");
libSwaC_gf_AddMissionTipUserData("Abduct");
libSwaC_gf_AddMissionTipUserData("Disabling Cloud");
libSwaC_gf_AddMissionTipUserData("Siege Tanks");
libSwaC_gf_AddMissionTipUserData("Reinforcements (ZEvoMutalisk)");
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Mutalisk", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Marine", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Marauder", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Goliath", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("SiegeTank", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Thor", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("VikingFighter", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Wraith", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("Bunker", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("MissileTurret", false, gv_pLAYER_01_USER);
libSwaC_gf_AddUnitTypeToUnitHelpPanel("PlanetaryFortress", false, gv_pLAYER_01_USER);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Init07Help_Init () {
gt_Init07Help = TriggerCreate("gt_Init07Help_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: DEBUG - Skip to Part 2
//--------------------------------------------------------------------------------------------------
bool gt_DEBUGSkiptoPart2_Func (bool testConds, bool runActions) {
// Conditions
if (testConds) {
if (!((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true))) {
return false;
}
}
// Actions
if (!runActions) {
return true;
}
TriggerStop(gt_StartBroodLord);
TriggerEnable(gt_BroodLordReinforcements1, false);
TriggerEnable(gt_BroodLordReinforcements2, false);
TransmissionClearAll();
TriggerQueueClear(c_triggerQueueRemove);
TriggerExecute(gt_StartViperQ, true, false);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_DEBUGSkiptoPart2_Init () {
gt_DEBUGSkiptoPart2 = TriggerCreate("gt_DEBUGSkiptoPart2_Func");
TriggerAddEventChatMessage(gt_DEBUGSkiptoPart2, c_playerAny, "EVO2", true);
TriggerAddEventChatMessage(gt_DEBUGSkiptoPart2, c_playerAny, "s2", true);
}
//--------------------------------------------------------------------------------------------------
// Trigger: Start Game Q
//--------------------------------------------------------------------------------------------------
bool gt_StartGameQ_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/F08DB9E6"), null, PointFromId(40));
gv_backupSuppressed = true;
TriggerQueueEnter();
TriggerExecute(gt_StartBroodLord, true, false);
TriggerQueueExit();
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_StartGameQ_Init () {
gt_StartGameQ = TriggerCreate("gt_StartGameQ_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Brood Lord - Music Cue
//--------------------------------------------------------------------------------------------------
bool gt_BroodLordMusicCue_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
SoundPlay(SoundLink("ZEvoMusicStinger", -1), PlayerGroupAll(), 100.0, 0.0);
SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, "ZEvoMusicAlt", c_soundtrackCueAny, c_soundtrackIndexAny, true);
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_BroodLordMusicCue_Init () {
gt_BroodLordMusicCue = TriggerCreate("gt_BroodLordMusicCue_Func");
}
//--------------------------------------------------------------------------------------------------
// Trigger: Catch Unit Spawns - Brood Lord
//--------------------------------------------------------------------------------------------------
bool gt_CatchUnitSpawnsBroodLord_Func (bool testConds, bool runActions) {
// Variable Declarations
unit lv_broodMutalisk;
// Variable Initialization
// Conditions
if (testConds) {
if (!((gv_broodLordActive == true))) {
return false;
}
if (!((UnitGetOwner(EventUnit()) == gv_pLAYER_01_USER))) {
return false;
}
if (!(((UnitGetType(EventUnit()) == "Mutalisk") || (UnitGetType(EventUnit()) == "BroodLord")))) {
return false;
}
}
// Actions
if (!runActions) {
return true;
}
if ((gv_inCinematic == true)) {
UnitGroupAdd(gv_cinematicTempUnits, EventUnit());
}
else {
if ((UnitGetType(EventUnit()) == "Mutalisk")) {
UnitGroupAdd(gv_mutaliskGroup, EventUnit());
if ((TriggerIsEnabled(gt_ObjectiveCollectBroodLordEssenceComplete) == false)) {
libNtve_gf_ReplaceUnit(EventUnit(), "MutaliskBroodlord", libNtve_ge_ReplaceUnitOptions_NewUnitssMax);
UnitGroupAdd(gv_mutaliskGroup, libNtve_gf_LastReplacedUnit());
}
else {
}
if ((TriggerIsEnabled(gt_BroodLordsMorphedQ) == true)) {
SoundPlayOnUnit(SoundLink("Event_MutaliskEvo_MutaliskBirth", -1), PlayerGroupAll(), EventUnit(), 0.0, 100.0, 0.0);
}
else {
}
}
else {
UnitGroupAdd(gv_broodLordsGroup, EventUnit());
}
}
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_CatchUnitSpawnsBroodLord_Init () {
gt_CatchUnitSpawnsBroodLord = TriggerCreate("gt_CatchUnitSpawnsBroodLord_Func");
TriggerAddEventUnitRegion(gt_CatchUnitSpawnsBroodLord, null, RegionFromId(5), true);
}
//--------------------------------------------------------------------------------------------------
// Trigger: Start Brood Lord
//--------------------------------------------------------------------------------------------------
bool gt_StartBroodLord_Func (bool testConds, bool runActions) {
// Variable Declarations
unitgroup lv_feralUnits;
// Variable Initialization
lv_feralUnits = UnitGroupEmpty();
// Actions
if (!runActions) {
return true;
}
gf_SpawnMutalisks(6, 0.5);
Wait(4.0, c_timeGame);