/
NativeLib.galaxy
6351 lines (5425 loc) · 248 KB
/
NativeLib.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
include "TriggerLibs/natives"
include "TriggerLibs/NativeLib_h"
//--------------------------------------------------------------------------------------------------
// Library: Built-In
//--------------------------------------------------------------------------------------------------
// Variable Initialization
bool libNtve_InitVariables_completed = false;
void libNtve_InitVariables () {
int init_i;
int init_j;
int init_k;
if (libNtve_InitVariables_completed) {
return;
}
libNtve_InitVariables_completed = true;
libNtve_gv__CineTransitionStyle = libNtve_ge_CinematicTransitionStyle_Mission;
libNtve_gv__PlayersInCineMode = PlayerGroupEmpty();
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonDialogs[init_i] = c_invalidDialogId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtons[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsBorderType[init_i] = c_triggerImageTypeEndCap;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsBorderImage[init_i] = "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed.dds";
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsHoverImage[init_i] = "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover.dds";
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsFlashingBorderType[init_i] = c_triggerImageTypeEndCap;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsFlashingBorderImage[init_i] = "Assets\\Textures\\ui_mission_hackingbuttonglow_anim.dds";
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenButtonsFlashingHoverImage[init_i] = "Assets\\Textures\\ui_mission_hackingbuttonglow_anim.dds";
}
libNtve_gv_tP_FlashScreenButtonColor1 = Color(0,0,0);
libNtve_gv_tP_FlashScreenButtonColor2 = Color(0,0,0);
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenImageDialogs[init_i] = c_invalidDialogId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenImageDialogImages[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenLabelDialogs[init_i] = c_invalidDialogId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv_screenLabelDialogLabels[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 33; init_i += 1) {
libNtve_gv_unitSelectionStored[init_i] = UnitGroupEmpty();
}
libNtve_gv__PlayersInStoryMode = PlayerGroupEmpty();
for (init_i = 0; init_i <= 32; init_i += 1) {
libNtve_gv__StoryModeSavedSettingUI_Resource[init_i] = true;
}
for (init_i = 0; init_i <= 32; init_i += 1) {
libNtve_gv__StoryModeSavedSettingUI_Supply[init_i] = true;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_Players[init_i] = PlayerGroupEmpty();
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_Race[init_i] = libNtve_ge_BossBarRace_Terran;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_Dialog[init_i] = c_invalidDialogId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_BGImgBar[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_BGImgPortrait[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_PortraitImage[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_TitleLabel[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_HpBorderImage[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_HpLabel[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_HpFullImage[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_HpCurrentImage[init_i] = c_invalidDialogControlId;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_BarWidth[init_i] = 520;
}
for (init_i = 0; init_i <= 50; init_i += 1) {
libNtve_gv__BB_BarHeight[init_i] = 120;
}
for (init_i = 0; init_i <= 16; init_i += 1) {
for (init_j = 0; init_j <= 100; init_j += 1) {
for (init_k = 0; init_k <= 3; init_k += 1) {
libNtve_gv__GameUIVisible[init_i][init_j][init_k] = true;
}
}
}
libNtve_gv_visibleFilter = UnitFilter((1 << c_targetFilterVisible), 0, 0, 0);
}
// Presets
// Functions
abilcmd libNtve_gf_EventItemAbilityOrUnitAbility () {
// Variable Declarations
unit lv_otherUnit;
abilcmd lv_abilUsed;
string lv_itemType;
int lv_classId;
// Automatic Variable Declarations
// Variable Initialization
lv_otherUnit = EventUnitAbilityOtherUnit();
lv_abilUsed = EventUnitAbility();
lv_itemType = "";
// Implementation
if ((lv_otherUnit != null)) {
lv_itemType = CatalogFieldValueGet(c_gameCatalogUnit, UnitGetType(lv_otherUnit), "Item", UnitGetOwner(lv_otherUnit));
lv_classId = CatalogEntryClass(c_gameCatalogAbil, CatalogFieldValueGet(c_gameCatalogItem, lv_itemType, "Abil", UnitGetOwner(lv_otherUnit)));
if (((lv_classId == c_classIdCAbilEffectTarget) || (lv_classId == c_classIdCAbilEffectInstant))) {
lv_abilUsed = StringToAbilCmd(CatalogFieldValueGet(c_gameCatalogItem, lv_itemType, "Abil", UnitGetOwner(lv_otherUnit)));
}
}
return lv_abilUsed;
}
string libNtve_gf_UnitAbilityGetByType (unit lp_unit, int lp_abilityClass, int lp_index) {
// Variable Declarations
string lv_abil;
int lv_classIndex;
// Automatic Variable Declarations
unit auto5A8FAC35_unit;
int auto5A8FAC35_i;
// Variable Initialization
// Implementation
auto5A8FAC35_unit = lp_unit;
auto5A8FAC35_i = 1;
for ( ; auto5A8FAC35_i <= UnitAbilityCount(auto5A8FAC35_unit) ; auto5A8FAC35_i += 1 ) {
lv_abil = UnitAbilityGet(auto5A8FAC35_unit, auto5A8FAC35_i);
if ((AbilityClass(lv_abil) == lp_abilityClass)) {
lv_classIndex += 1;
}
if ((lp_index == lv_classIndex)) {
return lv_abil;
}
}
return null;
}
bool libNtve_gf_AbilityMatchesFilters (string lp_ability, int lp_abilityOwner, int lp_abilityClass, string lp_alias) {
// Variable Declarations
string lv_itAlias;
int lv_player;
// Automatic Variable Declarations
int auto0C13F64D_catalog;
string auto0C13F64D_entry;
string auto0C13F64D_fieldPath;
int auto0C13F64D_player;
int auto0C13F64D_i;
// Variable Initialization
lv_itAlias = "";
// Implementation
if ((AbilityClass(lp_ability) != c_classIdCAbil)) {
if ((AbilityClass(lp_ability) != lp_abilityClass)) {
return false;
}
}
if ((lp_alias == "")) {
}
else {
auto0C13F64D_catalog = c_gameCatalogAbil;
auto0C13F64D_entry = lp_ability;
auto0C13F64D_fieldPath = "TechAliasArray";
auto0C13F64D_player = lv_player;
auto0C13F64D_i = 0;
for ( ; auto0C13F64D_i <= CatalogFieldValueCount(c_gameCatalogAbil,auto0C13F64D_entry,auto0C13F64D_fieldPath,auto0C13F64D_player)-1 ; auto0C13F64D_i += 1 ) {
lv_itAlias = CatalogFieldValueGet(c_gameCatalogAbil,auto0C13F64D_entry,auto0C13F64D_fieldPath+"["+IntToString(auto0C13F64D_i)+"]",auto0C13F64D_player);
if ((lp_alias == lv_itAlias)) {
break;
}
}
return false;
}
return true;
}
string libNtve_gf_UnitAbilityByFilters (unit lp_unit, int lp_abilityClass, string lp_alias) {
// Variable Declarations
string lv_itAbil;
string lv_itAlias;
int lv_player;
// Automatic Variable Declarations
unit auto981DBC05_unit;
int auto981DBC05_i;
// Variable Initialization
lv_itAlias = "";
lv_player = UnitGetOwner(lp_unit);
// Implementation
auto981DBC05_unit = lp_unit;
auto981DBC05_i = 1;
for ( ; auto981DBC05_i <= UnitAbilityCount(auto981DBC05_unit) ; auto981DBC05_i += 1 ) {
lv_itAbil = UnitAbilityGet(auto981DBC05_unit, auto981DBC05_i);
if ((libNtve_gf_AbilityMatchesFilters(lv_itAbil, lv_player, lp_abilityClass, lp_alias) == true)) {
return lv_itAbil;
}
}
return null;
}
actor libNtve_gf_AttachModelToActor (actor lp_actor, string lp_model, string lp_attachPoint) {
// Variable Declarations
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_scope = ActorScopeFromActor(lp_actor);
ActorCreate(lv_scope, "SiteHosted", lp_attachPoint, "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorCreate(lv_scope, "ModelHosted", (lp_model), "", "");
lv_a = libNtve_gf_ActorLastCreated();
return lv_a;
}
actorscope libNtve_gf_LastCreatedActorScope () {
// Automatic Variable Declarations
// Deprecated
return libNtve_gf_ActorScopeLastCreated();
}
actor libNtve_gf_LastCreatedActor () {
// Automatic Variable Declarations
// Deprecated
return libNtve_gf_ActorLastCreated();
}
actor libNtve_gf_AttachModelToUnit (unit lp_unit, string lp_model, string lp_attachPoint) {
// Variable Declarations
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_scope = ActorScopeFromUnit(lp_unit);
ActorCreate(lv_scope, "SiteHosted", lp_attachPoint, "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorCreate(lv_scope, "ModelHosted", (lp_model), "", "");
lv_a = libNtve_gf_ActorLastCreated();
return lv_a;
}
actor libNtve_gf_AttachModelToUnitInheritVisibility (unit lp_unit, string lp_model, string lp_attachPoint) {
// Variable Declarations
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_scope = ActorScopeFromUnit(lp_unit);
ActorCreate(lv_scope, "SiteHosted", lp_attachPoint, "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorCreate(lv_scope, "ModelHostedInheritVisibility", (lp_model), "", "");
lv_a = libNtve_gf_ActorLastCreated();
return lv_a;
}
actor libNtve_gf_AttachModelToActor2 (actor lp_actor, string lp_model, string lp_attachPoint) {
// Variable Declarations
string lv_message;
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
lv_message = ("AttachModel {} ");
// Implementation
lv_message = ("AttachModel {} " + (lp_model) + " " + lp_attachPoint);
ActorSendAsText(lp_actor, StringToText(lv_message));
lv_a = libNtve_gf_ActorLastCreated();
return lv_a;
}
actorscope libNtve_gf_ActorScopeLastCreated () {
// Automatic Variable Declarations
// Implementation
return ActorScopeFrom("::LastCreated");
}
actorscope libNtve_gf_ActorScopeLastCreatedSend () {
// Automatic Variable Declarations
// Implementation
return ActorScopeFrom("::LastCreated");
}
actor libNtve_gf_ActorLastCreated () {
// Automatic Variable Declarations
// Implementation
return ActorFrom("::LastCreated");
}
actor libNtve_gf_ActorLastCreatedSend () {
// Automatic Variable Declarations
// Implementation
return ActorFrom("::LastCreated");
}
actor libNtve_gf_AttachActorToUnit (unit lp_unit, string lp_actor, string lp_attachPoint) {
// Variable Declarations
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_scope = ActorScopeFromUnit(lp_unit);
ActorCreate(lv_scope, "SiteHosted", lp_attachPoint, "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, "RefSet ::scope.hostsite ::Self");
ActorCreate(lv_scope, lp_actor, "", "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, "RefSet ::Host ::scope.hostsite");
return lv_a;
}
actor libNtve_gf_AttachActorToActor (actor lp_hostingActor, string lp_attachingActor, string lp_attachPoint) {
// Variable Declarations
actorscope lv_scope;
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
lv_scope = ActorScopeFromActor(lp_hostingActor);
ActorCreate(lv_scope, "SiteHosted", lp_attachPoint, "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, "RefSet ::scope.hostsite ::Self");
ActorCreate(lv_scope, lp_attachingActor, "", "", "");
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, "RefSet ::Host ::scope.hostsite");
return lv_a;
}
actor libNtve_gf_CreateActorAtPoint (string lp_actor, point lp_position) {
// Variable Declarations
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
ActorCreate(null, lp_actor, null, null, null);
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, libNtve_gf_SetPositionH(PointGetX(lp_position), PointGetY(lp_position), PointGetHeight(lp_position)));
return lv_a;
}
actor libNtve_gf_CreateModelAtPoint (string lp_model, point lp_position) {
// Variable Declarations
actor lv_a;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
ActorCreate(null, "TriggerModel", (lp_model), null, "null");
lv_a = libNtve_gf_ActorLastCreated();
ActorSend(lv_a, libNtve_gf_ActorMsg1("SetPositionH", libNtve_gf_ConvertXYToString(PointGetX(lp_position), PointGetY(lp_position))));
ActorSend(lv_a, libNtve_gf_SetHeight(PointGetHeight(lp_position)));
return lv_a;
}
void libNtve_gf_CreateModelWithPointFacing (string lp_model, point lp_position) {
// Automatic Variable Declarations
// Implementation
libNtve_gf_CreateModelAtPoint(lp_model, lp_position);
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position));
}
void libNtve_gf_SendActorMessageToUnit (unit lp_unit, string lp_message) {
// Automatic Variable Declarations
// Implementation
ActorSend(libNtve_gf_MainActorofUnit(lp_unit), lp_message);
}
void libNtve_gf_ActorRegionSendSimple (actor lp_region, string lp_message) {
// Automatic Variable Declarations
// Implementation
ActorRegionSend(lp_region, c_actorIntersectAgainstRadiusContact, lp_message, null, null);
}
void libNtve_gf_SendActorMessageToGameRegion (region lp_region, string lp_message) {
// Variable Declarations
actor lv_actorRegion;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
ActorRegionCreate(null, "TriggerRegion", lp_region);
lv_actorRegion = libNtve_gf_ActorLastCreated();
ActorRegionSend(lv_actorRegion, c_actorIntersectAgainstRadiusContact, lp_message, null, null);
ActorSend(lv_actorRegion, "Destroy");
}
void libNtve_gf_SendActorMessageToGameRegionWithFilters (region lp_region, int lp_intersectType, string lp_message, string lp_classFilters, string lp_terms) {
// Variable Declarations
actor lv_actorRegion;
// Automatic Variable Declarations
// Variable Initialization
// Implementation
ActorRegionCreate(null, "TriggerRegion", lp_region);
lv_actorRegion = libNtve_gf_ActorLastCreated();
ActorRegionSend(lv_actorRegion, lp_intersectType, lp_message, lp_classFilters, lp_terms);
ActorSend(lv_actorRegion, "Destroy");
}
string libNtve_gf_ActorMsg1 (string lp_msgName, string lp_param1) {
// Automatic Variable Declarations
// Implementation
return ((lp_msgName + " {" + lp_param1 + "}"));
}
string libNtve_gf_ActorMsg2 (string lp_msgName, string lp_param1, string lp_param2) {
// Automatic Variable Declarations
// Implementation
return ((lp_msgName + " {" + lp_param1 + "} {" + lp_param2 + "}"));
}
string libNtve_gf_ActorMsg3 (string lp_msgName, string lp_param1, string lp_param2, string lp_param3) {
// Automatic Variable Declarations
// Implementation
return ((lp_msgName + " {" + lp_param1 + "} {" + lp_param2 + "} {" + lp_param3 + "}"));
}
string libNtve_gf_ActorMsg4 (string lp_msgName, string lp_param1, string lp_param2, string lp_param3, string lp_param4) {
// Automatic Variable Declarations
// Implementation
return ((lp_msgName + " {" + lp_param1 + "} {" + lp_param2 + "} {" + lp_param3 + "} {" + lp_param4 + "}"));
}
string libNtve_gf_ActionDamage () {
// Automatic Variable Declarations
// Implementation
return "ActionDamage";
}
string libNtve_gf_ActionImpact () {
// Automatic Variable Declarations
// Implementation
return "ActionImpact";
}
string libNtve_gf_AliasAdd (string lp_alias) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("AliasAdd", lp_alias);
}
string libNtve_gf_AliasRemove (string lp_alias) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("AliasRemove", lp_alias);
}
string libNtve_gf_AnimBaselineStart () {
// Automatic Variable Declarations
// Implementation
return "AnimBaselineStart";
}
string libNtve_gf_AnimBaselineStop () {
// Automatic Variable Declarations
// Implementation
return "AnimBaselineStop";
}
string libNtve_gf_AnimBlendTimeApply (fixed lp_blendTime) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("AnimBlendTimeApply", FixedToString(lp_blendTime, c_fixedPrecisionAny));
}
string libNtve_gf_AnimBlendTimeRemove () {
// Automatic Variable Declarations
// Implementation
return "AnimBlendTimeRemove";
}
string libNtve_gf_AnimClear (string lp_animName, fixed lp_blendTime) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimClear", lp_animName, FixedToString(lp_blendTime, c_fixedPrecisionAny));
}
string libNtve_gf_AnimClearAllBut (string lp_animName, fixed lp_blendTime) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimClearAllBut", lp_animName, FixedToString(lp_blendTime, c_fixedPrecisionAny));
}
string libNtve_gf_AnimDumpDB () {
// Automatic Variable Declarations
// Implementation
return "AnimDumpDB";
}
string libNtve_gf_AnimGroupRemoveAll () {
// Automatic Variable Declarations
// Implementation
return "AnimGroupRemoveAll";
}
string libNtve_gf_AnimPlaySequence (string lp_animName, string lp_sequenceList) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimPlaySequence", lp_animName, lp_sequenceList);
}
string libNtve_gf_AnimSetCompletion (string lp_animName, fixed lp_percent) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimSetCompletion", lp_animName, FixedToString(lp_percent, c_fixedPrecisionAny));
}
string libNtve_gf_AnimSetDuration (string lp_animName, fixed lp_duration) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimSetCompletion", lp_animName, FixedToString(lp_duration, c_fixedPrecisionAny));
}
string libNtve_gf_AnimSetPaused (bool lp_pause) {
// Automatic Variable Declarations
// Implementation
if ((lp_pause == true)) {
return libNtve_gf_ActorMsg1("AnimSetPaused", "true");
}
else {
return libNtve_gf_ActorMsg1("AnimSetPaused", "false");
}
}
string libNtve_gf_AnimSetTime (string lp_animName, fixed lp_time, bool lp_scaled) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg3("AnimSetTime", lp_animName, FixedToString(lp_time, c_fixedPrecisionAny), libNtve_gf_ConvertBooleanToString(lp_scaled));
}
string libNtve_gf_AnimSetTimeScale (string lp_animName, fixed lp_scale) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AnimSetTimeScale", lp_animName, FixedToString(lp_scale, c_fixedPrecisionAny));
}
string libNtve_gf_AnimSetTimeScaleGlobal (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("AnimSetTimeScaleGlobal", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_AttachSetBearings (string lp_attachMethods, string lp_bearings) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AttachSetBearings", lp_attachMethods, lp_bearings);
}
string libNtve_gf_AttachSetBearingsFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg3("AttachSetBearingsFrom", lp_attachMethods, lp_actorName, lp_actorSiteOps);
}
string libNtve_gf_AttachSetPosition (string lp_attachMethods, string lp_position) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AttachSetPosition", lp_attachMethods, lp_position);
}
string libNtve_gf_AttachSetPositionFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg3("AttachSetPositionFrom", lp_attachMethods, lp_actorName, lp_actorSiteOps);
}
string libNtve_gf_AttachSetRotation (string lp_attachMethods, fixed lp_rotation) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("AttachSetRotation", lp_attachMethods, FixedToString(lp_rotation, c_fixedPrecisionAny));
}
string libNtve_gf_AttachSetRotationFrom (string lp_attachMethods, string lp_actorName, string lp_actorSiteOps) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg3("AttachSetRotationFrom", lp_attachMethods, lp_actorName, lp_actorSiteOps);
}
string libNtve_gf_Create (string lp_actor, string lp_content) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("Create", lp_actor, lp_content);
}
string libNtve_gf_CreateCopy (string lp_createKey, string lp_sourceKey) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("CreateCopy", (lp_createKey), (lp_sourceKey));
}
string libNtve_gf_DeathCustomize (string lp_subname) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("DeathCustomize", lp_subname);
}
string libNtve_gf_Destroy () {
// Automatic Variable Declarations
// Implementation
return "Destroy";
}
string libNtve_gf_HostSiteOpsSet (string lp_hostName, string lp_ops, int lp_holdPosition, int lp_holdRotation) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg4("HostSiteOpsSet", lp_hostName, lp_ops, IntToString(lp_holdPosition), IntToString(lp_holdRotation));
}
string libNtve_gf_ListAdd (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("ListAdd", lp_actorRefName);
}
string libNtve_gf_ListRemove (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("ListRemove", lp_actorRefName);
}
string libNtve_gf_MissileTentacleReturn () {
// Automatic Variable Declarations
// Implementation
return "MissileTentacleReturn";
}
string libNtve_gf_ModelEventSuppress (int lp_value, string lp_event) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("ModelEventSuppress", lp_event, IntToString(lp_value));
}
string libNtve_gf_ModelSwap (string lp_model, int lp_variation) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("ModelSwap", (lp_model), IntToString(lp_variation));
}
string libNtve_gf_MoverSetAcceleration (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetAcceleration", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetDeceleration (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetDeceleration", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetDestination2D (fixed lp_x, fixed lp_y) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetDestination2D", libNtve_gf_ConvertXYToString(lp_x, lp_y));
}
string libNtve_gf_MoverSetDestinationFrom (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetDestinationFrom", lp_actorRefName);
}
string libNtve_gf_MoverSetDestinationH (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetDestinationH", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetDestinationZ (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetDestinationZ", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetSpeed (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetSpeed", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetSpeedMax (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetSpeedMax", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverSetSpeedFromDuration (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("MoverSetSpeedFromDuration", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_MoverMove () {
// Automatic Variable Declarations
// Implementation
return "MoverMove";
}
string libNtve_gf_MoverStop () {
// Automatic Variable Declarations
// Implementation
return "MoverStop";
}
string libNtve_gf_MoverStopNow () {
// Automatic Variable Declarations
// Implementation
return "MoverStopNow";
}
string libNtve_gf_MultiplyScale (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_duration) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("MultiplyScale", (FixedToString(lp_x, c_fixedPrecisionAny) + "," + FixedToString(lp_y, c_fixedPrecisionAny) + "," + FixedToString(lp_z, c_fixedPrecisionAny)), FixedToString(lp_duration, c_fixedPrecisionAny));
}
string libNtve_gf_Print (string lp_string) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("Print", lp_string);
}
string libNtve_gf_QueryPersistent (string lp_enterResponseActor, string lp_leaveResponeActor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("QueryPersistent", (lp_enterResponseActor), (lp_leaveResponeActor));
}
string libNtve_gf_QueryRadius (fixed lp_radius, string lp_responseActor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("QueryRegion", FixedToString(lp_radius, c_fixedPrecisionAny), lp_responseActor);
}
string libNtve_gf_QueryRegion (string lp_regionActor, string lp_responseActor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("QueryRadius", lp_regionActor, lp_responseActor);
}
string libNtve_gf_RefClear (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("RefClear", lp_actorRefName);
}
string libNtve_gf_RefDestroy (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("RefDestroy", lp_actorRefName);
}
string libNtve_gf_RefDump (string lp_actorRefName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("RefDump", lp_actorRefName);
}
string libNtve_gf_RefNotify (string lp_actorRefName, string lp_subName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("RefSet", lp_actorRefName, lp_subName);
}
string libNtve_gf_RefSet (string lp_actorRefName, string lp_refSource) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("RefSet", lp_actorRefName, lp_refSource);
}
string libNtve_gf_RefSetFromMsg (string lp_actorRefName, string lp_message) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("RefSetFromMsg", lp_actorRefName, lp_message);
}
string libNtve_gf_RefSetFromActor (string lp_actorRefName, string lp_refPrimary, string lp_refSecondary) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg3("RefSetFromActor", lp_actorRefName, lp_refPrimary, lp_refSecondary);
}
string libNtve_gf_RefSetRefreshName (string lp_actorRefName, string lp_refreshName) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("RefSetRefreshName", lp_actorRefName, lp_refreshName);
}
string libNtve_gf_SetBearings (fixed lp_positionX, fixed lp_positionY, fixed lp_positionZ, fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetBearings", ("'" + libNtve_gf_ConvertBearingsToString(lp_positionX, lp_positionY, lp_positionZ, lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ) + "'"));
}
string libNtve_gf_SetBearingsFrom (string lp_actor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetBearingsFrom", lp_actor);
}
string libNtve_gf_SetBearingsH (fixed lp_positionX, fixed lp_positionY, fixed lp_height, fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetBearingsH", (FixedToString(lp_positionX, c_fixedPrecisionAny) + "," + FixedToString(lp_positionY, c_fixedPrecisionAny) + " " + FixedToString(lp_height, c_fixedPrecisionAny) + " '" + libNtve_gf_Convert3DVectorToString(lp_forwardX, lp_forwardY, lp_forwardZ) + " " + libNtve_gf_Convert3DVectorToString(lp_upX, lp_upY, lp_upZ) + "'"));
}
string libNtve_gf_SetFacing (fixed lp_facing) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetFacing", FixedToString(lp_facing, c_fixedPrecisionAny));
}
string libNtve_gf_SetHeight (fixed lp_height) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetHeight", FixedToString(lp_height, c_fixedPrecisionAny));
}
string libNtve_gf_SetOpacity (fixed lp_opacity, fixed lp_blendDuration) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("SetOpacity", FixedToString(lp_opacity, c_fixedPrecisionAny), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
}
string libNtve_gf_SetPosition (fixed lp_x, fixed lp_y, fixed lp_z) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetPosition", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
}
string libNtve_gf_SetPosition2D (fixed lp_x, fixed lp_y) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetPosition2D", (FixedToString(lp_x, c_fixedPrecisionAny) + "," + FixedToString(lp_y, c_fixedPrecisionAny)));
}
string libNtve_gf_SetPosition2DH (fixed lp_x, fixed lp_y) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetPosition2DH", (FixedToString(lp_x, c_fixedPrecisionAny) + "," + FixedToString(lp_y, c_fixedPrecisionAny)));
}
string libNtve_gf_SetPositionFrom (string lp_actor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetPositionFrom", lp_actor);
}
string libNtve_gf_SetPositionH (fixed lp_x, fixed lp_y, fixed lp_height) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("SetPositionH", (FixedToString(lp_x, c_fixedPrecisionAny) + "," + FixedToString(lp_y, c_fixedPrecisionAny)), FixedToString(lp_height, c_fixedPrecisionAny));
}
string libNtve_gf_SetRenderToTextureEnabled (bool lp_enabled) {
// Automatic Variable Declarations
// Implementation
if ((lp_enabled == true)) {
return libNtve_gf_ActorMsg1("SetRenderToTextureEnabled", "1");
}
else {
return libNtve_gf_ActorMsg1("SetRenderToTextureEnabled", "0");
}
}
string libNtve_gf_SetRotation (fixed lp_forwardX, fixed lp_forwardY, fixed lp_forwardZ, fixed lp_upX, fixed lp_upY, fixed lp_upZ) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetRotation", libNtve_gf_Convert3DRotationToString(lp_forwardX, lp_forwardY, lp_forwardZ, lp_upX, lp_upY, lp_upZ));
}
string libNtve_gf_SetRotationFrom (string lp_actor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetRotationFrom", lp_actor);
}
string libNtve_gf_SetScale (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_blendDuration) {
// Automatic Variable Declarations
// Implementation
if ((lp_blendDuration > 0.0)) {
return libNtve_gf_ActorMsg2("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
}
else {
return libNtve_gf_ActorMsg1("SetScale", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
}
}
string libNtve_gf_SetScaleAbsolute (fixed lp_x, fixed lp_y, fixed lp_z, fixed lp_blendDuration) {
// Automatic Variable Declarations
// Implementation
if ((lp_blendDuration > 0.0)) {
return libNtve_gf_ActorMsg2("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z), FixedToString(lp_blendDuration, c_fixedPrecisionAny));
}
else {
return libNtve_gf_ActorMsg1("SetScaleAbsolute", libNtve_gf_Convert3DVectorToString(lp_x, lp_y, lp_z));
}
}
string libNtve_gf_SetTeamColor (color lp_diffuseColor, color lp_emissiveColor) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("SetTeamColor", libNtve_gf_ConvertColorToString(lp_diffuseColor), libNtve_gf_ConvertColorToString(lp_emissiveColor));
}
string libNtve_gf_SetLocalTintColor (color lp_color) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetLocalTintColor", libNtve_gf_ConvertColorToString(lp_color));
}
string libNtve_gf_SetTintColor (color lp_color, fixed lp_hdr, fixed lp_duration) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg2("SetTintColor", (libNtve_gf_ConvertColorToString(lp_color) + " " + FixedToString(lp_hdr, c_fixedPrecisionAny)), FixedToString(lp_duration, c_fixedPrecisionAny));
}
string libNtve_gf_SetVisibility (bool lp_visible) {
// Automatic Variable Declarations
// Implementation
if ((lp_visible == true)) {
return libNtve_gf_ActorMsg1("SetVisibility", "1");
}
else {
return libNtve_gf_ActorMsg1("SetVisibility", "0");
}
}
string libNtve_gf_SetWalkAnimMoveSpeed (fixed lp_value) {
// Automatic Variable Declarations
// Implementation
return libNtve_gf_ActorMsg1("SetWalkAnimMoveSpeed", FixedToString(lp_value, c_fixedPrecisionAny));
}
string libNtve_gf_SetZ (fixed lp_z) {