-
Notifications
You must be signed in to change notification settings - Fork 12
/
MapScript.galaxy
5953 lines (5234 loc) · 259 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: Fire in the Sky
//
//==================================================================================================
include "TriggerLibs/NativeLib"
include "TriggerLibs/LibertyLib"
include "TriggerLibs/SwarmLib"
include "TriggerLibs/SwarmCampaignLib"
include "ai55EC7BB9"
include "ai869ED511"
//--------------------------------------------------------------------------------------------------
// Library Initialization
//--------------------------------------------------------------------------------------------------
void InitLibs () {
libNtve_InitLib();
libLbty_InitLib();
libHots_InitLib();
libSwaC_InitLib();
}
//--------------------------------------------------------------------------------------------------
// Constants
//--------------------------------------------------------------------------------------------------
const int gv_pLAYER_01_USER = 1;
const int gv_pLAYER_02_TERRAN_RED = 2;
const int gv_pLAYER_03_TERRAN_TEAL = 3;
const int gv_pLAYER_04_GORGON = 4;
const int gv_pLAYER_05_DEAD_NEST = 5;
const int gv_pLAYER_06_ACTIVE_NEST = 6;
const int gv_pLAYER_07_TERRAN_YELLOW = 7;
const int gv_pLAYER_08_ZERG_BIOMASS = 8;
const fixed gv_c_ScourgeActivationRange = 5.0;
const int gv_gorgonsDestroyedQuota = 7;
const int gv_scourgeNestsGoal = 7;
const int gv_objectiveZergBiomassGoal = 3;
//--------------------------------------------------------------------------------------------------
// Global Variables
//--------------------------------------------------------------------------------------------------
bool gv_gameOver;
bool gv_inCinematic;
unit gv_kerrigan;
playergroup gv_dominionPlayers;
int gv_transmissionInterrutable;
unit[11] gv_scourgeNestUnit;
int[11] gv_scourgeNestPing;
bool[11] gv_scourgeNestActivated;
bool gv_scourgeNestStarted;
int gv_scourgeNestMapTotal;
region[9] gv_scourgeNestEarlyGorgon;
int gv_clear2FireCheckCount;
int gv_tag_TumorHasTumors;
actor gv_helper_L2Tumor;
int gv_transmission_ProximityWarning;
unit gv_tHE_ONE_GORGON;
int gv_gorgonPing;
int gv_gorgonWarningPing;
bool gv_gorgonBeingSpawned;
int gv_scene_GorgonLaunch;
fixed gv_gorgonSpeed;
int gv_launchTimeIncrement;
timer gv_gorgonDestroyedQuicklyTimer;
bool gv_gorgonDestructionInProgress;
unit gv_gorgonTarget;
int gv_gorgonAttacker;
unit gv_rescuedQueen;
unitgroup gv_firebats;
point[7] gv_finalDropPod_ImpactPoint;
unit gv_finalScourgeNestUnit;
unitgroup gv_scourgeNestGroup;
unitgroup gv_finalDropGroup;
unitgroup gv_ravenTumorHunterForce;
int gv_unitsLostToGorgon;
int gv_orbComsDestroyed;
int gv_kerriganKills;
int gv_largestZergForce;
int gv_gorgonsDestroyedForAchievement;
int gv_mostGorgonsDestroyedInAchievementTime;
int gv_gorgonsDestroyed;
int gv_objectiveDestroyGorgons;
int gv_scourgeNestsActivatedCount;
int[11] gv_scourgeNest_Tag;
actor[11] gv_scourgeNest_Helper;
point[11] gv_scourgeNest_Point;
int gv_objectiveActivateScourgeNests;
int gv_objectiveFindZergBiomass;
int gv_objectiveZergBiomassFound;
unitgroup gv_cinematicHiddenUnits;
unitgroup gv_cinematicTempUnits;
bool gv_cinematicCompleted;
unitgroup gv_introZerg;
actor gv_introReticle;
int gv_introTextTag;
sound gv_introFlashbackSound;
int gv_introMusicState;
bool gv_midCinematicCompleted;
unitgroup gv_midHiddenUnitGroup;
unit gv_midSpawnedCruiser;
unit gv_midCinematicScourgeNest;
bool gv_midMusicFinished;
sound gv_midScourgeStinger;
sound gv_midCruiserStinger;
bool gv_victoryCinematicCompleted;
unitgroup gv_victoryHiddenUnitGroup2;
unit gv_victoryKerrigan;
sound gv_victorySound;
void InitGlobals () {
int init_i;
gv_dominionPlayers = PlayerGroupEmpty();
gv_transmissionInterrutable = c_invalidTransmissionId;
for (init_i = 0; init_i <= 10; init_i += 1) {
gv_scourgeNestPing[init_i] = c_invalidPingId;
}
gv_clear2FireCheckCount = 1;
gv_tag_TumorHasTumors = c_textTagNone;
gv_transmission_ProximityWarning = c_invalidTransmissionId;
gv_gorgonPing = c_invalidPingId;
gv_gorgonWarningPing = c_invalidPingId;
gv_gorgonDestroyedQuicklyTimer = TimerCreate();
gv_firebats = UnitGroupEmpty();
gv_scourgeNestGroup = UnitGroupEmpty();
gv_finalDropGroup = UnitGroupEmpty();
gv_ravenTumorHunterForce = UnitGroupEmpty();
gv_objectiveDestroyGorgons = c_invalidObjectiveId;
for (init_i = 0; init_i <= 10; init_i += 1) {
gv_scourgeNest_Tag[init_i] = c_textTagNone;
}
gv_objectiveActivateScourgeNests = c_invalidObjectiveId;
gv_objectiveFindZergBiomass = c_invalidObjectiveId;
gv_cinematicHiddenUnits = UnitGroupEmpty();
gv_cinematicTempUnits = UnitGroupEmpty();
gv_introZerg = UnitGroupEmpty();
gv_introTextTag = c_textTagNone;
gv_midHiddenUnitGroup = UnitGroupEmpty();
gv_victoryHiddenUnitGroup2 = UnitGroupEmpty();
}
//--------------------------------------------------------------------------------------------------
// Global Function Declarations
//--------------------------------------------------------------------------------------------------
void gf_CreateTerranDropPod (unitgroup lp_dROPGROUP, point lp_lZ, int lp_pLAYER);
int gf_CreepAreaOnMap (fixed lp_stepSize);
void gf_CreateScourgeNestPing (point lp_lOC);
void gf_ShowHelperAtNest (int lp_nestIndex);
void gf_HideHelperAtNest (int lp_nestIndex);
void gf_RevealNest (int lp_nestIndex);
void gf_FinishNest (int lp_nestIndex);
void gf_ScourgeNestAttack (int lp_nestIndex);
int gf_ScourgeNestAvailableToShoot ();
bool gf_GorgonAvailableToAttack ();
void gf_FinalDrop_SetPoints (unit lp_lastNestStanding);
fixed gf_CreepPercent ();
//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_Initialization;
trigger gt_Init01Technology;
trigger gt_Init02Players;
trigger gt_Init03Units;
trigger gt_Init03aScourgeNests;
trigger gt_Init04MusicSound;
trigger gt_Init05Environment;
trigger gt_Init06Difficulties;
trigger gt_Init07Help;
trigger gt_PrepareKerriganRevive;
trigger gt_StartGameQ;
trigger gt_BonusObjectiveRevealQ;
trigger gt_TeachCreepTumor;
trigger gt_ScourgeNestCycle;
trigger gt_ScourgeNestVisualUpdate;
trigger gt_ScourgeNestTumorDeath;
trigger gt_ScourgeNestContructionStarted;
trigger gt_ScourgeNestContructionCompleted;
trigger gt_CreepTumorTargetCursorEnter;
trigger gt_CreepTumorTargetCursorLeave;
trigger gt_GorgonClosetoBase;
trigger gt_GorgonProximityWARNING;
trigger gt_GorgonProximityWarningQ;
trigger gt_TransmissionGorgonCloseQ;
trigger gt_GorgonLaunchSchedule;
trigger gt_GorgonLaunchPlay;
trigger gt_GorgonFirstCruiser01;
trigger gt_GorgonFirstCruiser02;
trigger gt_TransmissionGorgonCreatedQ;
trigger gt_GorgonAIStarted;
trigger gt_GorgonAIEnd;
trigger gt_GorgonAI;
trigger gt_GorgonDestroyed;
trigger gt_TransmissionGorgonDestroyedQ;
trigger gt_StartFirebatAttacks;
trigger gt_ZergRescueTop;
trigger gt_ZergRescueCenter;
trigger gt_ZergRescueBottom;
trigger gt_QueenRescue01;
trigger gt_QueenRescue02;
trigger gt_SendTransmissionQueenThanksYouQ;
trigger gt_FirebatAttacked;
trigger gt_SiegeTankEntersSiegeMode;
trigger gt_CenterDropPods;
trigger gt_RavenTumorHunterForce;
trigger gt_TransmissionDominionRavenQ;
trigger gt_SetLastScourgeNest;
trigger gt_DropFinalPods;
trigger gt_TransmissionFinalDropPodsQ;
trigger gt_StartAI;
trigger gt_StartUpgradesHard;
trigger gt_AIGiveMinerals;
trigger gt_AIGiveGas;
trigger gt_TipMissionHelpQ;
trigger gt_TransmissionScourgeNestActivatedQ;
trigger gt_TransmissionFirstScourgeNestQ;
trigger gt_TransmissionAttackWaveScourgeNestTargetQ;
trigger gt_SendTransmissionQueenThanksYouQ2;
trigger gt_TransmissionZergBiomassFoundQ;
trigger gt_TransmissionFirebatsIntroQ;
trigger gt_TransmissionSupplylineBreakersQ;
trigger gt_TransmissionNorthDropPodsQ;
trigger gt_VictorySequence;
trigger gt_DefeatBaseDead;
trigger gt_Victory;
trigger gt_Defeat;
trigger gt_VictoryCheat;
trigger gt_DefeatCheat;
trigger gt_AchievementUnitsLosttoGorgon;
trigger gt_AchievementDestroyOrbitalCommandsNH;
trigger gt_AchievementDestroyXGorgonsinYsecondsH;
trigger gt_GorgonDestroyedforAchievement;
trigger gt_UnitsLostToGorgon;
trigger gt_LargestZergForce;
trigger gt_ObjectiveDestroyGorgonsCreate;
trigger gt_ObjectiveDestroyGorgonsUpdate;
trigger gt_ObjectiveDestroyGorgonsComplete;
trigger gt_ObjectiveActivateScourgeNestCreate;
trigger gt_ObjectiveActivateScourgeNestUpdate;
trigger gt_ObjectiveActivateScourgeNestComplete;
trigger gt_ObjectiveFindZergBiomassCreate;
trigger gt_ObjectiveFindZergBiomassUpdate;
trigger gt_ObjectiveFindZergBiomassComplete;
trigger gt_IntroQ;
trigger gt_IntroSetup;
trigger gt_IntroCinematic;
trigger gt_IntroCinematicEnd;
trigger gt_IntroCleanup;
trigger gt_IntroZerg;
trigger gt_IntroExplosions;
trigger gt_IntroZergBase;
trigger gt_IntroGorgonLaunch;
trigger gt_IntroMusic1;
trigger gt_IntroMusic2;
trigger gt_MidQ;
trigger gt_MidSetup;
trigger gt_MidCinematic;
trigger gt_MidCinematicEnd;
trigger gt_MidCleanup;
trigger gt_MidScourgeNestAttack;
trigger gt_MidMusic;
trigger gt_VictoryQ;
trigger gt_VictorySetup;
trigger gt_VictoryCinematic;
trigger gt_VictoryCinematicEnd;
trigger gt_VictoryCleanup;
trigger gt_VictoryDominion;
trigger gt_VictoryDominionRetreat;
trigger gt_VictoryKerrigan;
trigger gt_VictroryDroppods;
trigger gt_VictoryCameras;
//--------------------------------------------------------------------------------------------------
// Custom AI Functions
//--------------------------------------------------------------------------------------------------
string[17] cai_playerAI;
//--------------------------------------------------------------------------------------------------
void InitCustomAI () {
int init_i;
for (init_i = 0; init_i <= 16; init_i += 1) {
cai_playerAI[init_i] = null;
}
}
//--------------------------------------------------------------------------------------------------
void cai_start (string ai, int p) {
if (p < 0 || p >= 16) {
return;
}
cai_playerAI[p] = ai;
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_start(p); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_start(p); }
}
//--------------------------------------------------------------------------------------------------
void cai_setDefGather (int p, point val) {
if (p < 0 || p >= 16) {
return;
}
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_setDefGather(p, val); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_setDefGather(p, val); }
}
//--------------------------------------------------------------------------------------------------
string cai_getCustomData (int p) {
if (p < 0 || p >= 16) {
return null;
}
if (cai_playerAI[p] == "ai55EC7BB9") { return ai55EC7BB9_getCustomData(p); }
if (cai_playerAI[p] == "ai869ED511") { return ai869ED511_getCustomData(p); }
return null;
}
//--------------------------------------------------------------------------------------------------
wave cai_getLastWave (int p) {
if (p < 0 || p >= 16) {
return null;
}
if (cai_playerAI[p] == "ai55EC7BB9") { return ai55EC7BB9_getLastWave(p); }
if (cai_playerAI[p] == "ai869ED511") { return ai869ED511_getLastWave(p); }
return null;
}
//--------------------------------------------------------------------------------------------------
void cai_waves_run (int p, playergroup target) {
if (p < 0 || p >= 16) {
return;
}
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_waves_run(p, target); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_waves_run(p, target); }
}
//--------------------------------------------------------------------------------------------------
void cai_waves_enable (int p, bool val) {
if (p < 0 || p >= 16) {
return;
}
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_waves_enable(p, val); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_waves_enable(p, val); }
}
//--------------------------------------------------------------------------------------------------
void cai_waves_stop (string ai) {
if (ai == "ai55EC7BB9") { ai55EC7BB9_waves_stop(); }
if (ai == "ai869ED511") { ai869ED511_waves_stop(); }
}
//--------------------------------------------------------------------------------------------------
void cai_wave_run (int w, int p, playergroup target, bool wait) {
if (p < 0 || p >= 16) {
return;
}
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_wave_run(w, p, target, wait); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_wave_run(w, p, target, wait); }
}
//--------------------------------------------------------------------------------------------------
void cai_wave_enable (int w, int p, bool val) {
if (p < 0 || p >= 16) {
return;
}
if (cai_playerAI[p] == "ai55EC7BB9") { ai55EC7BB9_wave_enable(w, p, val); }
if (cai_playerAI[p] == "ai869ED511") { ai869ED511_wave_enable(w, p, val); }
}
//--------------------------------------------------------------------------------------------------
bool cai_wave_isEnabled (int w, int p) {
if (p < 0 || p >= 16) {
return false;
}
if (cai_playerAI[p] == "ai55EC7BB9") { return ai55EC7BB9_wave_isEnabled(w, p); }
if (cai_playerAI[p] == "ai869ED511") { return ai869ED511_wave_isEnabled(w, p); }
return false;
}
//--------------------------------------------------------------------------------------------------
unitgroup cai_wave_createdUnits (int w, int p) {
if (p < 0 || p >= 16) {
return null;
}
if (cai_playerAI[p] == "ai55EC7BB9") { return ai55EC7BB9_wave_createdUnits(w, p); }
if (cai_playerAI[p] == "ai869ED511") { return ai869ED511_wave_createdUnits(w, p); }
return null;
}
//--------------------------------------------------------------------------------------------------
wave cai_wave_createdWave (int w, int p) {
if (p < 0 || p >= 16) {
return null;
}
if (cai_playerAI[p] == "ai55EC7BB9") { return ai55EC7BB9_wave_createdWave(w, p); }
if (cai_playerAI[p] == "ai869ED511") { return ai869ED511_wave_createdWave(w, p); }
return null;
}
//--------------------------------------------------------------------------------------------------
void cai_startall () {
cai_start("ai55EC7BB9", 2);
cai_start("ai869ED511", 3);
AICampaignStart(4);
AICampaignStart(5);
AICampaignStart(6);
AICampaignStart(7);
AICampaignStart(8);
}
//--------------------------------------------------------------------------------------------------
void cai_runall () {
playergroup target = PlayerGroupEmpty();
PlayerGroupClear(target);
PlayerGroupAdd(target, 1);
cai_waves_run(2, target);
PlayerGroupClear(target);
PlayerGroupAdd(target, 1);
cai_waves_run(3, target);
}
//--------------------------------------------------------------------------------------------------
// Global Functions
//--------------------------------------------------------------------------------------------------
trigger auto_gf_CreateTerranDropPod_Trigger = null;
unitgroup auto_gf_CreateTerranDropPod_lp_dROPGROUP;
point auto_gf_CreateTerranDropPod_lp_lZ;
int auto_gf_CreateTerranDropPod_lp_pLAYER;
void gf_CreateTerranDropPod (unitgroup lp_dROPGROUP, point lp_lZ, int lp_pLAYER) {
auto_gf_CreateTerranDropPod_lp_dROPGROUP = lp_dROPGROUP;
auto_gf_CreateTerranDropPod_lp_lZ = lp_lZ;
auto_gf_CreateTerranDropPod_lp_pLAYER = lp_pLAYER;
if (auto_gf_CreateTerranDropPod_Trigger == null) {
auto_gf_CreateTerranDropPod_Trigger = TriggerCreate("auto_gf_CreateTerranDropPod_TriggerFunc");
}
TriggerExecute(auto_gf_CreateTerranDropPod_Trigger, false, false);
}
bool auto_gf_CreateTerranDropPod_TriggerFunc (bool testConds, bool runActions) {
unitgroup lp_dROPGROUP = auto_gf_CreateTerranDropPod_lp_dROPGROUP;
point lp_lZ = auto_gf_CreateTerranDropPod_lp_lZ;
int lp_pLAYER = auto_gf_CreateTerranDropPod_lp_pLAYER;
// Automatic Variable Declarations
// Implementation
libSwaC_gf_CreateDropPod(libSwaC_ge_DropPodRace_Terran, lp_lZ, lp_dROPGROUP, true, lp_pLAYER);
AISetGroupScriptControlled(lp_dROPGROUP, false);
return true;
}
int gf_CreepAreaOnMap (fixed lp_stepSize) {
// Variable Declarations
fixed lv_x;
fixed lv_y;
fixed lv_endx;
fixed lv_endy;
int lv_acres;
// Automatic Variable Declarations
// Variable Initialization
lv_x = PointGetX(RegionGetBoundsMin(RegionPlayableMap()));
lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
lv_endx = PointGetX(RegionGetBoundsMax(RegionPlayableMap()));
lv_endy = PointGetY(RegionGetBoundsMax(RegionPlayableMap()));
// Implementation
while ((lv_x <= lv_endx)) {
lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
while ((lv_y <= lv_endy)) {
if ((CreepIsPresent(Point(lv_x, lv_y)) == true)) {
lv_acres += 1;
}
lv_y += lp_stepSize;
}
lv_x += lp_stepSize;
}
return lv_acres;
}
void gf_CreateScourgeNestPing (point lp_lOC) {
// Automatic Variable Declarations
// Implementation
libSwaC_gf_CreateObjectivePing(true, lp_lOC, StringExternal("Param/Value/8A1AB149"));
PingSetVisible(PingLastCreated(), false);
}
trigger auto_gf_ShowHelperAtNest_Trigger = null;
int auto_gf_ShowHelperAtNest_lp_nestIndex;
void gf_ShowHelperAtNest (int lp_nestIndex) {
auto_gf_ShowHelperAtNest_lp_nestIndex = lp_nestIndex;
if (auto_gf_ShowHelperAtNest_Trigger == null) {
auto_gf_ShowHelperAtNest_Trigger = TriggerCreate("auto_gf_ShowHelperAtNest_TriggerFunc");
}
TriggerExecute(auto_gf_ShowHelperAtNest_Trigger, false, false);
}
bool auto_gf_ShowHelperAtNest_TriggerFunc (bool testConds, bool runActions) {
int lp_nestIndex = auto_gf_ShowHelperAtNest_lp_nestIndex;
// Automatic Variable Declarations
// Implementation
if ((gv_scourgeNest_Helper[lp_nestIndex] == null) && (gv_scourgeNest_Tag[lp_nestIndex] == c_textTagNone)) {
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergMainObjective, libSwaC_ge_CampaginReticleSize_Medium, null, gv_scourgeNestUnit[lp_nestIndex], "Ref_Center");
gv_scourgeNest_Helper[lp_nestIndex] = libNtve_gf_ActorLastCreated();
}
return true;
}
trigger auto_gf_HideHelperAtNest_Trigger = null;
int auto_gf_HideHelperAtNest_lp_nestIndex;
void gf_HideHelperAtNest (int lp_nestIndex) {
auto_gf_HideHelperAtNest_lp_nestIndex = lp_nestIndex;
if (auto_gf_HideHelperAtNest_Trigger == null) {
auto_gf_HideHelperAtNest_Trigger = TriggerCreate("auto_gf_HideHelperAtNest_TriggerFunc");
}
TriggerExecute(auto_gf_HideHelperAtNest_Trigger, false, false);
}
bool auto_gf_HideHelperAtNest_TriggerFunc (bool testConds, bool runActions) {
int lp_nestIndex = auto_gf_HideHelperAtNest_lp_nestIndex;
// Automatic Variable Declarations
// Implementation
if ((gv_scourgeNest_Tag[lp_nestIndex] != c_textTagNone)) {
TextTagDestroy(gv_scourgeNest_Tag[lp_nestIndex]);
gv_scourgeNest_Tag[lp_nestIndex] = c_textTagNone;
}
if ((gv_scourgeNest_Helper[lp_nestIndex] != null)) {
libNtve_gf_KillModel(gv_scourgeNest_Helper[lp_nestIndex]);
gv_scourgeNest_Helper[lp_nestIndex] = null;
}
return true;
}
trigger auto_gf_RevealNest_Trigger = null;
int auto_gf_RevealNest_lp_nestIndex;
void gf_RevealNest (int lp_nestIndex) {
auto_gf_RevealNest_lp_nestIndex = lp_nestIndex;
if (auto_gf_RevealNest_Trigger == null) {
auto_gf_RevealNest_Trigger = TriggerCreate("auto_gf_RevealNest_TriggerFunc");
}
TriggerExecute(auto_gf_RevealNest_Trigger, false, false);
}
bool auto_gf_RevealNest_TriggerFunc (bool testConds, bool runActions) {
int lp_nestIndex = auto_gf_RevealNest_lp_nestIndex;
// Variable Declarations
point lv_nEST_POSITION;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
if ((UnitIsAlive(gv_scourgeNestUnit[lp_nestIndex]) == true)) {
libNtve_gf_ShareVisionofUnit(gv_scourgeNestUnit[lp_nestIndex], true, gv_pLAYER_01_USER);
libSwaC_gf_CreateObjectivePing(true, UnitGetPosition(gv_scourgeNestUnit[lp_nestIndex]), StringExternal("Param/Value/0FD53926"));
gv_scourgeNestPing[lp_nestIndex] = PingLastCreated();
gf_ShowHelperAtNest(lp_nestIndex);
libSwaC_gf_AddRemoveObjectiveRePing(gv_scourgeNestPing[lp_nestIndex], true, 240.0, 120.0);
}
return true;
}
trigger auto_gf_FinishNest_Trigger = null;
int auto_gf_FinishNest_lp_nestIndex;
void gf_FinishNest (int lp_nestIndex) {
auto_gf_FinishNest_lp_nestIndex = lp_nestIndex;
if (auto_gf_FinishNest_Trigger == null) {
auto_gf_FinishNest_Trigger = TriggerCreate("auto_gf_FinishNest_TriggerFunc");
}
TriggerExecute(auto_gf_FinishNest_Trigger, false, false);
}
bool auto_gf_FinishNest_TriggerFunc (bool testConds, bool runActions) {
int lp_nestIndex = auto_gf_FinishNest_lp_nestIndex;
// Variable Declarations
point lv_nEST_POSITION;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
if ((gv_scourgeNestPing[lp_nestIndex] != c_invalidPingId)) {
PingDestroy(gv_scourgeNestPing[lp_nestIndex]);
gv_scourgeNestPing[lp_nestIndex] = c_invalidPingId;
}
gf_HideHelperAtNest(lp_nestIndex);
return true;
}
trigger auto_gf_ScourgeNestAttack_Trigger = null;
int auto_gf_ScourgeNestAttack_lp_nestIndex;
void gf_ScourgeNestAttack (int lp_nestIndex) {
auto_gf_ScourgeNestAttack_lp_nestIndex = lp_nestIndex;
if (auto_gf_ScourgeNestAttack_Trigger == null) {
auto_gf_ScourgeNestAttack_Trigger = TriggerCreate("auto_gf_ScourgeNestAttack_TriggerFunc");
}
TriggerExecute(auto_gf_ScourgeNestAttack_Trigger, false, false);
}
bool auto_gf_ScourgeNestAttack_TriggerFunc (bool testConds, bool runActions) {
int lp_nestIndex = auto_gf_ScourgeNestAttack_lp_nestIndex;
// Automatic Variable Declarations
// Implementation
while (!((gv_inCinematic == false) && (gv_gameOver == false) && (gv_clear2FireCheckCount == 0) && (gf_GorgonAvailableToAttack() == true))) {
Wait(0.5, c_timeGame);
}
gv_clear2FireCheckCount += 1;
gv_gorgonAttacker = lp_nestIndex;
Wait(0.5, c_timeGame);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(gv_scourgeNestUnit[lp_nestIndex]), c_animNameDefault, "Stand", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
TransmissionClear(gv_transmission_ProximityWarning);
Wait(0.5, c_timeGame);
UnitSetState(gv_tHE_ONE_GORGON, c_unitStateTargetable, true);
UnitIssueOrder(gv_scourgeNestUnit[lp_nestIndex], OrderTargetingUnit(AbilityCommand("attack", 0), gv_tHE_ONE_GORGON), c_orderQueueReplace);
UnitGroupRemove(gv_scourgeNestGroup, gv_scourgeNestUnit[lp_nestIndex]);
gf_FinishNest(lp_nestIndex);
return true;
}
int gf_ScourgeNestAvailableToShoot () {
// Variable Declarations
int lv_loopVar;
// Automatic Variable Declarations
const int autoB8676095_ae = gv_scourgeNestsGoal;
const int autoB8676095_ai = 1;
// Variable Initialization
// Implementation
lv_loopVar = 1;
for ( ; ( (autoB8676095_ai >= 0 && lv_loopVar <= autoB8676095_ae) || (autoB8676095_ai < 0 && lv_loopVar >= autoB8676095_ae) ) ; lv_loopVar += autoB8676095_ai ) {
if ((UnitIsAlive(gv_scourgeNestUnit[lv_loopVar]) == true) && ((UnitGroupCount(UnitGroup("CreepTumor", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("CreepTumorBurrowed", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("CreepTumorUsed", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("Hatchery", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("Lair", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("Hive", c_playerAny, gv_scourgeNestEarlyGorgon[lv_loopVar], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
return lv_loopVar;
}
}
return 0;
}
bool gf_GorgonAvailableToAttack () {
// Automatic Variable Declarations
// Implementation
if (((gv_tHE_ONE_GORGON == null) || (UnitIsAlive(gv_tHE_ONE_GORGON) == false))) {
return false;
}
return (gv_gorgonAttacker == 0);
}
void gf_FinalDrop_SetPoints (unit lp_lastNestStanding) {
// Automatic Variable Declarations
unit autoE1005D75_val;
// Implementation
autoE1005D75_val = lp_lastNestStanding;
if (autoE1005D75_val == gv_scourgeNestUnit[2]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(733);
gv_finalDropPod_ImpactPoint[2] = PointFromId(1269);
gv_finalDropPod_ImpactPoint[3] = PointFromId(1277);
}
else if (autoE1005D75_val == gv_scourgeNestUnit[3]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(31);
gv_finalDropPod_ImpactPoint[2] = PointFromId(105);
gv_finalDropPod_ImpactPoint[3] = PointFromId(107);
}
else if (autoE1005D75_val == gv_scourgeNestUnit[4]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(1347);
gv_finalDropPod_ImpactPoint[2] = PointFromId(1348);
gv_finalDropPod_ImpactPoint[3] = PointFromId(1349);
}
else if (autoE1005D75_val == gv_scourgeNestUnit[5]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(1350);
gv_finalDropPod_ImpactPoint[2] = PointFromId(1351);
gv_finalDropPod_ImpactPoint[3] = PointFromId(1352);
}
else if (autoE1005D75_val == gv_scourgeNestUnit[6]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(1344);
gv_finalDropPod_ImpactPoint[2] = PointFromId(1345);
gv_finalDropPod_ImpactPoint[3] = PointFromId(1346);
}
else if (autoE1005D75_val == gv_scourgeNestUnit[7]) {
gv_finalDropPod_ImpactPoint[1] = PointFromId(1353);
gv_finalDropPod_ImpactPoint[2] = PointFromId(1354);
gv_finalDropPod_ImpactPoint[3] = PointFromId(1355);
}
else {
}
}
fixed gf_CreepPercent () {
// Variable Declarations
fixed lv_mapArea;
int lv_creepArea;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_creepArea = gf_CreepAreaOnMap(1.0);
lv_mapArea = (libNtve_gf_WidthOfRegion(RegionPlayableMap()) * libNtve_gf_HeightOfRegion(RegionPlayableMap()));
return ((lv_creepArea / lv_mapArea) * 100);
}
//--------------------------------------------------------------------------------------------------
// Trigger: Initialization
//--------------------------------------------------------------------------------------------------
bool gt_Initialization_Func (bool testConds, bool runActions) {
// Automatic Variable Declarations
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_ULoadCampaignData("ZChar2");
TriggerExecute(gt_Init01Technology, true, true);
libSwaC_gf_PurchaseStorymodeTech();
TriggerExecute(gt_Init02Players, true, true);
TriggerExecute(gt_Init03Units, true, true);
TriggerExecute(gt_Init03aScourgeNests, true, true);
TriggerExecute(gt_Init04MusicSound, true, true);
TriggerExecute(gt_Init05Environment, true, true);
TriggerExecute(gt_Init06Difficulties, true, true);
TriggerExecute(gt_Init07Help, true, true);
TriggerExecute(gt_IntroQ, true, true);
TriggerExecute(gt_StartFirebatAttacks, true, false);
TriggerExecute(gt_StartGameQ, true, false);
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) {
// Automatic Variable Declarations
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
TechTreeUpgradeAllow(gv_pLAYER_02_TERRAN_RED, "HailstormMissilePods", true);
TechTreeUpgradeAllow(gv_pLAYER_03_TERRAN_TEAL, "HailstormMissilePods", true);
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_visionGroup;
// Automatic Variable Declarations
playergroup auto33FED383_g;
int auto33FED383_var;
// Variable Initialization
lv_visionGroup = PlayerGroupEmpty();
// Actions
if (!runActions) {
return true;
}
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_02_TERRAN_RED, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_03_TERRAN_TEAL, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_04_GORGON, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_05_DEAD_NEST, libNtve_ge_AllianceSetting_Ally);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_06_ACTIVE_NEST, libNtve_ge_AllianceSetting_Ally);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_07_TERRAN_YELLOW, libNtve_ge_AllianceSetting_Enemy);
libNtve_gf_SetAlliance(gv_pLAYER_01_USER, gv_pLAYER_08_ZERG_BIOMASS, libNtve_ge_AllianceSetting_Neutral);
PlayerGroupAdd(gv_dominionPlayers, gv_pLAYER_02_TERRAN_RED);
PlayerGroupAdd(gv_dominionPlayers, gv_pLAYER_03_TERRAN_TEAL);
PlayerGroupAdd(gv_dominionPlayers, gv_pLAYER_07_TERRAN_YELLOW);
auto33FED383_g = gv_dominionPlayers;
auto33FED383_var = -1;
while (true) {
auto33FED383_var = PlayerGroupNextPlayer(auto33FED383_g, auto33FED383_var);
if (auto33FED383_var < 0) { break; }
libNtve_gf_SetAlliance(auto33FED383_var, gv_pLAYER_03_TERRAN_TEAL, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable);
libNtve_gf_SetAlliance(auto33FED383_var, gv_pLAYER_05_DEAD_NEST, libNtve_ge_AllianceSetting_Neutral);
libNtve_gf_SetAlliance(auto33FED383_var, gv_pLAYER_06_ACTIVE_NEST, libNtve_ge_AllianceSetting_Neutral);
libNtve_gf_SetAlliance(auto33FED383_var, gv_pLAYER_07_TERRAN_YELLOW, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable);
libNtve_gf_SetAlliance(auto33FED383_var, gv_pLAYER_08_ZERG_BIOMASS, libNtve_ge_AllianceSetting_Neutral);
PlayerSetColorIndex(auto33FED383_var, 1, true);
}
libNtve_gf_SetAlliance(gv_pLAYER_04_GORGON, gv_pLAYER_02_TERRAN_RED, libNtve_ge_AllianceSetting_AllyWithSharedVision);
libNtve_gf_SetAlliance(gv_pLAYER_04_GORGON, gv_pLAYER_03_TERRAN_TEAL, libNtve_ge_AllianceSetting_AllyWithSharedVision);
libNtve_gf_SetAlliance(gv_pLAYER_04_GORGON, gv_pLAYER_05_DEAD_NEST, libNtve_ge_AllianceSetting_Neutral);
libNtve_gf_SetAlliance(gv_pLAYER_04_GORGON, gv_pLAYER_06_ACTIVE_NEST, libNtve_ge_AllianceSetting_NeutralWithSharedVision);
libNtve_gf_SetAlliance(gv_pLAYER_04_GORGON, gv_pLAYER_07_TERRAN_YELLOW, libNtve_ge_AllianceSetting_AllyWithSharedVision);
libNtve_gf_SetAlliance(gv_pLAYER_05_DEAD_NEST, gv_pLAYER_06_ACTIVE_NEST, libNtve_ge_AllianceSetting_Neutral);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_02_TERRAN_RED);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_03_TERRAN_TEAL);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_04_GORGON);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_05_DEAD_NEST);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_06_ACTIVE_NEST);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_07_TERRAN_YELLOW);
PlayerGroupAdd(lv_visionGroup, gv_pLAYER_08_ZERG_BIOMASS);
libSwaC_gf_ShareVisionAmongPlayers(lv_visionGroup);
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 250);
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropVespene, c_playerPropOperSetTo, 100);
PlayerModifyPropertyInt(gv_pLAYER_02_TERRAN_RED, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_02_TERRAN_RED, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_03_TERRAN_TEAL, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
PlayerModifyPropertyInt(gv_pLAYER_03_TERRAN_TEAL, c_playerPropVespene, c_playerPropOperSetTo, 5000);
PlayerSetState(gv_pLAYER_05_DEAD_NEST, 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) {
// Automatic Variable Declarations
unitgroup autoD86F3D3F_g;
int autoD86F3D3F_u;
unit autoD86F3D3F_var;
unitgroup autoA41A0CF0_g;
int autoA41A0CF0_u;
unit autoA41A0CF0_var;
unitgroup auto8B97F196_g;
int auto8B97F196_u;
unit auto8B97F196_var;
unitgroup auto2A9E8D8C_g;
int auto2A9E8D8C_u;
unit auto2A9E8D8C_var;
unitgroup auto9AC18241_g;
int auto9AC18241_u;
unit auto9AC18241_var;
unitgroup autoBB441A2D_g;
int autoBB441A2D_u;
unit autoBB441A2D_var;
unitgroup autoBBD51A65_g;
int autoBBD51A65_u;
unit autoBBD51A65_var;
unitgroup auto0A3050CC_g;
int auto0A3050CC_u;
unit auto0A3050CC_var;
unitgroup autoFB709A3B_g;
int autoFB709A3B_u;
unit autoFB709A3B_var;
unitgroup autoF701BE02_g;
int autoF701BE02_u;
unit autoF701BE02_var;
unitgroup autoADA484F0_g;
int autoADA484F0_u;
unit autoADA484F0_var;
// Actions
if (!runActions) {
return true;
}
libSwaC_gf_CreateHero2(PointFromId(16), gv_pLAYER_01_USER, libSwaC_ge_HeroUnit_Kerrigan, PointGetFacing(PointFromId(16)), 0, libSwaC_ge_KerriganCreatePurpose_GamePlay);
gv_kerrigan = UnitLastCreated();
libSwaC_gf_SetHeroPanelUnit(1, UnitLastCreated());
AISetUnitScriptControlled(UnitFromId(253), true);
autoD86F3D3F_g = UnitGroup("Firebat", gv_pLAYER_07_TERRAN_YELLOW, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD86F3D3F_u = UnitGroupCount(autoD86F3D3F_g, c_unitCountAll);
for (;; autoD86F3D3F_u -= 1) {
autoD86F3D3F_var = UnitGroupUnitFromEnd(autoD86F3D3F_g, autoD86F3D3F_u);
if (autoD86F3D3F_var == null) { break; }
UnitGroupAdd(gv_firebats, autoD86F3D3F_var);
}
autoA41A0CF0_g = UnitGroup(null, gv_pLAYER_07_TERRAN_YELLOW, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoA41A0CF0_u = UnitGroupCount(autoA41A0CF0_g, c_unitCountAll);
for (;; autoA41A0CF0_u -= 1) {
autoA41A0CF0_var = UnitGroupUnitFromEnd(autoA41A0CF0_g, autoA41A0CF0_u);
if (autoA41A0CF0_var == null) { break; }
UnitGroupAdd(gv_ravenTumorHunterForce, autoA41A0CF0_var);
}
auto8B97F196_g = UnitGroup("SCV", gv_pLAYER_07_TERRAN_YELLOW, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto8B97F196_u = UnitGroupCount(auto8B97F196_g, c_unitCountAll);
for (;; auto8B97F196_u -= 1) {
auto8B97F196_var = UnitGroupUnitFromEnd(auto8B97F196_g, auto8B97F196_u);
if (auto8B97F196_var == null) { break; }
UnitIssueOrder(auto8B97F196_var, OrderSetAutoCast(AbilityCommand("Repair", 0), true), c_orderQueueReplace);
}
auto2A9E8D8C_g = UnitGroup("AutoTurret", gv_pLAYER_02_TERRAN_RED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto2A9E8D8C_u = UnitGroupCount(auto2A9E8D8C_g, c_unitCountAll);
for (;; auto2A9E8D8C_u -= 1) {
auto2A9E8D8C_var = UnitGroupUnitFromEnd(auto2A9E8D8C_g, auto2A9E8D8C_u);
if (auto2A9E8D8C_var == null) { break; }
UnitBehaviorRemove(auto2A9E8D8C_var, "AutoTurretTimedLife", 1);
}
auto9AC18241_g = UnitGroup("Bulldozer", gv_pLAYER_02_TERRAN_RED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto9AC18241_u = UnitGroupCount(auto9AC18241_g, c_unitCountAll);
for (;; auto9AC18241_u -= 1) {
auto9AC18241_var = UnitGroupUnitFromEnd(auto9AC18241_g, auto9AC18241_u);
if (auto9AC18241_var == null) { break; }
UnitSetPropertyFixed(auto9AC18241_var, c_unitPropMovementSpeed, 0.25);
UnitSetPropertyFixed(auto9AC18241_var, c_unitPropLifeMax, 150.0);
UnitSetPropertyFixed(auto9AC18241_var, c_unitPropLifePercent, 100.0);
UnitIssueOrder(auto9AC18241_var, Order(AbilityCommand("move", 2)), c_orderQueueReplace);
}
autoBB441A2D_g = UnitGroup("ZergBiomassPickup", gv_pLAYER_08_ZERG_BIOMASS, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoBB441A2D_u = UnitGroupCount(autoBB441A2D_g, c_unitCountAll);
for (;; autoBB441A2D_u -= 1) {
autoBB441A2D_var = UnitGroupUnitFromEnd(autoBB441A2D_g, autoBB441A2D_u);
if (autoBB441A2D_var == null) { break; }
libSwaC_gf_SetUnitInfoTextCampaign(autoBB441A2D_var, StringExternal("Param/Value/B04BE048"), StringExternal("Param/Value/95E73740"), null);
}
UnitSetTeamColorIndex(UnitFromId(54), libSwaC_gf_CampaignKerriganZergPlayerColor());
libNtve_gf_ShareVisionofUnit(UnitFromId(54), true, gv_pLAYER_01_USER);
libSwaC_gf_SetUnitInfoTextCampaign(UnitFromId(54), null, UnitTypeGetName(UnitGetType(UnitFromId(54))), null);
gv_scourgeNestGroup = UnitGroup("ZergTowerArtillery", gv_pLAYER_05_DEAD_NEST, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoBBD51A65_g = gv_scourgeNestGroup;
autoBBD51A65_u = UnitGroupCount(autoBBD51A65_g, c_unitCountAll);
for (;; autoBBD51A65_u -= 1) {
autoBBD51A65_var = UnitGroupUnitFromEnd(autoBBD51A65_g, autoBBD51A65_u);
if (autoBBD51A65_var == null) { break; }
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoBBD51A65_var), c_animNameDefault, "Stand Unpowered", c_animFlagPlayForever, c_animTimeDefault);
libNtve_gf_MakeUnitInvulnerable(autoBBD51A65_var, true);
UnitSetState(autoBBD51A65_var, c_unitStateRadarable, false);
libSwaC_gf_SetUnitInfoTextCampaign(autoBBD51A65_var, StringExternal("Param/Value/E46F58A3"), StringExternal("Param/Value/FF9A9242"), null);
if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
UnitSetInfoSubTip(autoBBD51A65_var, StringExternal("Param/Value/1F12C68C"));
}
}
auto0A3050CC_g = UnitGroup("Bunker", gv_pLAYER_02_TERRAN_RED, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto0A3050CC_u = UnitGroupCount(auto0A3050CC_g, c_unitCountAll);
for (;; auto0A3050CC_u -= 1) {
auto0A3050CC_var = UnitGroupUnitFromEnd(auto0A3050CC_g, auto0A3050CC_u);
if (auto0A3050CC_var == null) { break; }
UnitCargoCreate(auto0A3050CC_var, "Marine", 4);
}
autoFB709A3B_g = UnitGroup("Bunker", gv_pLAYER_03_TERRAN_TEAL, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoFB709A3B_u = UnitGroupCount(autoFB709A3B_g, c_unitCountAll);
for (;; autoFB709A3B_u -= 1) {
autoFB709A3B_var = UnitGroupUnitFromEnd(autoFB709A3B_g, autoFB709A3B_u);
if (autoFB709A3B_var == null) { break; }
UnitCargoCreate(autoFB709A3B_var, "Marine", 4);
}
autoF701BE02_g = UnitGroup("Bunker", gv_pLAYER_07_TERRAN_YELLOW, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoF701BE02_u = UnitGroupCount(autoF701BE02_g, c_unitCountAll);
for (;; autoF701BE02_u -= 1) {
autoF701BE02_var = UnitGroupUnitFromEnd(autoF701BE02_g, autoF701BE02_u);
if (autoF701BE02_var == null) { break; }
UnitCargoCreate(autoF701BE02_var, "Marine", 4);
}
autoADA484F0_g = UnitGroup("InvisibleTargetDummy", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoADA484F0_u = UnitGroupCount(autoADA484F0_g, c_unitCountAll);
for (;; autoADA484F0_u -= 1) {
autoADA484F0_var = UnitGroupUnitFromEnd(autoADA484F0_g, autoADA484F0_u);
if (autoADA484F0_var == null) { break; }
libNtve_gf_ChangeUnitDamage(autoADA484F0_var, libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
}
ActorSend(ActorFromDoodad(DoodadFromId(294)), "AliasAdd CruiserLaunchBay");
ActorSend(ActorFromDoodad(DoodadFromId(294)), "ExternalFinderAdd");
CutsceneCreateNew("Cutscenes\\ZChar02CruiserLaunch.SC2Cutscene", libNtve_gf_PointFromXYZ(168.29, 65.25, 10.02), 0.0, PlayerGroupAll(), false);