-
Notifications
You must be signed in to change notification settings - Fork 37
/
Back To The Future (Data East 1990) 1.3.vbs
3028 lines (2447 loc) · 91.4 KB
/
Back To The Future (Data East 1990) 1.3.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
' Back to the Future Collectors Edition
' Based on Back to the Future / IPD No. 126 / Data East June, 1990 / 4 Players
' VP911 version 1.0 by JPSalas Mars 2011
' VPX version 1.0 - cyberpez
Option Explicit
Randomize
' Thalamus 2018-07-19
' Added/Updated "Positional Sound Playback Functions" and "Supporting Ball & Sound Functions"
' Changed UseSolenoids=1 to 2
' Thalamus 2018-08-09 : Improved directional sounds
' !! NOTE : Table was never actually tested on 1.3 - it is recommended to get 1.4 instead.
' Options
' Volume devided by - lower gets higher sound
Const VolDiv = 2000 ' 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 VolRol = 1 ' Rollovers volume.
Const VolGates = 1 ' Gates volume.
Const VolMetal = 1 ' Metals volume.
Const VolRB = 1 ' Rubber bands volume.
Const VolRH = 1 ' Rubber hits volume.
Const VolPo = 1 ' Rubber posts volume.
Const VolPi = 1 ' Rubber pins volume.
Const VolPlast = 1 ' Plastics volume.
Const VolTarg = 1 ' Targets volume.
Const VolWood = 1 ' Woods volume.
Const VolKick = 1 ' Kicker volume.
Const VolSpin = 1.5 ' Spinners volume.
Const VolFlip = 1 ' Flipper volume.
Const VolSens = 1 ' Sensors volume.
Dim InstructionCardsLeft, InstructionCardsRight, FlipperColor, SolidStateSitcker, BallRadius, BallMass, GIColorMod, LeftHillValleyMod, RightHillValleyMod, DeloreanColorMod, PlasticProtectors, BallMod, WobblePlastic, HologramUpdateStep, IsItMultiball, HologramPhoto, BallsLocked, BallsInPlay, enableBallControl, musicsnippet, RubberColor
Dim DesktopMode: DesktopMode = bttf.ShowDT
'***************************************************************************'
'***************************************************************************'
' OPTIONS
'***************************************************************************'
'***************************************************************************'
'Ball Mod
'0=Normal balls
'1=Yellow/Orange/Red balls
BallMod = 0
'GI ColorMod
''0 = Random
''1 = normal
''2 = Blue / Yellow /
''3 = Blue / Pink /
GIColorMod = 1
'Hill Valley box ColorMod
LeftHillValleyMod = 0
RightHillValleyMod = 0
'Delorean ColorMod
'0 = white
'1 = red
DeloreanColorMod = 0
'Plastic Protectors
'0 = Random
'1 = Clear
'2 = BlackLight Yellow
'3 = BlackLight Red
'4 = BlackLight Orange
PlasticProtectors = 1
'''''''''''''''''''''''''''''''''''''''''''''''
' Instruction Cards -- You can Mix and Match
'''''''''''''''''''''''''''''''''''''''''''''''
' -1 = No Cards
' 0 = Random
' 1 = Standard
' 2 = Alt1
' 3 = Alt2
InstructionCardsLeft = 1
InstructionCardsRight = 1
''''''''''''''''''''''''
'Hologram Photo
'(photo on apron changes as balls locked)
''''''''''''''''''''''''
'0 = No Hologram Photo
'1 = Show Hologram Photo
HologramPhoto = 0
''''''''''''''''''''''''''''''
' Flipper
''''''''''''''''''''''''''''''
'Flipper Colors
'0 = Random
'1 = White Flipper Black Rubber
'2 = White Flipper Red Rubber
'3 = White Flipper Yellow Rubber
'4 = Yellow Flipper Black Rubber
'5 = Yellow Flipper Red Rubber
'6 = Yellow Flipper Yellow Rubber
'7 = Metalic Yellow Flipper Black Rubber
'8 = Metalic Yellow Flipper Red Rubber
'9 = Metalic Yellow Flipper Yellow Rubber
FlipperColor = 2
'Solid State Sitcker
'0 = Random
'1 = None
'2 = Black
'3 = Red
'4 = Yellow
SolidStateSitcker = 2
'Intro music
'Play music snippet on game load.
'0 = Off
'1 = On
MusicSnippet = 0
' Wobble Plastic...
'0 = no Wobble
'1 = Wobbles
WobblePlastic = 1
' Rubber Color
'0-White
'1-Black
RubberColor = 0
'''''''''''''''''''''''''''''''''''''
'Ball Size and Weight
BallRadius = 25.5
BallMass = 1.7
enableBallControl = 0
'***************************************************************************'
'***************************************************************************'
' OPTIONS
'***************************************************************************'
'***************************************************************************'
' ======================--=======================================================================
' load game controller
' ===============================================================================================
On Error Resume Next
ExecuteGlobal GetTextFile("controller.vbs")
If Err Then MsgBox "You need the controller.vbs in order to run this table, available in the vp10 package"
On Error Goto 0
LoadVPM "01560000", "DE.VBS", 3.26
'********************
'Standard definitions
'********************
Const cGameName = "bttf_a27"
Const UseSolenoids = 2
Const UseLamps = 0
Const UseGI = 1
Const UseSync = 0
Const HandleMech = 0
' Standard Sounds
Const SSolenoidOn = "Solenoid"
Const SSolenoidOff = ""
Const SFlipperOn = "FlipperUp"
Const SFlipperOff = "FlipperDown"
Const SCoin = "Coin"
Dim bsTrough, bsVuk, bsTR, vLock, x, bump1, bump2, bump3, DTBank
Dim MaxBalls, InitTime, EjectTime, TroughEject, TroughCount, iBall, fgBall
'************
' Table init.
'************
Sub bttf_Init
vpmInit Me
With Controller
.GameName = cGameName
If Err Then MsgBox "Can't start Game " & cGameName & vbNewLine & Err.Description:Exit Sub
.SplashInfoLine = "Back to the Future Collectors Edition" & vbNewLine & "Data East - 1990"
' DMD position and size, example
'.Games(cGameName).Settings.Value("dmd_pos_x")=500
'.Games(cGameName).Settings.Value("dmd_pos_y")=2
'.Games(cGameName).Settings.Value("dmd_width")=400
'.Games(cGameName).Settings.Value("dmd_height")=90
.Games(cGameName).Settings.Value("rol") = 0 'rotate DMD to the left
.HandleKeyboard = 0
.ShowTitle = 0
.ShowDMDOnly = 1
.ShowFrame = 0
.HandleMechanics = 0
If DesktopMode = true then .hidden = 0 Else .hidden = 1 End If
.Run GetPlayerHWnd
If Err Then MsgBox Err.Description
On Error Goto 0
End With
' Nudging
vpmNudge.TiltSwitch = swTilt
vpmNudge.Sensitivity = 1
vpmNudge.TiltObj = Array(bumper1, bumper2, bumper3, LeftSlingshot, RightSlingshot)
' Drop Targets
Set DTBank = New cvpmDropTarget
With DTBank
.InitDrop Array(Array(sw41),Array(sw42),Array(sw43)), Array(41,42,43)
.InitSnd SoundFX("_droptarget",DOFDropTargets),SoundFX("resetdrop",DOFContactors)
End With
' Top Right Saucer
Set bsTR = New cvpmBallStack
With bsTR
.InitSaucer sw45, 45, 194, 10
.KickForceVar = 2
.KickBalls = 1
.InitExitSnd SoundFX("Popper",DOFContactors), SoundFX("Solenoid",DOFContactors)
End With
' Main Timer init
PinMAMETimer.Interval = PinMameInterval
PinMAMETimer.Enabled = 1
bump1 = 0:bump2 = 0:bump3 = 0
SolGi 1
CheckInstructionCards
SetFlipperColor
SetGIColor
StartLevel
SetHillValleyColorMod
SetDeloreanColorMod
SetRubberColor
Backdrop_Init
vpmInit me
' ball through system
MaxBalls=3
InitTime=61
EjectTime=0
TroughEject=1
TroughCount=0
iBall = 3
fgBall = false
CreatBalls
PrevGameOver = 0
End Sub
Sub bttf_Paused:Controller.Pause = 1:End Sub
Sub bttf_unPaused:Controller.Pause = 0:End Sub
'**********
' Keys
'**********
Sub bttf_KeyDown(ByVal Keycode)
If keycode = PlungerKey Then Plunger.Pullback:'Pcount = 0:'PTime.Enabled = 1
If keycode = LeftTiltKey Then
LeftNudge 270, 5
End If
If keycode = RightTiltKey Then
RightNudge 90, 5
End If
If keycode = CenterTiltKey Then
CenterNudge 0, 5
End If
'* Test Kicker
' If keycode = 37 Then TestKick ' K
' If keycode = 19 Then return_to_test ' R return ball to kicker
' If keycode = 46 Then create_testball ' C create ball ball in test kicker
' If keycode = 205 Then TKickAngle = TKickAngle + 3:fKickDirection.Visible=1:fKickDirection.RotZ=TKickAngle'+90 ' right arrow
' If keycode = 203 Then TKickAngle = TKickAngle - 3:fKickDirection.Visible=1:fKickDirection.RotZ=TKickAngle'+90 'left arrow
' If keycode = 200 Then TKickPower = TKickPower + 2:debug.print "TKickPower: "&TKickPower ' up arrow
' If keycode = 208 Then TKickPower = TKickPower - 2:debug.print "TKickPower: "&TKickPower ' down arrow
'* Ball Control
If enableBallControl Then
if keycode = 46 then ' C Key
If contball = 1 Then
contball = 0
Else
contball = 1
End If
End If
if keycode = 48 then 'B Key
If bcboost = 1 Then
bcboost = bcboostmulti
Else
bcboost = 1
End If
End If
if keycode = 203 then bcleft = 1 ' Left Arrow
if keycode = 200 then bcup = 1 ' Up Arrow
if keycode = 208 then bcdown = 1 ' Down Arrow
if keycode = 205 then bcright = 1 ' Right Arrow
End If
If vpmKeyDown(keycode) Then Exit Sub
If keycode = 21 then ''''''''''''''''''''y Key used for testing
pCRLock.collidable = false
pCRLock.RotZ = 50
End If
If keycode = 22 then ''''''''''''''''''''u Key used for testing
WobbleCount = 5
tWobblePlastic.Enabled = true
End If
End Sub
Sub bttf_KeyUp(ByVal Keycode)
If KeyUpHandler(KeyCode) Then Exit Sub
If keycode = PlungerKey Then Plunger.Fire:'PTime.Enabled = 0:Pcount = 0:PTime2.Enabled = 1
'* Test Kicker
' If keycode = 205 Then fKickDirection.Visible=0 ' right arrow
' If keycode = 203 Then fKickDirection.Visible=0 'left arrow
'* Ball Control
If enableBallControl Then
if keycode = 203 then bcleft = 0 ' Left Arrow
if keycode = 200 then bcup = 0 ' Up Arrow
if keycode = 208 then bcdown = 0 ' Down Arrow
if keycode = 205 then bcright = 0 ' Right Arrow
End If
End Sub
'******************************************************
' Test Kicker
'******************************************************
Dim TKickAngle, TKickPower, TKickBall
TKickAngle = 0
TKickPower = 10
Sub testkick()
test.kick TKickAngle,TKickPower
End Sub
Sub create_testball():Set TKickBall = test.CreateBall:End Sub
Sub test_hit():Set TKickBall=ActiveBall:End Sub
Sub return_to_test():TKickBall.velx=0:TKickBall.vely=0:TKickBall.x=test.x:TKickBall.y=test.y-50:test.timerenabled=0:End Sub
'#############################
' Rotate Primitive Things
'#############################
Const PI = 3.14
Dim Gate3Angle, Gate4Angle
'*********** Ball Control
Sub StartControl_Hit()
Set ControlBall = ActiveBall
contballinplay = true
End Sub
Sub StopControl_Hit()
contballinplay = false
End Sub
Dim bcup, bcdown, bcleft, bcright, contball, contballinplay, ControlBall, bcboost
Dim bcvel, bcyveloffset, bcboostmulti
bcboost = 1 'Do Not Change - default setting
bcvel = 4 'Controls the speed of the ball movement
bcyveloffset = -0.01 'Offsets the force of gravity to keep the ball from drifting vertically on the table, should be negative
bcboostmulti = 3 'Boost multiplier to ball veloctiy (toggled with the B key)
'*********** Ball Control
Dim prevgameover
Sub Timer_Timer()
p_gate1.Rotx = gate1.CurrentAngle + 120
p_gate2.Rotx = gate2.CurrentAngle
p_gate3.Rotx = gate3.CurrentAngle' + 90
Gate3Angle = Int(gate3.CurrentAngle)
If Gate3Angle > 0 then
pGate3_switch.ObjRotY = sin( (Gate3Angle * 1) * (2*PI/180)) * 10
Else
pGate3_switch.ObjRotY = sin( (Gate3Angle * -1) * (2*PI/180)) * 10
End If
Gate4Angle = Int(gate4.CurrentAngle)
If Gate4Angle > 0 then
pGate4_switch.ObjRotY = sin( (Gate4Angle * -1) * (2*PI/180)) * 10
Else
pGate4_switch.ObjRotY = sin( (Gate4Angle * 1) * (2*PI/180)) * 10
End If
p_gate4.Rotx = gate4.CurrentAngle' + 90
pLeftFlipperLogo.Roty = LeftFlipper.Currentangle' + 180
pLSS.Roty = LeftFlipper.Currentangle - 90
pRightFlipperLogo.Roty = RightFlipper.Currentangle' + 180
pRSS.Roty = RightFlipper.Currentangle - 90
pSpinner.RotX = sw28.Currentangle * -1
pSpinnerRod.TransX = sin( (sw28.CurrentAngle+180) * (2*PI/360)) * 5
pSpinnerRod.TransY = sin( (SW28.CurrentAngle- 90) * (2*PI/360)) * 5
'*********** Ball Control
If Contball and ContBallInPlay then
If bcright = 1 Then
ControlBall.velx = bcvel*bcboost
ElseIf bcleft = 1 Then
ControlBall.velx = - bcvel*bcboost
Else
ControlBall.velx=0
End If
If bcup = 1 Then
ControlBall.vely = -bcvel*bcboost
ElseIf bcdown = 1 Then
ControlBall.vely = bcvel*bcboost
Else
ControlBall.vely= bcyveloffset
End If
End If
'*********** Ball Control
End Sub
''''''''''''''''''''''''
''''Bubble Level
''''''''''''''''''''''''
Dim lBallY, lBallX
Sub StartLevel()
'Y
kLevel.Enabled = 1
Set lBallY = kLevel.CreateSizedBallWithMass(4, .008)
kLevel.kick 0, 0
kLevel.Enabled = 0
'X
kLevel1.Enabled = 1
Set lBallX = kLevel1.CreateSizedBallWithMass(4, .008)
kLevel1.kick 0, 0
kLevel1.Enabled = 0
End Sub
Sub Level_Timer()
xBubble.x = lBallX.x
yBubble.y = lBallY.y
End Sub
Sub LeftNudge(angle, strength)
Dim a
lBallX.velx = 2*(RND(1)-RND(1))
End Sub
Sub RightNudge(angle, strength)
Dim a
lBallX.velx = 2*(RND(1)-RND(1))
End Sub
Sub CenterNudge(angle, strength)
Dim a
kLevel.Enabled = 1
lBallY.vely = 2*(RND(1)-RND(1))
PlaySound SoundFX("knocker",DOFKnocker)
kLevel.Enabled = 0
End Sub
'******************************
' Setup Desktop
'******************************
Sub Backdrop_Init
Dim bdl
If DesktopMode = True then
l56c.visible = true
l34.visible = true
l35.visible = true
l36.visible = true
l37.visible = true
l38.visible = true
l39.visible = true
l47c.visible = true
''''Delorean Lights
l25d.BulbHaloHeight = 185
l26d.BulbHaloHeight = 185
l27d.BulbHaloHeight = 185
l28d.BulbHaloHeight = 185
l29d.BulbHaloHeight = 185
l30d.BulbHaloHeight = 185
l31d.BulbHaloHeight = 185
l32d.BulbHaloHeight = 185
Else
l56c.visible = false
l34.visible = false
l35.visible = false
l36.visible = false
l37.visible = false
l38.visible = false
l39.visible = false
l47c.visible = false
''''Delorean Lights
l25d.BulbHaloHeight = 175
l26d.BulbHaloHeight = 175
l27d.BulbHaloHeight = 175
l28d.BulbHaloHeight = 175
l29d.BulbHaloHeight = 175
l30d.BulbHaloHeight = 175
l31d.BulbHaloHeight = 175
l32d.BulbHaloHeight = 175
End If
End Sub
'''''''''''''''''''''''''''''''''
''''''''''''Set options
'''''''''''''''''''''''''''''''''
'Instruction Cards
Dim InstructionCardsLeftType, InstructionCardsRightType
Sub CheckInstructionCards()
If InstructionCardsLeft = 0 Then
InstructionCardsLeftType = Int(Rnd*3)+1
Else
InstructionCardsLeftType = InstructionCardsLeft
End If
If InstructionCardsLeftType = -1 Then
pInstructionCardLeft.visible = False
End If
If InstructionCardsLeftType = 1 Then
pInstructionCardLeft.image = "bttf_InstructionCardLeft1"
End If
If InstructionCardsLeftType = 2 Then
pInstructionCardLeft.image = "bttf_InstructionCardLeft2"
End If
If InstructionCardsLeftType = 3 Then
pInstructionCardLeft.image = "bttf_InstructionCardLeft3"
End If
If InstructionCardsRight = 0 Then
InstructionCardsRightType = Int(Rnd*3)+1
Else
InstructionCardsRightType = InstructionCardsRight
End If
If InstructionCardsRight = -1 Then
pInstructionCardRight.visible = False
End If
If InstructionCardsRightType = 1 Then
pInstructionCardRight.image = "bttf_InstructionCardRight1"
End If
If InstructionCardsRightType = 2 Then
pInstructionCardRight.image = "bttf_InstructionCardRight2"
End If
If InstructionCardsRightType = 3 Then
pInstructionCardRight.image = "bttf_InstructionCardRight3"
End If
'Hologram Photo
If HologramPhoto = 1 then
pHologram.Visible = True
Else
pHologram.Visible = False
End If
End Sub
''Flipper Color
Dim FlipperColorType
Sub SetFlipperColor()
If FlipperColor = 0 Then
FlipperColorType = Int(Rnd*9)+1
Else
FlipperColorType = FlipperColor
End If
If FlipperColorType = 1 Then
RightFlipper.Material = "Plastic White"
RightFlipper.RubberMaterial = "Rubber Black"
pRightFlipperLogo.Material = "Plastic White"
LeftFlipper.Material = "Plastic White"
LeftFlipper.RubberMaterial = "Rubber Black"
pLeftFlipperLogo.Material = "Plastic White"
End If
If FlipperColorType = 2 Then
RightFlipper.Material = "Plastic White"
RightFlipper.RubberMaterial = "Rubber Red"
pRightFlipperLogo.Material = "Plastic White"
LeftFlipper.Material = "Plastic White"
LeftFlipper.RubberMaterial = "Rubber Red"
pLeftFlipperLogo.Material = "Plastic White"
End If
If FlipperColorType = 3 Then
RightFlipper.Material = "Plastic White"
RightFlipper.RubberMaterial = "Rubber Yellow"
pRightFlipperLogo.Material = "Plastic White"
LeftFlipper.Material = "Plastic White"
LeftFlipper.RubberMaterial = "Rubber Yellow"
pLeftFlipperLogo.Material = "Plastic White"
End If
If FlipperColorType = 4 Then
RightFlipper.Material = "Plastic Yellow"
RightFlipper.RubberMaterial = "Rubber Black"
pRightFlipperLogo.Material = "Plastic Yellow"
LeftFlipper.Material = "Plastic Yellow"
LeftFlipper.RubberMaterial = "Rubber Black"
pLeftFlipperLogo.Material = "Plastic Yellow"
End If
If FlipperColorType = 5 Then
RightFlipper.Material = "Plastic Yellow"
RightFlipper.RubberMaterial = "Rubber Red"
pRightFlipperLogo.Material = "Plastic Yellow"
LeftFlipper.Material = "Plastic Yellow"
LeftFlipper.RubberMaterial = "Rubber Red"
pLeftFlipperLogo.Material = "Plastic Yellow"
End If
If FlipperColorType = 6 Then
RightFlipper.Material = "Plastic Yellow"
RightFlipper.RubberMaterial = "Rubber Yellow"
pRightFlipperLogo.Material = "Plastic Yellow"
LeftFlipper.Material = "Plastic Yellow"
LeftFlipper.RubberMaterial = "Rubber Yellow"
pLeftFlipperLogo.Material = "Plastic Yellow"
End If
If FlipperColorType = 7 Then
RightFlipper.Material = "Plastic Metalic Yellow"
RightFlipper.RubberMaterial = "Rubber Black"
pRightFlipperLogo.Material = "Plastic Metalic Yellow"
LeftFlipper.Material = "Plastic Metalic Yellow"
LeftFlipper.RubberMaterial = "Rubber Black"
pLeftFlipperLogo.Material = "Plastic Metalic Yellow"
End If
If FlipperColorType = 8 Then
RightFlipper.Material = "Plastic Metalic Yellow"
RightFlipper.RubberMaterial = "Rubber Red"
pRightFlipperLogo.Material = "Plastic Metalic Yellow"
LeftFlipper.Material = "Plastic Metalic Yellow"
LeftFlipper.RubberMaterial = "Rubber Red"
pLeftFlipperLogo.Material = "Plastic Metalic Yellow"
End If
If FlipperColorType = 9 Then
RightFlipper.Material = "Plastic Metalic Yellow"
RightFlipper.RubberMaterial = "Rubber Yellow"
pRightFlipperLogo.Material = "Plastic Metalic Yellow"
LeftFlipper.Material = "Plastic Metalic Yellow"
LeftFlipper.RubberMaterial = "Rubber Yellow"
pLeftFlipperLogo.Material = "Plastic Metalic Yellow"
End If
Dim SolidStateSitckerType
'Solid State Sitcker
If SolidStateSitcker = 0 Then
SolidStateSitckerType = Int(Rnd*4)+1
Else
SolidStateSitckerType = SolidStateSitcker
End If
If SolidStateSitckerType = 1 Then
pLSS.Visible = False
pRSS.Visible = False
pLSS.Image = "SolidStateBlackLeft_texture"
pRSS.Image = "SolidStateBlackRight_texture"
End If
If SolidStateSitckerType = 2 Then
pLSS.Visible = true
pRSS.Visible = true
pLSS.Image = "SolidStateBlackLeft_texture"
pRSS.Image = "SolidStateBlackRight_texture"
End If
If SolidStateSitckerType = 3 Then
pLSS.Visible = true
pRSS.Visible = true
pLSS.Image = "SolidStateRedLeft_texture"
pRSS.Image = "SolidStateRedRight_texture"
End If
If SolidStateSitckerType = 4 Then
pLSS.Visible = true
pRSS.Visible = true
pLSS.Image = "SolidStateYellowLeft_texture"
pRSS.Image = "SolidStateYellowRight_texture"
End If
'Plastic Protectors
Dim PlasticProtectorsType
If PlasticProtectors = 0 Then
PlasticProtectorsType = Int(Rnd*4)+1
Else
PlasticProtectorsType = PlasticProtectors
End If
If PlasticProtectorsType = 1 Then
pPlasticProtectorsA.Material = "AcrylicClear2"
pPlasticProtectorsA.DisableLighting = False
pPlasticProtectorsB.Material = "AcrylicClear2"
pPlasticProtectorsB.DisableLighting = False
End If
If PlasticProtectorsType = 2 Then
pPlasticProtectorsA.Material = "AcrilicBLYellow"
pPlasticProtectorsA.DisableLighting = True
pPlasticProtectorsB.Material = "AcrilicBLYellow"
pPlasticProtectorsB.DisableLighting = True
End If
If PlasticProtectorsType = 3 Then
pPlasticProtectorsA.Material = "AcrylicBLRed"
pPlasticProtectorsA.DisableLighting = True
pPlasticProtectorsB.Material = "AcrylicBLRed"
pPlasticProtectorsB.DisableLighting = True
End If
If PlasticProtectorsType = 4 Then
pPlasticProtectorsA.Material = "AcrylicBLOrange"
pPlasticProtectorsA.DisableLighting = True
pPlasticProtectorsB.Material = "AcrylicBLOrange"
pPlasticProtectorsB.DisableLighting = True
End If
End Sub
''''Rubber Color
Dim xxRubberColor
Sub SetRubberColor()
If RubberColor = 1 Then
for each xxRubberColor in aRubbers2
xxRubberColor.Material="Rubber Black"
next
Else
for each xxRubberColor in aRubbers2
xxRubberColor.Material="Rubber White"
next
End If
End Sub
''''''''''''''''''''''''''''''''''
'''''' GI Color
''''''''''''''''''''''''''''''''''
Dim RedFull, Red, RedI, PinkFull, Pink, PinkI, WhiteFull, White, WhiteI, BlueFull, Blue, BlueI, YellowFull, Yellow, YellowI, GreenFull, Green, GreenI
Dim GIColorModType
RedFull = rgb(255,0,0)
Red = rgb(255,0,0)
RedI = 5
PinkFull = rgb(255,0,128)
Pink = rgb(255,0,255)
PinkI = 5
WhiteFull = rgb(255,255,128)
White = rgb(255,255,255)
WhiteI = 7
BlueFull = rgb(0,128,255)
Blue = rgb(0,255,255)
BlueI = 20
YellowFull = rgb(255,255,128)
Yellow = rgb(255,255,0)
YellowI = 20
GreenFull = rgb(128,255,128)
Green = rgb(0,255,0)
GreenI = 20
Sub SetGIColor()
If GIColorMod = 0 Then
GIColorModType = Int(Rnd*3)+1
Else
GIColorModType = GIColorMod
End If
If GIColorModType = 1 Then
End If
If GIColorModType = 2 Then
gi1a.colorfull = BlueFull 'Blue
gi1a.color = Blue 'Blue
gi1b.colorfull = BlueFull 'Blue
gi1b.color = Blue 'Blue
gi1c.colorfull = BlueFull 'Blue
gi1c.color = Blue 'Blue
gi1a.Intensity = BlueI 'Blue
gi2a.colorfull = YellowFull 'Yellow
gi2a.color = Yellow ' Yellow
gi2b.colorfull = YellowFull 'Yellow
gi2b.color = Yellow ' Yellow
gi2c.colorfull = YellowFull 'Yellow
gi2c.color = Yellow ' Yellow
gi2a.intensity = YellowI
' gi2b.intensity = 13
gi3a.colorfull = YellowFull 'Yellow
gi3a.color = YellowFull 'Yellow
gi3b.colorfull = YellowFull 'Yellow
gi3b.color = Yellow 'Yellow
gi3a.intensity = YellowI
' gi3b.intensity = 13
gi3c.colorfull = YellowFull 'Yellow
gi3c.color = Yellow 'Yellow
gi4a.colorfull = BlueFull 'Blue
gi4a.color = Blue 'Blue
gi4b.colorfull = BlueFull 'Blue
gi4b.color = Blue 'Blue
gi4c.colorfull = BlueFull 'Blue
gi4c.color = Blue 'Blue
gi4a.Intensity = BlueI 'Blue
gi5a.colorfull = YellowFull 'Yellow
gi5a.color = Yellow ' Yellow
gi5b.colorfull = YellowFull 'Yellow
gi5b.color = Yellow ' Yellow
gi5c.colorfull = YellowFull 'Yellow
gi5c.color = Yellow ' Yellow
gi5a.intensity = YellowI
gi6a.colorfull = YellowFull 'Yellow
gi6a.color = Yellow ' Yellow
gi6b.colorfull = YellowFull 'Yellow
gi6b.color = Yellow ' Yellow
gi6c.colorfull = YellowFull 'Yellow
gi6c.color = Yellow ' Yellow
gi6a.intensity = YellowI
gi8a.colorfull = YellowFull 'Yellow
gi8a.color = Yellow ' Yellow
gi8b.colorfull = YellowFull 'Yellow
gi8b.color = Yellow ' Yellow
gi8c.colorfull = YellowFull 'Yellow
gi8c.color = Yellow ' Yellow
gi8a.intensity = YellowI
gi9a.colorfull = YellowFull 'Yellow
gi9a.color = Yellow ' Yellow
gi9b.colorfull = YellowFull 'Yellow
gi9b.color = Yellow ' Yellow
gi9c.colorfull = YellowFull 'Yellow
gi9c.color = Yellow ' Yellow
gi9a.intensity = YellowI
gi12a.colorfull = RedFull 'Red
gi12a.color = Red ' Red
gi12b.colorfull = RedFull 'Red
gi12b.color = Red ' Red
gi12c.colorfull = RedFull 'Red
gi12c.color = Red ' Red
gi12a.intensity = RedI
gi13a.colorfull = RedFull 'Red
gi13a.color = Red ' Red
gi13b.colorfull = RedFull 'Red
gi13b.color = Red ' Red
gi13c.colorfull = RedFull 'Red
gi13c.color = Red ' Red
gi13a.intensity = RedI
gi15.colorfull = rgb(0,128,255) 'Blue
gi15.color = rgb(0,255,255) 'Blue
gi16.colorfull = rgb(0,128,255) 'Blue