-
Notifications
You must be signed in to change notification settings - Fork 0
/
war08d.go
2338 lines (2335 loc) · 52.4 KB
/
war08d.go
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
package war08d
import "github.com/noxworld-dev/noxscript/ns/v3"
var (
obj4 ns.ObjectID
gvar5 ns.ObjectGroupID
gvar6 ns.ObjectGroupID
gvar7 ns.ObjectGroupID
gvar8 ns.ObjectGroupID
wp9 ns.WaypointID
ivar10 int
obj11 ns.ObjectID
obj12 ns.ObjectID
obj13 ns.ObjectID
obj14 ns.ObjectID
obj15 ns.ObjectID
obj16 ns.ObjectID
obj17 ns.ObjectID
obj18 ns.ObjectID
obj19 ns.ObjectID
obj20 ns.ObjectID
obj21 ns.ObjectID
obj22 ns.ObjectID
obj23 ns.ObjectID
obj24 ns.ObjectID
wp25 ns.WaypointID
wp26 ns.WaypointID
obj27 ns.ObjectID
obj28 ns.ObjectID
obj29 ns.ObjectID
obj30 ns.ObjectID
obj31 ns.ObjectID
obj32 ns.ObjectID
obj33 ns.ObjectID
obj34 ns.ObjectID
obj35 ns.ObjectID
obj36 ns.ObjectID
obj37 ns.ObjectID
obj38 ns.ObjectID
obj39 ns.ObjectID
obj40 ns.ObjectID
fvar41 float32
fvar42 float32
ivar43 int
str44 [3]string
obj45 ns.ObjectID
obj46 ns.ObjectID
obj47 ns.ObjectID
wp48 ns.WaypointID
wp49 ns.WaypointID
wp50 ns.WaypointID
wp51 ns.WaypointID
wp52 ns.WaypointID
flag53 bool
obj54 ns.ObjectID
obj55 ns.ObjectID
gvar56 ns.WallGroupID
obj57 ns.ObjectID
obj58 ns.ObjectID
obj59 ns.ObjectID
obj60 ns.ObjectID
obj61 ns.ObjectID
obj62 ns.ObjectID
obj63 ns.ObjectID
obj64 ns.ObjectID
obj65 ns.ObjectID
obj66 ns.ObjectID
obj67 ns.ObjectID
gvar68 ns.ObjectGroupID
wp69 ns.WaypointID
wp70 ns.WaypointID
wp71 ns.WaypointID
wp72 ns.WaypointID
wp73 ns.WaypointID
wp74 ns.WaypointID
wp75 ns.WaypointID
obj76 ns.ObjectID
obj77 [15]ns.ObjectID
gvar78 [21]ns.ObjectGroupID
gvar79 int
ivar80 int
ivar81 int
ivar82 int
ivar83 int
ivar84 int
ivar85 [21]int
flag86 [21]bool
wp87 [21]ns.WaypointID
str88 [6]string
)
func init() {
ivar10 = 0
fvar41 = 0
fvar42 = 0
ivar43 = 0
flag53 = false
gvar79 = 0
ivar80 = 1
ivar81 = 0
ivar82 = 10
ivar83 = 180
ivar84 = 0
}
func ArrowTrapAudio() {
ns.MoveWaypoint(wp9, ns.GetObjectX(ns.GetHost()), ns.GetObjectY(ns.GetHost()))
ns.AudioEvent(ns.BowShoot, wp9)
ns.AudioEvent(ns.CrossBowShoot, wp9)
}
func DisableArrowTrap01() {
ns.ObjectGroupOff(gvar5)
}
func ActivateArrowTrap01() {
ns.ObjectGroupOn(gvar5)
ns.FrameTimer(1, DisableArrowTrap01)
}
func DisableArrowTrap02() {
ns.ObjectGroupOff(gvar6)
}
func ActivateArrowTrap02() {
ns.ObjectGroupOn(gvar6)
ns.FrameTimer(1, DisableArrowTrap02)
}
func DisableArrowTrap03() {
ns.ObjectGroupOff(gvar7)
}
func ActivateArrowTrap03() {
ns.ObjectGroupOn(gvar7)
ns.FrameTimer(1, DisableArrowTrap03)
}
func DisableUltimateArrowTrapGuns() {
ns.ObjectGroupOff(gvar8)
}
func ResetUltimateArrowTrap() {
ns.ObjectOn(obj4)
}
func UltimateArrowTrapLoop() {
if !(ivar10 < 8) {
goto LABEL1
}
ivar10 += 1
ns.ObjectGroupOn(gvar8)
ns.FrameTimer(1, DisableUltimateArrowTrapGuns)
ns.FrameTimer(10, UltimateArrowTrapLoop)
LABEL1:
if ivar10 != 8 {
goto LABEL2
}
ivar10 = 0
ns.ObjectGroupOn(gvar8)
ns.FrameTimer(1, DisableUltimateArrowTrapGuns)
ns.FrameTimer(10, ResetUltimateArrowTrap)
LABEL2:
return
}
func ActivateUltimateArrowTrap() {
ns.ObjectOff(ns.GetTrigger())
ns.ObjectGroupOn(gvar8)
ns.FrameTimer(1, DisableUltimateArrowTrapGuns)
ns.FrameTimer(10, UltimateArrowTrapLoop)
}
func InitializeBeholders() {
str44[0] = "SPELL_STUN"
str44[1] = "SPELL_CONFUSE"
str44[2] = "SPELL_FUMBLE"
}
func BeholderIdle() {
ns.Wander(ns.GetTrigger())
}
func Beholder01Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj11) > 0 && ns.CurrentHealth(obj27) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj11)
v1 = ns.GetObjectY(obj11)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj27 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj27, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj27 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj27, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj27 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj27, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj11, obj27)
ns.CreatureFollow(obj27, obj11)
LABEL1:
return
}
func Beholder01Recognize() {
ns.FrameTimer(90, Beholder01Bombers)
}
func Beholder01Die() {
ns.Damage(obj27, 0, 500, 0)
}
func Beholder02Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj12) > 0 && ns.CurrentHealth(obj28) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj12)
v1 = ns.GetObjectY(obj12)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj28 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj28, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj28 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj28, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj28 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj28, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj12, obj28)
ns.CreatureFollow(obj28, obj12)
LABEL1:
return
}
func Beholder02Recognize() {
ns.FrameTimer(90, Beholder02Bombers)
}
func Beholder02Die() {
ns.Damage(obj28, 0, 500, 0)
}
func Beholder03Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj13) > 0 && ns.CurrentHealth(obj29) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj13)
v1 = ns.GetObjectY(obj13)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj29 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj29, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj29 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj29, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj29 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj29, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj13, obj29)
ns.CreatureFollow(obj29, obj13)
LABEL1:
return
}
func Beholder03Recognize() {
ns.FrameTimer(90, Beholder03Bombers)
}
func Beholder03Die() {
ns.Damage(obj29, 0, 500, 0)
}
func Beholder04Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj14) > 0 && ns.CurrentHealth(obj30) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj14)
v1 = ns.GetObjectY(obj14)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj30 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj30, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj30 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj30, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj30 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj30, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj14, obj30)
ns.CreatureFollow(obj30, obj14)
LABEL1:
return
}
func Beholder04Recognize() {
ns.FrameTimer(90, Beholder04Bombers)
}
func Beholder04Die() {
ns.Damage(obj30, 0, 500, 0)
}
func Beholder05Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj15) > 0 && ns.CurrentHealth(obj31) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj15)
v1 = ns.GetObjectY(obj15)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj31 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj31, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj31 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj31, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj31 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj31, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj15, obj31)
ns.CreatureFollow(obj31, obj15)
LABEL1:
return
}
func Beholder05Recognize() {
ns.FrameTimer(90, Beholder05Bombers)
}
func Beholder05Die() {
ns.Damage(obj31, 0, 500, 0)
}
func Beholder06Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj16) > 0 && ns.CurrentHealth(obj32) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj16)
v1 = ns.GetObjectY(obj16)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj32 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj32, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj32 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj32, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj32 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj32, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj16, obj32)
ns.CreatureFollow(obj32, obj16)
LABEL1:
return
}
func Beholder06Recognize() {
ns.FrameTimer(90, Beholder06Bombers)
}
func Beholder06Die() {
ns.Damage(obj32, 0, 500, 0)
}
func Beholder07Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj17) > 0 && ns.CurrentHealth(obj33) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj17)
v1 = ns.GetObjectY(obj17)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj33 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj33, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj33 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj33, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj33 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj33, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj17, obj33)
ns.CreatureFollow(obj33, obj17)
LABEL1:
return
}
func Beholder07Recognize() {
ns.FrameTimer(90, Beholder07Bombers)
}
func Beholder07Die() {
ns.Damage(obj33, 0, 500, 0)
}
func Beholder08Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj18) > 0 && ns.CurrentHealth(obj34) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj18)
v1 = ns.GetObjectY(obj18)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj34 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj34, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj34 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj34, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj34 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj34, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj18, obj34)
ns.CreatureFollow(obj34, obj18)
LABEL1:
return
}
func Beholder08Recognize() {
ns.FrameTimer(90, Beholder08Bombers)
}
func Beholder08Die() {
ns.Damage(obj34, 0, 500, 0)
}
func Beholder09Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj19) > 0 && ns.CurrentHealth(obj35) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj19)
v1 = ns.GetObjectY(obj19)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj35 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj35, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj35 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj35, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj35 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj35, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj19, obj35)
ns.CreatureFollow(obj35, obj19)
LABEL1:
return
}
func Beholder09Recognize() {
ns.FrameTimer(90, Beholder09Bombers)
}
func Beholder09Die() {
ns.Damage(obj35, 0, 500, 0)
}
func Beholder10Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj20) > 0 && ns.CurrentHealth(obj36) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj20)
v1 = ns.GetObjectY(obj20)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj36 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj36, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj36 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj36, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj36 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj36, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj20, obj36)
ns.CreatureFollow(obj36, obj20)
LABEL1:
return
}
func Beholder10Recognize() {
ns.FrameTimer(90, Beholder10Bombers)
}
func Beholder10Die() {
ns.Damage(obj36, 0, 500, 0)
}
func Beholder11Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj21) > 0 && ns.CurrentHealth(obj37) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj21)
v1 = ns.GetObjectY(obj21)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj37 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj37, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj37 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj37, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj37 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj37, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj21, obj37)
ns.CreatureFollow(obj37, obj21)
LABEL1:
return
}
func Beholder11Recognize() {
ns.FrameTimer(90, Beholder11Bombers)
}
func Beholder11Die() {
ns.Damage(obj37, 0, 500, 0)
}
func Beholder12Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj22) > 0 && ns.CurrentHealth(obj38) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj22)
v1 = ns.GetObjectY(obj22)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj38 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj38, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj38 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj38, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj38 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj38, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj22, obj38)
ns.CreatureFollow(obj38, obj22)
LABEL1:
return
}
func Beholder12Recognize() {
ns.FrameTimer(90, Beholder12Bombers)
}
func Beholder12Die() {
ns.Damage(obj38, 0, 500, 0)
}
func Beholder13Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj23) > 0 && ns.CurrentHealth(obj39) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj23)
v1 = ns.GetObjectY(obj23)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj39 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj39, str44[ivar43], "", "")
goto LABEL5
LABEL3:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj39 = ns.CreateObject("BomberGreen", wp25)
ns.TrapSpells(obj39, str44[ivar43], "", "")
goto LABEL5
LABEL4:
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj39 = ns.CreateObject("BomberYellow", wp25)
ns.TrapSpells(obj39, str44[ivar43], "", "")
goto LABEL5
LABEL5:
ns.SetOwner(obj23, obj39)
ns.CreatureFollow(obj39, obj23)
LABEL1:
return
}
func Beholder13Recognize() {
ns.FrameTimer(90, Beholder13Bombers)
}
func Beholder13Die() {
ns.Damage(obj39, 0, 500, 0)
}
func Beholder14Bombers() {
var (
v0 float32
v1 float32
v2 float32
v3 float32
v4 int
)
_ = v3
_ = v2
if !(ns.CurrentHealth(obj24) > 0 && ns.CurrentHealth(obj40) <= 0) {
goto LABEL1
}
v0 = ns.GetObjectX(obj24)
v1 = ns.GetObjectY(obj24)
ns.MoveWaypoint(wp26, v0, v1)
ns.AudioEvent(ns.SummonCast, wp26)
v2 = ns.RandomFloat(fvar41, fvar42)
v3 = ns.RandomFloat(fvar41, fvar42)
ns.MoveWaypoint(wp25, v0, v1)
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
ivar43 = ns.Random(0, 2)
switch v4 = ivar43; v4 {
case 0:
goto LABEL2
case 1:
goto LABEL3
case 2:
goto LABEL4
default:
goto LABEL5
}
LABEL2:
ns.Effect(ns.SMOKE_BLAST, v0, v1, 0, 0)
obj40 = ns.CreateObject("BomberBlue", wp25)
ns.TrapSpells(obj40, str44[ivar43], "", "")
goto LABEL5