-
Notifications
You must be signed in to change notification settings - Fork 37
/
A Real American Hero 1.71.vbs
1337 lines (1201 loc) · 53 KB
/
A Real American Hero 1.71.vbs
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
Option Explicit
Randomize
' Thalamus 2018-11-01 : Improved directional sounds
' Took away old code for ballrolling and collition - use the newer OnBallBallCollision
' !! NOTE : Table not verified yet !!
' Options
' Volume devided by - lower gets higher sound
Const VolDiv = 200 ' Lower number, louder ballrolling/collition sound
Const VolCol = 10 ' Ball collition divider ( voldiv/volcol )
' The rest of the values are multipliers
'
' .5 = lower volume
' 1.5 = higher volume
Const VolBump = 2 ' Bumpers volume.
Const VolTarg = 1 ' Targets volume.
Const VolFlip = 1 ' Flipper volume.
Const cGameName = "SexyGirl"
Const cloneGameName = "playboyb"
Const UseSolenoids=1,UseLamps=True,UseGI=0,UseSyn=1,SSolenoidOn="SolOn",SSolenoidOff="Soloff",SFlipperOn="FlipperUpLeft",SFlipperOff="FlipperDown"
Const SCoin="coin3",cCredits="A Real American Hero - OPERATION P.I.N.B.A.L.L.(Original 2018) by Mickey-Lizard- MOD by Xenonph v1.71"
On Error Resume Next
ExecuteGlobal GetTextFile("controller.vbs")
If Err Then MsgBox "Can't open controller.vbs"
On Error Goto 0
LoadVPM "01560000","Bally.vbs", 3.36
Dim bsTrough, dtDrop, bsSaucer, balls, scount, brain, h, screens(190),plungerIM, xx
Dim Language
Dim NumOfBalls
Dim CDMD
'*****************************************************
'* Options *
'*****************************************************
Const GI_ON = 1 ' 0 or 1 to disable or enable GI
'Instruction Cards
Language = 1 ' 0 = German 1 = English
NumOfBalls = 1 ' 0 = 3ball 1 = 5ball
'ColorDMD Default is Green
CDMD = 0 '0=Green 1=Red 2=White 3=Blue 4=Reg Orange
'*****************************************************
'* Solonoids *
'*****************************************************
SolCallback(7) = "bsTrough.SolOut"
SolCallback(6) = "vpmSolSound ""Knocker"","
'SolCallback(12) = "vpmSolSound ""Sling"","
'SolCallback(14) = "vpmSolSound ""Sling"","
'SolCallback(9) = "vpmSolSound ""Bumper"","
'SolCallback(10) = "vpmSolSound ""Bumper"","
'SolCallback(11) = "vpmSolSound ""Bumper"","
SolCallback(8) = "bsSaucer.SolOut"
SolCallback(13) = "SolTargetReset"
SolCallback(19) = "solGI"
SolCallback(sLLFlipper) = "solLFlipper"
SolCallback(sLRFlipper) = "solRFlipper"
'*****************************************************
'* Table Init *
'*****************************************************
Sub Table1_Init
With Controller
.GameName = cloneGameName
.SplashInfoLine = cCredits
.HandleKeyboard = False
.ShowTitle = False
.ShowDMDOnly = True
.ShowFrame = False
If CDMD=0 Then Controller.Games("playboyb").Settings.Value("dmd_red") = 0:Controller.Games("playboyb").Settings.Value("dmd_green") = 255:Controller.Games("playboyb").Settings.Value("dmd_blue") = 0
If CDMD=1 Then Controller.Games("playboyb").Settings.Value("dmd_red") = 255:Controller.Games("playboyb").Settings.Value("dmd_green") = 0:Controller.Games("playboyb").Settings.Value("dmd_blue") = 0
If CDMD=2 Then Controller.Games("playboyb").Settings.Value("dmd_red") = 255:Controller.Games("playboyb").Settings.Value("dmd_green") = 255:Controller.Games("playboyb").Settings.Value("dmd_blue") = 255
If CDMD=3 Then Controller.Games("playboyb").Settings.Value("dmd_red") = 0:Controller.Games("playboyb").Settings.Value("dmd_green") = 0:Controller.Games("playboyb").Settings.Value("dmd_blue") = 255
If CDMD=4 Then Controller.Games("playboyb").Settings.Value("dmd_red") = 255:Controller.Games("playboyb").Settings.Value("dmd_green") = 69:Controller.Games("playboyb").Settings.Value("dmd_blue") = 0
Controller.Games("playboyb").Settings.Value("sound")=0
SetBallDip
On Error Resume Next
.Run
'.Hidden=0
If Err Then MsgBox Err.Description
On Error Goto 0
End With
'
' Main Timer init
PinMAMETimer.Interval = PinMAMEInterval
PinMAMETimer.Enabled = True
Dim x
x = INT(3 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe00.mp3":ITrigger.timerinterval=60500:ITrigger.timerenabled=1
Case 1:PlayMusic"0joe21.mp3":ITrigger.timerinterval=54000:ITrigger.timerenabled=1
Case 2:PlayMusic"0joe20.mp3":ITrigger.timerinterval=188000:ITrigger.timerenabled=1
End Select
' Nudging
vpmNudge.TiltSwitch = 7
vpmNudge.Sensitivity = 1
vpmNudge.TiltObj = Array(Bumper1,Bumper2,Bumper3,LeftSlingshot,RightSlingShot)
Set bsTrough = New cvpmBallStack ' Trough handler
bsTrough.InitSw 0,8,0,0,0,0,0,0
bsTrough.InitKick Kickout, 60, 4
bsTrough.Balls = 1
Set dtDrop = New cvpmDropTarget
dtDrop.InitDrop Array(Target1,Target2,Target3,Target4,Target5),Array(1,2,3,4,5)
'dtDrop.InitSnd "Drop","Reset"
Set bsSaucer = New cvpmBallStack
bsSaucer.InitSaucer GrottoKicker,32,0,20
'bsSaucer.InitExitSnd "Saucer","Saucer"
if Controller.Dip(0)+Controller.Dip(1)+Controller.Dip(2)+Controller.Dip(3) < 1 then Controller.Pause=true : msgBox "Please select your game options!" & vbNewLine & "You will only have to do this once!" : vpmShowDips : Controller.Pause=false
CheckInstructionCards
Dim DesktopMode:DesktopMode = Table1.ShowDT
If DesktopMode = True Then
For each xx in aSDO
xx.visible = 0
Next
Light1Player.visible = 1
Light2Player.visible = 1
Light3Player.visible = 1
Light4Player.visible = 1
BallInPlayLight.visible = 1
MatchLight.visible = 1
GameOverLight.visible = 1
Light57.visible = 1
Light58.visible = 1
Light59.visible = 1
Ramp1730.visible = True
Ramp1729.visible = True
Ramp1731.visible = True
Ramp1732.visible = True
Ramp1.visible = True
Flasherlight5.visible= True
Controller.Hidden=0
End If
If DesktopMode = False Then
For each xx in aSDO
xx.visible = 0
Next
Light1Player.visible = 0
Light2Player.visible = 0
Light3Player.visible = 0
Light4Player.visible = 0
BallInPlayLight.visible = 0
MatchLight.visible = 0
GameOverLight.visible = 0
Light57.visible = 0
Light58.visible = 0
Light59.visible = 0
Ramp1730.visible = False
Ramp1729.visible = False
Ramp1731.visible = False
Ramp1732.visible = False
Ramp1.visible = False
Flasherlight5.visible= False
Controller.Hidden=1
End If
End Sub
Sub SetBallDip
With Controller
.Dip(0) = &HE2 '.Dip(0) = &H44
.Dip(2) = &HD1 '.Dip(2) = &HDD
.Dip(3) = &H01 '.Dip(3) = &H01
if balls < 4 then ' For 3 balls per game
.Dip(1) = &H6A
else ' For 5 balls per game
.Dip(1) = &HEA
end if
end with
End Sub
'*****************************************************
'* Fluppers Flashers *
'*****************************************************
Dim FlashLevel1, FlashLevel2, FlashLevel3, FlashLevel4, FlashLevel5
FlasherLight1.IntensityScale = 0
Flasherlight2.IntensityScale = 0
Flasherlight3.IntensityScale = 0
Flasherlight4.IntensityScale = 0
Flasherlight5.IntensityScale = 0
'*** blue flasher ***
Sub FlasherFlash1_Timer()
dim flashx3, matdim
If not Flasherflash1.TimerEnabled Then
Flasherflash1.TimerEnabled = True
Flasherflash1.visible = 1
Flasherlit1.visible = 1
End If
flashx3 = FlashLevel1 * FlashLevel1 * FlashLevel1
Flasherflash1.opacity = 8000 * flashx3
Flasherlit1.BlendDisableLighting = 10 * flashx3
Flasherbase1.BlendDisableLighting = flashx3
Flasherlight1.IntensityScale = flashx3
matdim = Round(10 * FlashLevel1)
Flasherlit1.material = "domelit" & matdim
FlashLevel1 = FlashLevel1 * 0.85 - 0.01
If FlashLevel1 < 0.15 Then
Flasherlit1.visible = 0
Else
Flasherlit1.visible = 1
end If
If FlashLevel1 < 0 Then
Flasherflash1.TimerEnabled = False
Flasherflash1.visible = 0
End If
End Sub
'*** blue flasher ***
Sub FlasherFlash2_Timer()
dim flashx3, matdim
If not Flasherflash2.TimerEnabled Then
Flasherflash2.TimerEnabled = True
Flasherflash2.visible = 1
Flasherlit2.visible = 1
End If
flashx3 = FlashLevel2 * FlashLevel2 * FlashLevel2
Flasherflash2.opacity = 8000 * flashx3
Flasherlit2.BlendDisableLighting = 10 * flashx3
Flasherbase2.BlendDisableLighting = flashx3
Flasherlight2.IntensityScale = flashx3
matdim = Round(10 * FlashLevel2)
Flasherlit2.material = "domelit" & matdim
FlashLevel2 = FlashLevel2 * 0.85 - 0.01
If FlashLevel2 < 0.15 Then
Flasherlit2.visible = 0
Else
Flasherlit2.visible = 1
end If
If FlashLevel2 < 0 Then
Flasherflash2.TimerEnabled = False
Flasherflash2.visible = 0
End If
End Sub
'*** Red flasher ***
Sub FlasherFlash3_Timer()
dim flashx3, matdim
If not Flasherflash3.TimerEnabled Then
Flasherflash3.TimerEnabled = True
Flasherflash3.visible = 1
Flasherlit3.visible = 1
End If
flashx3 = FlashLevel3 * FlashLevel3 * FlashLevel3
Flasherflash3.opacity = 1500 * flashx3
Flasherlit3.BlendDisableLighting = 10 * flashx3
Flasherbase3.BlendDisableLighting = flashx3
Flasherlight3.IntensityScale = flashx3
matdim = Round(10 * FlashLevel3)
Flasherlit3.material = "domelit" & matdim
FlashLevel3 = FlashLevel3 * 0.9 - 0.01
If FlashLevel3 < 0.15 Then
Flasherlit3.visible = 0
Else
Flasherlit3.visible = 1
end If
If FlashLevel3 < 0 Then
Flasherflash3.TimerEnabled = False
Flasherflash3.visible = 0
End If
End Sub
'*** Red flasher ***
Sub FlasherFlash4_Timer()
dim flashx3, matdim
If not Flasherflash4.TimerEnabled Then
Flasherflash4.TimerEnabled = True
Flasherflash4.visible = 1
Flasherlit4.visible = 1
End If
flashx3 = FlashLevel4 * FlashLevel4 * FlashLevel4
Flasherflash4.opacity = 1500 * flashx3
Flasherlit4.BlendDisableLighting = 10 * flashx3
Flasherbase4.BlendDisableLighting = flashx3
Flasherlight4.IntensityScale = flashx3
matdim = Round(10 * FlashLevel4)
Flasherlit4.material = "domelit" & matdim
FlashLevel4 = FlashLevel4 * 0.9 - 0.01
If FlashLevel4 < 0.15 Then
Flasherlit4.visible = 0
Else
Flasherlit4.visible = 1
end If
If FlashLevel4 < 0 Then
Flasherflash4.TimerEnabled = False
Flasherflash4.visible = 0
End If
End Sub
'*** Red flasher ***
Sub FlasherFlash5_Timer()
dim flashx3, matdim
If not Flasherflash5.TimerEnabled Then
Flasherflash5.TimerEnabled = True
Flasherflash5.visible = 1
Flasherlit5.visible = 1
End If
flashx3 = FlashLevel5 * FlashLevel5 * FlashLevel5
Flasherflash5.opacity = 1500 * flashx3
Flasherlit5.BlendDisableLighting = 10 * flashx3
Flasherbase5.BlendDisableLighting = flashx3
Flasherlight5.IntensityScale = flashx3
matdim = Round(10 * FlashLevel5)
Flasherlit5.material = "domelit" & matdim
FlashLevel5 = FlashLevel5 * 0.9 - 0.01
If FlashLevel5 < 0.15 Then
Flasherlit5.visible = 0
Else
Flasherlit5.visible = 1
end If
If FlashLevel5 < 0 Then
Flasherflash5.TimerEnabled = False
Flasherflash5.visible = 0
End If
End Sub
'***********************************************
Dim AA
AA=0
Sub Flr_Timer
Dim x
x = INT(4 * RND(1) )
Select Case x
Case 0:FlashLevel1 = 1 : FlasherFlash1_Timer
Case 1:FlashLevel3 = 1 : FlasherFlash3_Timer
Case 2:FlashLevel2 = 1 : FlasherFlash2_Timer
Case 3:FlashLevel4 = 1 : FlasherFlash4_Timer
End Select
end sub
Sub Fll_Timer
FlashLevel3 = 1 : FlasherFlash3_Timer
end sub
Sub Flu_Timer
If AA=0 Then FlashLevel2 = 1 : FlasherFlash2_Timer:AA=1:Exit Sub
If AA=1 Then FlashLevel1 = 1 : FlasherFlash1_Timer:AA=0
end sub
Sub Flashoff_Timer
Fll.enabled=false
Flu.enabled=false
Flr.enabled=false
Flashoff.enabled=false
end sub
Sub GiEffect(value) ' value is the duration of the blink
Dim x
For each x in aGi
x.Duration 2, 500 * value, 1
Next
End Sub
'*****************************************************
'* Drop Targets *
'*****************************************************
Sub Target1_Hit : PlaySoundAtVol SoundFX("Drop",DOFContactors) , ActiveBall, VolTarg: Controller.Switch(1) = True :PlaySound"0joe00zd": End Sub
Sub Target2_Hit : PlaySoundAtVol SoundFX("Drop",DOFContactors) , ActiveBall, VolTarg: Controller.Switch(2) = True :PlaySound"0joe00zd": End Sub
Sub Target3_Hit : PlaySoundAtVol SoundFX("Drop",DOFContactors) , ActiveBall, VolTarg: Controller.Switch(3) = True :PlaySound"0joe00zd": End Sub
Sub Target4_Hit : PlaySoundAtVol SoundFX("Drop",DOFContactors) , ActiveBall, VolTarg: Controller.Switch(4) = True :PlaySound"0joe00zd": End Sub
Sub Target5_Hit : PlaySoundAtVol SoundFX("Drop",DOFContactors) , ActiveBall, VolTarg: Controller.Switch(5) = True :PlaySound"0joe00zd": End Sub
Sub SolTargetReset(enabled)
if enabled then PlaySoundAtVol SoundFX("Reset",DOFContactors), Target3, VolTarg
dtDrop.SolDropUp enabled
End Sub
'*****************************************************
'* Keyboard Handlers *
'*****************************************************
Sub Table1_KeyDown(ByVal keycode)
If keycode = LeftTiltKey Then Nudge 90, 5:PlaySound SoundFX("nudge", 0), 0, 1, -0.1, 0.25
If keycode = RightTiltKey Then Nudge 270, 5:PlaySound SoundFX("nudge", 0), 0, 1, 0.1, 0.25
If keycode = CenterTiltKey Then Nudge 0, 6:PlaySound SoundFX("nudge", 0), 0, 1, 0, 0.25
If KeyCode=PlungerKey Then Plunger.Pullback:PlaySoundAtVol SoundFX("PlungerPull",DOFContactors), Plunger, 1
If vpmKeyDown(KeyCode) Then Exit Sub
End Sub
Sub Table1_KeyUp(ByVal keycode)
If KeyCode = 6 Then
PlaySoundAtVol"coin", Drain, 1
Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=1500
Dim x
x = INT(10 * RND(1) )
Select Case x
Case 0:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00a"
Case 1:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00b"
Case 2:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00c"
Case 3:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00d"
Case 4:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00v"
Case 5:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00q"
Case 6:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00r"
Case 7:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00y"
Case 8:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00z"
Case 9:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joekick09a"
End Select
end if
If KeyCode = 4 Then
PlaySoundAtVol"coin", Drain, 1
Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=1500
Dim y
y = INT(10 * RND(1) )
Select Case y
Case 0:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00a"
Case 1:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00b"
Case 2:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00c"
Case 3:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00d"
Case 4:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00v"
Case 5:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00q"
Case 6:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00r"
Case 7:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00y"
Case 8:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joe00z"
Case 9:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00p":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joe00v":StopSound"0joe00y":StopSound"0joe00z":StopSound"0joekick09a":PlaySound"0joekick09a"
End Select
end if
If KeyCode = 2 Then
EndMusic:StopSound"0joe00a":StopSound"0joe00b":StopSound"0joe00c":StopSound"0joe00d":StopSound"0joe00v":StopSound"0joe00q":StopSound"0joe00r":StopSound"0joekick04":StopSound"0joe00zb":StopSound"0joe00zc"
Dim v
v = INT(3 * RND(1) )
Select Case v
Case 0:Flr.enabled=false:Playsound("0joekick04")
Case 1:Flr.enabled=false:Playsound("0joe00zb")
Case 2:Flr.enabled=false:Playsound("0joe00zc")
End Select
End If
If KeyCode=PlungerKey Then Plunger.Fire:PlaySoundAtVol SoundFX("Plunger",DOFContactors), ActiveBall, 1
If KeyCode = LeftMagnaSave And RightMagnaSave Then ScreenTimer.Enabled = True
If vpmKeyUp(KeyCode) Then Exit Sub
End Sub
'Plunger Switch
Sub Trigger1_Hit():Drain.timerenabled=0:BallReleaseGate.timerenabled=0:GTrigger.timerenabled=0:RTrigger.timerenabled=0:ITrigger.timerenabled=0:GateR.timerenabled=0:StopSound"0joe00w":StopSound"0joe00p":PlaySound"0joe00l"
Flu.enabled=true:Flu.interval=300
Flr.enabled=False
Dim z
z = INT(4 * RND(1) )
Select Case z
Case 0:PlayMusic"0joe01ab.mp3":GateL.timerinterval=76050:GateL.timerenabled=1
Case 1:PlayMusic"0joe02ab.mp3":GateL.timerinterval=57400:GateL.timerenabled=1
Case 2:PlayMusic"0joe03ab.mp3":GateL.timerinterval=34360:GateL.timerenabled=1
Case 3:PlayMusic"0joe04ab.mp3":GateL.timerinterval=61400:GateL.timerenabled=1
End Select
End Sub
'*****************************************************
'* Flippers *
'*****************************************************
Sub SolLFlipper(Enabled)
If Enabled Then
PlaySoundAtVol SoundFX("FlipperUp",DOFContactors),Flipper1,VolFlip:Flipper1.RotateToEnd
Else
PlaySoundAtVol SoundFX("FlipperDown",DOFContactors),Flipper1,VolFlip:Flipper1.RotateToStart
End If
End Sub
Sub SolRFlipper(Enabled)
If Enabled Then
PlaySoundAtVol SoundFX("FlipperUp",DOFContactors),Flipper2,VolFlip:Flipper2.RotateToEnd
Else
PlaySoundAtVol SoundFX("FlipperDown",DOFContactors),Flipper2,VolFlip:Flipper2.RotateToStart
End If
End Sub
Sub FlipperTimer_Timer()
LFlip.RotY = Flipper1.CurrentAngle
RFlip.RotY = Flipper2.CurrentAngle
End Sub
'*****************************************************
'* Sling Shots *
'*****************************************************
Dim RStep, Lstep
Sub RightSlingShot_Slingshot : vpmTimer.PulseSwitch 36, 0, 0
PlaySoundAtVol SoundFX("SlingShot",DOFContactors), sling1, 1
PlaySound"0joe00i"
RSling.Visible = 0
RSling1.Visible = 1
sling1.TransZ = -20
RStep = 0
RightSlingShot.TimerEnabled = 1
End Sub
Sub RightSlingShot_Timer
Select Case RStep
Case 3:RSLing1.Visible = 0:RSLing2.Visible = 1:sling1.TransZ = -10
Case 4:RSLing2.Visible = 0:RSLing.Visible = 1:sling1.TransZ = 0:RightSlingShot.TimerEnabled=0
End Select
RStep = RStep + 1
End Sub
Sub LeftSlingShot_Slingshot : vpmTimer.PulseSwitch 37, 0, 0
PlaySoundAtVol SoundFX("SlingShot",DOFContactors), sling2, 1
PlaySound"0joe00i"
LSling.Visible = 0
LSling1.Visible = 1
sling2.TransZ = -20
LStep = 0
LeftSlingShot.TimerEnabled = 1
End Sub
Sub LeftSlingShot_Timer
Select Case LStep
Case 3:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.TransZ = -10
Case 4:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.TransZ = 0:LeftSlingShot.TimerEnabled=0
End Select
LStep = LStep + 1
End Sub
'*****************************************************
'* Gates *
'*****************************************************
Sub GateTimer_Timer()
GateRP.RotZ = ABS(GateR.currentangle)
GateLP.RotZ = ABS(GateL.currentangle)
End Sub
Sub GateR_Hit():PlaySoundAtVol "gate2", ActiveBall, 1:BallReleaseGate.timerenabled=0:GTrigger.timerenabled=0
End Sub
Sub GateR_timer
Dim x
x = INT(3 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe00.mp3":ITrigger.timerinterval=60500:ITrigger.timerenabled=1
Case 1:PlayMusic"0joe20.mp3":ITrigger.timerinterval=188000:ITrigger.timerenabled=1
Case 2:PlayMusic"0joe21.mp3":ITrigger.timerinterval=54000:ITrigger.timerenabled=1
End Select
GateR.timerenabled=0
End sub
Sub GateL_Hit():PlaySoundAtVol "gate2", ActiveBall, 1
End Sub
Sub GateL_timer
Dim x
x = INT(4 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe01ab.mp3":GrottoGate.timerinterval=76050:GrottoGate.timerenabled=1
Case 1:PlayMusic"0joe02ab.mp3":GrottoGate.timerinterval=57400:GrottoGate.timerenabled=1
Case 2:PlayMusic"0joe03ab.mp3":GrottoGate.timerinterval=34360:GrottoGate.timerenabled=1
Case 3:PlayMusic"0joe04ab.mp3":GrottoGate.timerinterval=61400:GrottoGate.timerenabled=1
End Select
GateL.timerenabled=0
End sub
Sub GrottoGate_Hit():PlaySoundAtVol "gate2", ActiveBall, 1:End Sub
Sub GrottoGate_timer
Dim x
x = INT(4 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe01ab.mp3":GateL.timerinterval=76050:GateL.timerenabled=1
Case 1:PlayMusic"0joe02ab.mp3":GateL.timerinterval=57400:GateL.timerenabled=1
Case 2:PlayMusic"0joe03ab.mp3":GateL.timerinterval=34360:GateL.timerenabled=1
Case 3:PlayMusic"0joe04ab.mp3":GateL.timerinterval=61400:GateL.timerenabled=1
End Select
GrottoGate.timerenabled=0
End sub
Sub BallReleaseGate_Hit():PlaySoundAtVol "gate2", ActiveBall, 1:GateR.timerenabled=0:EndMusic:PlaySound"0joe00h":PlaySound"0joe00p":GTrigger.timerinterval=4000:GTrigger.timerenabled=1:ITrigger.timerenabled=0:RTrigger.timerinterval=20000:RTrigger.timerenabled=1:GiEffect 3:End Sub
'*****************************************************
'* Switch Handling *
'*****************************************************
Sub GTrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1: Controller.Switch(21) = True :GateR.timerenabled=0
Flu.enabled=false
Dim x
x = INT(5 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00f"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00u"
Case 4:PlaySound"0joe00m"
End Select
End Sub
Sub GTrigger_Timer:PlaySound"0joe00p":End Sub
Sub GTrigger_UnHit : Controller.Switch(21) = False : End Sub
Sub ITrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(20) = True :GateR.timerenabled=0
Flu.enabled=false
Dim x
x = INT(5 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00f"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00u"
Case 4:PlaySound"0joe00m"
End Select
End Sub
Sub ITrigger_Timer
Dim x
x = INT(12 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe22.mp3":GateR.timerinterval=38000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=38000
Case 1:PlayMusic"0joe23.mp3":GateR.timerinterval=26000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=26000
Case 2:PlayMusic"0joe24.mp3":GateR.timerinterval=51000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=51000
Case 3:PlayMusic"0joe25.mp3":GateR.timerinterval=46000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=46000
Case 4:PlayMusic"0joe26.mp3":GateR.timerinterval=43000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=43000
Case 5:PlayMusic"0joe27.mp3":GateR.timerinterval=54000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=54000
Case 6:PlayMusic"0joe28.mp3":GateR.timerinterval=36000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=36000
Case 7:PlayMusic"0joe29.mp3":GateR.timerinterval=23000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=23000
Case 8:PlayMusic"0joe30.mp3":GateR.timerinterval=31000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=31000
Case 9:PlayMusic"0joe31.mp3":GateR.timerinterval=31000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=31000
Case 10:PlayMusic"0joe32.mp3":GateR.timerinterval=31000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=31000
Case 11:PlayMusic"0joe33.mp3":GateR.timerinterval=31000:GateR.timerenabled=1:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=31000
End Select
ITrigger.timerenabled=0
End Sub
Sub ITrigger_UnHit : Controller.Switch(20) = False : End Sub
Sub RTrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(19) = True :GateR.timerenabled=0
Flu.enabled=false
Dim x
x = INT(5 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00f"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00u"
Case 4:PlaySound"0joe00m"
End Select
End Sub
Sub RTrigger_Timer:Dim x:x = INT(2 * RND(1) ):Select Case x:Case 0:PlaySound"0joe00w":Case 1:PlaySound"0joe00x":End Select:Flr.enabled=true:Flr.interval=100:Flashoff.enabled=true:Flashoff.interval=3000: End Sub
Sub RTrigger_UnHit : Controller.Switch(19) = False : End Sub
Sub LTrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(18) = True :GateR.timerenabled=0
Flu.enabled=false
Dim x
x = INT(5 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00f"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00u"
Case 4:PlaySound"0joe00m"
End Select
End Sub
Sub LTrigger_UnHit : Controller.Switch(18) = False : End Sub
Sub RightOutlane_Hit :PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(22) = True :PlaySound"0joe00j": End Sub
Sub RightOutlane_UnHit : Controller.Switch(22) = False : End Sub
Sub LeftOutlane_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(23) = True :PlaySound"0joe00j": End Sub
Sub LeftOutlane_UnHit : Controller.Switch(23) = False : End Sub
Sub RightInlane_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(24) = True
Dim x
x = INT(5 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00f"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00u"
Case 4:PlaySound"0joe00m"
End Select
End Sub
Sub RightInlane_UnHit : Controller.Switch(24) = False : End Sub
Sub StarTrigger_Hit : Controller.Switch(30) = True
Dim x
x = INT(3 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00m"
Case 1:PlaySound"0joe00n"
Case 2:PlaySound"0joe00o"
End Select
End Sub
Sub StarTrigger_UnHit : Controller.Switch(30) = False : End Sub
Sub FivekTrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(31) = True
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00e"
Case 1:PlaySound"0joe00d"
Case 2:PlaySound"0joe00h"
Case 3:PlaySound"0joe00o"
Case 4:PlaySound"0joe00m"
Case 5:PlaySound"0joe00t"
Case 6:PlaySound"0joe00u"
Case 7:PlaySound"0joe00za"
End Select
End Sub
Sub FivekTrigger_UnHit : Controller.Switch(31) = False : End Sub
Sub GrottoTrigger_Hit : PlaySoundAtVol "Rollover" , ActiveBall, 1:Controller.Switch(24) = True : End Sub
Sub GrottoTrigger_UnHit : Controller.Switch(24) = False : End Sub
' Sub Drain_Hit : ClearBallID : bsTrough.AddBall Me : PlaySound "Drain" :FlashLevel4 = 1 : FlasherFlash4_Timer
Sub Drain_Hit : bsTrough.AddBall Me : PlaySoundAtVol "Drain" , Drain, 1:FlashLevel4 = 1 : FlasherFlash4_Timer
Dim x
x = INT(22 * RND(1) )
Select Case x
Case 0:EndMusic:PlaySound"0joedrain01":Drain.timerinterval=6000:Drain.timerenabled=1
Case 1:EndMusic:PlaySound"0joedrain02":Drain.timerinterval=3000:Drain.timerenabled=1
Case 2:EndMusic:PlaySound"0joedrain03":Drain.timerinterval=3000:Drain.timerenabled=1
Case 3:EndMusic:PlaySound"0joedrain04":Drain.timerinterval=5000:Drain.timerenabled=1
Case 4:EndMusic:PlaySound"0joedrain05":Drain.timerinterval=4000:Drain.timerenabled=1
Case 5:EndMusic:PlaySound"0joedrain06":Drain.timerinterval=6000:Drain.timerenabled=1
Case 6:EndMusic:PlaySound"0joedrain07":Drain.timerinterval=5000:Drain.timerenabled=1
Case 7:EndMusic:PlaySound"0joedrain08":Drain.timerinterval=6000:Drain.timerenabled=1
Case 8:EndMusic:PlaySound"0joedrain09":Drain.timerinterval=4000:Drain.timerenabled=1
Case 9:EndMusic:PlaySound"0joedrain10":Drain.timerinterval=7000:Drain.timerenabled=1
Case 10:EndMusic:PlaySound"0joedrain11":Drain.timerinterval=6000:Drain.timerenabled=1
Case 11:EndMusic:PlaySound"0joedrain12":Drain.timerinterval=6000:Drain.timerenabled=1
Case 12:EndMusic:PlaySound"0joedrain13":Drain.timerinterval=6000:Drain.timerenabled=1
Case 13:EndMusic:PlaySound"0joedrain14":Drain.timerinterval=5000:Drain.timerenabled=1
Case 14:EndMusic:PlaySound"0joedrain15":Drain.timerinterval=6000:Drain.timerenabled=1
Case 15:EndMusic:PlaySound"0joedrain16":Drain.timerinterval=4000:Drain.timerenabled=1
Case 16:EndMusic:PlaySound"0joedrain17":Drain.timerinterval=6000:Drain.timerenabled=1
Case 17:EndMusic:PlaySound"0joedrain18":Drain.timerinterval=5000:Drain.timerenabled=1
Case 18:EndMusic:PlaySound"0joedrain19":Drain.timerinterval=4000:Drain.timerenabled=1
Case 19:EndMusic:PlaySound"0joedrain20":Drain.timerinterval=6000:Drain.timerenabled=1
Case 20:EndMusic:PlaySound"0joedrain21":Drain.timerinterval=5000:Drain.timerenabled=1
Case 21:EndMusic:PlaySound"0joedrain22":Drain.timerinterval=9000:Drain.timerenabled=1
End Select
BallReleaseGate.timerenabled=1
GrottoGate.timerenabled=0
GateL.timerenabled=0
End Sub
Sub drain_timer
Dim x
x = INT(2 * RND(1) )
Select Case x
Case 0:PlayMusic"0joe18.mp3":ITrigger.timerinterval=43000:ITrigger.timerenabled=1
Case 1:PlayMusic"0joe19.mp3":ITrigger.timerinterval=42000:ITrigger.timerenabled=1
End Select
Drain.timerenabled=0
End sub
Sub GrottoKicker_Hit : bsSaucer.AddBall 0
GiEffect 8
Fll.enabled=true:Fll.interval=400
Dim x
x = INT(42 * RND(1) )
Select Case x
Case 0:PlaySound"0joekick01"
Case 1:PlaySound"0joekick02"
Case 2:PlaySound"0joekick03"
Case 3:PlaySound"0joekick04"
Case 4:PlaySound"0joekick05"
Case 5:PlaySound"0joekick06"
Case 6:PlaySound"0joekick07"
Case 7:PlaySound"0joekick08"
Case 8:PlaySound"0joekick09"
Case 9:PlaySound"0joekick10"
Case 10:PlaySound"0joekick11"
Case 11:PlaySound"0joekick12"
Case 12:PlaySound"0joekick13"
Case 13:PlaySound"0joekick14"
Case 14:PlaySound"0joekick15"
Case 15:PlaySound"0joekick16"
Case 16:PlaySound"0joekick17"
Case 17:PlaySound"0joekick18"
Case 18:PlaySound"0joekick19"
Case 19:PlaySound"0joekick20"
Case 20:PlaySound"0joekick21"
Case 21:PlaySound"0joekick22"
Case 22:PlaySound"0joekick23"
Case 23:PlaySound"0joekick24"
Case 24:PlaySound"0joekick25"
Case 25:PlaySound"0joekick26"
Case 26:PlaySound"0joekick27"
Case 27:PlaySound"0joekick28"
Case 28:PlaySound"0joekick29"
Case 29:PlaySound"0joekick30"
Case 30:PlaySound"0joekick31"
Case 31:PlaySound"0joekick32"
Case 32:PlaySound"0joekick33"
Case 33:PlaySound"0joekick34"
Case 34:PlaySound"0joekick35"
Case 35:PlaySound"0joekick36"
Case 36:PlaySound"0joekick37"
Case 37:PlaySound"0joekick38"
Case 38:PlaySound"0joekick39"
Case 39:PlaySound"0joekick40"
Case 40:PlaySound"0joekick41"
Case 41:PlaySound"0joekick42"
End Select
End Sub
Sub GrottoKicker_UnHit :Fll.enabled=False:Flu.enabled=true:Flu.interval=300:PlaySoundAtVol SoundFX("ballrelease",DOFContactors), ActiveBall, 1
End Sub
Sub KickOut_UnHit :PlaySoundAtVol SoundFX("ballrelease",DOFContactors), ActiveBall, 1:Drain.timerenabled=0: End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Switch Handling '
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub DropTargetSlingshot_Slingshot : vpmTimer.PulseSwitch 33, 0, 0 : End Sub
Sub Bumper2_Hit : PlaySoundAtVol SoundFX("Bumper",DOFContactors),Bumper2,VolBump:vpmTimer.PulseSwitch 38, 0, 0 :PlaySound"0joe00k":FlashLevel1 = 1 : FlasherFlash1_Timer:FlashLevel5 = 1 : FlasherFlash5_Timer: End Sub
Sub Bumper1_Hit : PlaySoundAtVol SoundFX("Bumper",DOFContactors),Bumper1,VolBump:vpmTimer.PulseSwitch 39, 0, 0 :PlaySound"0joe00k":FlashLevel2 = 1 : FlasherFlash2_Timer:FlashLevel5 = 1 : FlasherFlash5_Timer: End Sub
Sub Bumper3_Hit : PlaySoundAtVol SoundFX("Bumper",DOFContactors),Bumper3,VolBump:vpmTimer.PulseSwitch 40, 0, 0 :PlaySound"0joe00k":FlashLevel1 = 1 : FlasherFlash1_Timer:FlashLevel2 = 1 : FlasherFlash2_Timer:FlashLevel5 = 1 : FlasherFlash5_Timer: End Sub
'*****************************************************
'* Model And S Targets *
'*****************************************************
Sub sw17_Hit:vpmTimer.PulseSw 17:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
Sub sw25_Hit:vpmTimer.PulseSw 25:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
Sub sw26_Hit:vpmTimer.PulseSw 26:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
Sub sw27_Hit:vpmTimer.PulseSw 27:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
Sub sw28_Hit:vpmTimer.PulseSw 28:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
Sub sw29_Hit:vpmTimer.PulseSw 29:Me.TimerEnabled = 1:PlaySoundAtVol SoundFX("Target",DOFContactors), ActiveBall, 1:
If h = True Then
ScreenTimer.Enabled = True:GiEffect 2
End If
Dim x
x = INT(8 * RND(1) )
Select Case x
Case 0:PlaySound"0joe00s"
Case 1:PlaySound"0joe00a"
Case 2:PlaySound"0joe00k"
Case 3:PlaySound"0joe00b"
Case 4:PlaySound"0joe00v"
Case 5:PlaySound"0joe00c"
Case 6:PlaySound"0joe00s"
Case 7:PlaySound"0joe00y"
End Select
FlashLevel3 = 1 : FlasherFlash3_Timer
End Sub
'*****************************************************
'* Projector Handling *
'*****************************************************
balls = 3
scount = 388 ' How many different screens?
brain = 1 ' Contains the present screen
h = False ' Projector off
Sub ScreenTimer_Timer 'here are the changing of pics
' screens(brain - 1).IsDropped = True
If brain = scount Then
brain = 1
End If
' screens(brain).IsDropped = False
Projector.Image = "pic"&brain
ScreenTimer.Enabled = False
brain = brain + 1
End Sub
Sub ProjectorOff() 'cut-off projector
' screens(brain-1).IsDropped = True
' screens(0).IsDropped = False
Projector.Image = "pic0"
brain = 1 'reset to first pic at cut-off (like original???)
h = False
End Sub
Sub ProjectorOn() 'switch projector on
h = True
End Sub
'*****************************************************
'* Instruction Cards *
'*****************************************************
Sub CheckInstructionCards()
If Language = 0 Then
InstructionsL.image = "IGL"
If NumOfBalls = 0 Then
InstructionsR.image = "IGR3-ball"
Else
InstructionsR.image = "IGR5-ball"
End If
Else
InstructionsL.image = "IEL"
If NumOfBalls = 0 Then
InstructionsR.image = "IER3-ball"
Else
InstructionsR.image = "IER5-ball"
End If
End If
End Sub
'*****************************************************
'* Lights *
'*****************************************************
Set Lights(15) = Light1Player
Set Lights(31) = Light2Player
Set Lights(47) = Light3Player
Set Lights(63) = Light4Player
Set Lights(13) = BallInPlayLight
Set Lights(1) = Light1k
Set Lights(17) = Light2k
Set Lights(33) = Light3k