Arngrim

TAXI controller.vbs fix

Apr 5th, 2017
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.76 KB | None | 0 0
  1. '############################################################################################
  2. '############################################################################################
  3. '####### ########
  4. '####### Taxi ########
  5. '####### (Williams 1988) ########
  6. '####### ########
  7. '############################################################################################
  8. '############################################################################################
  9.  
  10. Option Explicit
  11.  
  12. On Error Resume Next
  13. ExecuteGlobal GetTextFile("controller.vbs")
  14. If Err Then MsgBox "You need the controller.vbs in order to run this table, available in the vp10 package"
  15. On Error Goto 0
  16.  
  17. '-----------------------------------
  18. '------ Global Cofigurations ------
  19. '-----------------------------------
  20. Const ColorMod = 1 '0= Regular lighting 1= Color Mod lighting
  21.  
  22.  
  23. Const cGameName = "taxi_l4"
  24. Const UseSolenoids = 1
  25. Const UseLamps = 0
  26. Const UseSync = 1
  27.  
  28. ' Standard Sounds
  29. Const SSolenoidOn = ""
  30. Const SSolenoidOff = ""
  31. Const SFlipperOn = ""
  32. Const SFlipperOff = ""
  33. Const SCoin = "Coin"
  34.  
  35. LoadVPM "01560000", "S11.VBS", 3.26
  36.  
  37. Dim DesktopMode: DesktopMode = Taxi.ShowDT
  38.  
  39. If DesktopMode = True Then 'Show Desktop components
  40. Ramp16.visible=1
  41. Ramp15.visible=1
  42. SideWood.visible=1
  43. SideWood1.visible=0
  44. BackdropCover.visible=1
  45. BackdropCover1.visible=0
  46. Else
  47. Ramp16.visible=0
  48. Ramp15.visible=0
  49. SideWood.visible=0
  50. SideWood1.visible=1
  51. BackdropCover.visible=0
  52. BackdropCover1.visible=1
  53. End if
  54.  
  55.  
  56. '-----------------------------------
  57. '------ Solenoid Assignment ------
  58. '-----------------------------------
  59. SolCallback(1) = "bsTrough.SolIn"
  60. SolCallback(2) = "bsTrough.SolOut"
  61. SolCallback(3) = "SolCatapult"
  62. SolCallback(4) = "CenterDTBank.SolDropUp"
  63. SolCallback(5) = "bsTopHole.SolOut"
  64. SolCallback(6) = "RightDTBank.SolDropUp"
  65. SolCallback(7) = "SolSpinoutKicker"
  66. SolCallback(8) = "bsRightHole.SolOut"
  67. Solcallback(9) = "TopGateLeft.open ="
  68. SolCallback(10) = "Sol10" 'Insert Gen Illum Relay
  69. SolCallback(11) = "Sol11" 'Playfield Gen Illumination
  70. 'SolCallback(12) = 'A/C Select Relay
  71. SolCallback(13) = "vpmSolSound SoundFX(""ringing_bell"",DOFBell),"
  72. SolCallback(14) = "vpmSolSound SoundFX(""knocker"",DOFKnocker),"
  73. 'SolCallback(15) = 'JACKPOT Flasher - handled in LampTimer
  74. SolCallback(16) = "SetLamp 116," 'JOYRIDE Flasher - handled in LampTimer too
  75. 'SolCallback(17) = 'Bumper
  76. 'SolCallback(18) = 'Sling
  77. 'SolCallback(19) = 'Bumper
  78. 'SolCallback(20) = 'Sling
  79. 'SolCallback(21) = 'Bumper
  80. SolCallback(23) = "SolGameOn"
  81. SolCallback(25) = "SetLamp 125," 'Pinbot Insert - handled in LampTimer
  82. SolCallback(26) = "SetLamp 126," 'Drac Insert - handled in LampTimer
  83. SolCallback(27) = "SetLamp 127," 'Lola Insert - handled in LampTimer
  84. SolCallback(28) = "SetLamp 128," 'Santa Insert - handled in LampTimer
  85. SolCallback(29) = "SetLamp 129," 'Gorby Insert - handled in LampTimer
  86. SolCallback(30) = "SetLamp 130," 'Left Ramp Flasher
  87. SolCallback(31) = "SetLamp 131," 'Right Ramp Flasher
  88. SolCallback(32) = "SetLamp 132," 'Spinout Flasher
  89.  
  90. Dim FlipperActive
  91. FlipperActive = False
  92. Sub SolGameOn(enabled)
  93. FlipperActive = enabled
  94. VpmNudge.SolGameOn(enabled)
  95. if not FlipperActive then
  96. RightFlipper.RotateToStart
  97. LeftFlipper.RotateToStart
  98. end if
  99. End Sub
  100.  
  101. 'Catapult
  102. Sub SolCatapult(enabled)
  103. if enabled then
  104. FireCatapult
  105. if Controller.Switch(35) then
  106. bsCatapult.ExitSol_On
  107. end If
  108. end if
  109. End Sub
  110.  
  111. Dim CatapultDir
  112. Sub FireCatapult
  113. catapultLaunchKicker.Timerenabled = False
  114. CatapultDir = 1.5
  115. catapultLaunchKicker.Timerenabled = True
  116. End Sub
  117.  
  118. Sub catapultLaunchKicker_Timer
  119. P_Catapult.rotx = P_Catapult.rotx + CatapultDir
  120. if P_Catapult.rotx > 90 then
  121. P_Catapult.rotx = 90
  122. CatapultDir = -0.5
  123. end if
  124. if P_Catapult.rotx < 0 then
  125. catapultLaunchKicker.Timerenabled = False
  126. P_Catapult.rotx = 0
  127. CatapultDir = 0
  128. end if
  129. end Sub
  130.  
  131. 'Spinout Kicker
  132. Sub SolSpinoutKicker(enabled)
  133. if enabled then
  134. bsSpinOutKicker.ExitSol_On
  135. P_Spinout.TransZ = -60
  136. SpinOutKicker.Timerenabled = True
  137. end if
  138. End Sub
  139.  
  140. Sub SpinOutKicker_Timer
  141. P_Spinout.TransZ = P_Spinout.TransZ + 1
  142. if P_Spinout.TransZ >= 0 then
  143. SpinOutKicker.Timerenabled = False
  144. P_Spinout.TransZ = 0
  145. end if
  146. end Sub
  147.  
  148. ' GI
  149. Sub Sol10(enabled)
  150. SetLamp 99,enabled '#99 used for GI Inserts
  151. End Sub
  152.  
  153. dim obj
  154. Sub Sol11(enabled) 'inverse action, GI is Off if Solenoid is enabled
  155. if ColorMod then
  156. for Each obj in GI
  157. obj.state = not enabled
  158. next
  159. else
  160. for Each obj in GI_mono
  161. obj.state = not enabled
  162. next
  163. end if
  164. if enabled Then
  165. if ColorMod then
  166. Primitive_Ramp2.image = "NewRenderMapB_final1b_BLUE_OFF"
  167. else
  168. Primitive_Ramp2.image = "NewRenderMapB_final1b_OFF"
  169. end If
  170. Flasher1.visible = False
  171. Flasher2.visible = False
  172. Else
  173. if ColorMod then
  174. Primitive_Ramp2.image = "NewRenderMapB_final1b_BLUE"
  175. else
  176. Primitive_Ramp2.image = "NewRenderMapB_final1"
  177. end If
  178. Flasher1.visible = True
  179. Flasher2.visible = True
  180. end If
  181. End Sub
  182.  
  183. '--------------------------
  184. '------ Table Init ------
  185. '--------------------------
  186. Dim bsTrough,bsTopEject,bsRightHole,bsTopHole,bsCatapult,bsSpinoutKicker,RightDTBank,CenterDTBank
  187. Sub Taxi_Init()
  188. Flasher1.visible = True
  189. Flasher2.visible = True
  190. if ColorMod then
  191. Primitive_Ramp2.image = "NewRenderMapB_final1b_BLUE"
  192. for Each obj in GI
  193. obj.state = True
  194. next
  195. for Each obj in GI_mono
  196. obj.state = False
  197. next
  198. F16.state = 0
  199. F30.state = 0
  200. F31.state = 0
  201. F32.state = 0
  202. else
  203. Primitive_Ramp2.image = "NewRenderMapB_final1"
  204. for Each obj in GI
  205. obj.state = False
  206. next
  207. for Each obj in GI_mono
  208. obj.state = True
  209. next
  210. F16c.state = 0
  211. F30c.state = 0
  212. F31c.state = 0
  213. F32c.state = 0
  214. end If
  215.  
  216. Dim DesktopMode: DesktopMode = Taxi.ShowDT
  217. If DesktopMode = True Then 'Show Desktop components
  218. for Each obj in Backboxlights
  219. obj.state = Lightstateon
  220. next
  221. LEDTimer.enabled = True
  222. Else
  223. for Each obj in Backboxlights
  224. obj.state = Lightstateoff
  225. next
  226. LEDTimer.enabled = False
  227. End if
  228.  
  229. vpmInit Me
  230. With Controller
  231. .GameName = cGameName
  232. 'If Err Then MsgBox "Can't start Game " & cGameName & vbNewLine & Err.Description:Exit Sub
  233. .SplashInfoLine = "Taxi"
  234. .HandleKeyboard = 0
  235. .ShowTitle = 0
  236. .ShowDMDOnly = 1
  237. .ShowFrame = 0
  238. .HandleMechanics = 0
  239. .Hidden = 0
  240. .Dip(0) = &H00
  241.  
  242.  
  243. 'DMD position for 3 Monitor Setup
  244. Controller.Games(cGameName).Settings.Value("dmd_pos_x")=0
  245. Controller.Games(cGameName).Settings.Value("dmd_pos_y")=0
  246. 'Controller.Games(cGameName).Settings.Value("dmd_width")=505
  247. 'Controller.Games(cGameName).Settings.Value("dmd_height")=155
  248. 'Controller.Games(cGameName).Settings.Value("rol")=0
  249.  
  250. On Error Resume Next
  251. .Run GetPlayerHWnd
  252. If Err Then MsgBox Err.Description
  253. On Error Goto 0
  254. End With
  255.  
  256. On Error Goto 0
  257.  
  258. ' Nudging
  259. vpmNudge.TiltSwitch = 1
  260. vpmNudge.Sensitivity = 1
  261. vpmNudge.TiltObj = Array(Bumper1,Bumper2,Bumper3,LeftSlingshot,RightSlingshot)
  262.  
  263. ' Trough handler
  264. Set bsTrough = New cvpmBallStack
  265. bsTrough.InitSw 10,11,12,0,0,0,0,0
  266. bsTrough.InitKick BallRelease,60,8
  267. bsTrough.InitEntrySnd SoundFX("BallRelease",DOFContactors),SoundFX("Solon",DOFContactors)
  268. bsTrough.InitExitSnd SoundFX("BallRelease",DOFContactors), SoundFX("Solon",DOFContactors)
  269. bsTrough.Balls=2
  270.  
  271. 'Right Hole
  272. set bsRightHole = new cvpmSaucer
  273. bsRightHole.InitKicker RightHole,36,180,8,0
  274. bsRightHole.InitExitVariance 5,2
  275. bsRightHole.InitSounds SoundFX("kicker_enter_center",DOFContactors),SoundFX("solon",DOFContactors),SoundFX("popper_ball",DOFContactors)
  276.  
  277. 'Top Hole - Joy Ride
  278. set bsTopHole = new cvpmSaucer
  279. bsTopHole.InitKicker TopHole,13,160,8,0
  280. bsTopHole.InitExitVariance 2, 2
  281. bsTopHole.InitSounds SoundFX("kicker_enter_center",DOFContactors),SoundFX("solon",DOFContactors),SoundFX("popper_ball",DOFContactors)
  282.  
  283. 'Catapult
  284. Set bsCatapult = New cvpmSaucer
  285. bsCatapult.InitKicker CatapultLaunchKicker,35,0,40,0
  286. bsCatapult.InitSounds SoundFX("kicker_enter_center",DOFContactors),SoundFX("solon",DOFContactors),SoundFX("popper_ball",DOFContactors)
  287.  
  288. 'SpinOut Kicker
  289. Set bsSpinoutKicker = New cvpmSaucer
  290. bsSpinoutKicker.InitKicker SpinoutKicker,43,0,35,0
  291. bsSpinoutKicker.InitExitVariance 5,2
  292. bsSpinoutKicker.InitSounds SoundFX("soloff",DOFContactors),SoundFX("solon",DOFContactors),SoundFX("popper_ball",DOFContactors)
  293.  
  294. Set RightDTBank = New cvpmDropTarget
  295. RightDTBank.InitDrop Array(DT30,DT31,DT32),Array(30,31,32)
  296. RightDTBank.InitSnd SoundFX("droptarget",DOFDropTargets),SoundFX("fx_resetdrop",DOFContactors)
  297. RightDTBank.CreateEvents "RightDTBank"
  298.  
  299. Set CenterDTBank = New cvpmDropTarget
  300. CenterDTBank.InitDrop Array(DT27,DT28,DT29),Array(27,28,29)
  301. CenterDTBank.InitSnd SoundFX("droptarget",DOFDropTargets),SoundFX("fx_resetdrop",DOFContactors)
  302. CenterDTBank.CreateEvents "CenterDTBank"
  303.  
  304. PinMAMETimer.Interval = PinMAMEInterval
  305. PinMAMETimer.Enabled = 1
  306.  
  307. vpmtimer.PulseSW 24
  308. End Sub
  309.  
  310.  
  311.  
  312. '------------------------------
  313. '------ Switch Handler ------
  314. '------------------------------
  315. Sub SpinoutKicker_Hit:bsSpinOutKicker.addball Me:End Sub
  316. Sub RightHole_Hit:bsRightHole.addball Me:End Sub
  317. Sub TopHole_Hit:bsTopHole.addball Me:End Sub
  318. Sub CatapultKicker_Hit:bsCatapult.addball Me:End Sub
  319.  
  320. Sub Bumper1_Hit:vpmTimer.PulseSw 21:Playsound SoundFX("fx_bumper3",DOFContactors),0,1,0,0.1:End Sub
  321. Sub Bumper2_Hit:vpmTimer.PulseSw 17:Playsound SoundFX("fx_bumper2",DOFContactors),0,1,-0.1,0.1:End Sub
  322. Sub Bumper3_Hit:vpmTimer.PulseSw 19:Playsound SoundFX("fx_bumper4",DOFContactors),0,1,0.1,0.1:End Sub
  323.  
  324. Sub SW14_Hit:Controller.Switch(14) = True:End Sub
  325. Sub SW14_Unhit:Controller.Switch(14) = False:End Sub
  326. Sub SW15_Hit:Controller.Switch(15) = True:End Sub
  327. Sub SW15_Unhit:Controller.Switch(15) = False:End Sub
  328. Sub SW16_Hit:Controller.Switch(16) = True:End Sub
  329. Sub SW16_Unhit:Controller.Switch(16) = False:End Sub
  330.  
  331. Sub SW22_Hit:Controller.Switch(22) = True:End Sub
  332. Sub SW22_Unhit:Controller.Switch(22) = False:End Sub
  333. Sub SW23_Hit:Controller.Switch(23) = True:End Sub
  334. Sub SW23_Unhit:Controller.Switch(23) = False:End Sub
  335. Sub Target24_Hit:vpmtimer.PulseSW 24:End Sub
  336. Sub SW25_Hit:vpmtimer.PulseSW 25:End Sub
  337. Sub SW26_Hit:vpmtimer.PulseSW 26:End Sub
  338.  
  339. Sub SW33_Hit:Controller.Switch(33) = True:End Sub
  340. Sub SW33_Unhit:Controller.Switch(33) = False:End Sub
  341. Sub SW34_Hit:Controller.Switch(34) = True:End Sub
  342. Sub SW34_Unhit:Controller.Switch(34) = False:End Sub
  343. Sub SW37_Hit:Controller.Switch(37) = True:End Sub
  344. Sub SW37_Unhit:Controller.Switch(37) = False:End Sub
  345. Sub SW38_Hit:Controller.Switch(38) = True:End Sub
  346. Sub SW38_Unhit:Controller.Switch(38) = False:End Sub
  347. Sub SW39_Hit:Controller.Switch(39) = True:End Sub
  348. Sub SW39_Unhit:Controller.Switch(39) = False:End Sub
  349. Sub SW40_Hit:Controller.Switch(40) = True:End Sub
  350. Sub SW40_Unhit:Controller.Switch(40) = False:End Sub
  351. 'SW43 handled via saucer
  352. Sub SW44_Hit:vpmtimer.PulseSW 44:playsound "fx_sensor" End Sub
  353.  
  354. '###########################################
  355. Sub SpinoutHelper_Hit
  356. if ActiveBall.Velx > 9 then
  357. ActiveBall.Velx = 1.05 * ActiveBall.Velx
  358. end if
  359. End Sub
  360.  
  361. Sub RampHelper1_Hit
  362. ActiveBall.velZ = 0
  363. End Sub
  364. Sub RampHelper2_Hit
  365. ActiveBall.velZ = 0
  366. End Sub
  367.  
  368.  
  369. Sub Taxi_KeyDown(ByVal keycode)
  370. If keycode = PlungerKey Then
  371. Plunger.PullBack
  372. PlaySound "plungerpull",0,1,0.25,0.25
  373. End If
  374.  
  375. If keycode = LeftFlipperKey Then
  376. if FlipperActive then
  377. LeftFlipper.RotateToEnd
  378. PlaySound SoundFX("fx_flipperup",DOFFlippers), 0, .67, -0.05, 0.05
  379. end if
  380. End If
  381.  
  382. If keycode = RightFlipperKey Then
  383. if FlipperActive then
  384. RightFlipper.RotateToEnd
  385. PlaySound SoundFX("fx_flipperup",DOFFlippers), 0, .67, 0.05, 0.05
  386. end if
  387. End If
  388.  
  389. If vpmKeyDown(keycode) Then Exit Sub
  390. End Sub
  391.  
  392. Sub Taxi_KeyUp(ByVal keycode)
  393.  
  394. If keycode = PlungerKey Then
  395. Plunger.Fire
  396. PlaySound "plunger",0,1,0.25,0.25
  397. End If
  398.  
  399. If keycode = LeftFlipperKey Then
  400. LeftFlipper.RotateToStart
  401. if FlipperActive then
  402. PlaySound SoundFX("fx_flipperdown",DOFFlippers), 0, 1, -0.05, 0.05
  403. end if
  404. End If
  405.  
  406. If keycode = RightFlipperKey Then
  407. RightFlipper.RotateToStart
  408. if FlipperActive then
  409. PlaySound SoundFX("fx_flipperdown",DOFFlippers), 0, 1, 0.05, 0.05
  410. end if
  411. End If
  412.  
  413. If vpmKeyUp(keycode) Then Exit Sub
  414. End Sub
  415.  
  416. Sub Drain_Hit()
  417. PlaySound "drain",0,1,0,0.25
  418. bsTrough.AddBall Me
  419. 'Drain.DestroyBall
  420. End Sub
  421.  
  422. '-----------------------------------
  423. ' Flipper Primitives
  424. '-----------------------------------
  425. sub FlipperTimer_Timer()
  426. pleftFlipper.rotz=leftFlipper.CurrentAngle
  427. prightFlipper.rotz=rightFlipper.CurrentAngle
  428.  
  429. Primitive_LGateWire.rotx = LGate.currentangle
  430. Primitive_RGateWire.rotx = RGate.currentangle
  431. end sub
  432.  
  433.  
  434.  
  435. '**********Sling Shot Animations
  436. ' Rstep and Lstep are the variables that increment the animation
  437. '****************
  438. Dim RStep, Lstep
  439.  
  440. Sub RightSlingShot_Slingshot
  441. vpmtimer.pulsesw 20
  442. PlaySound SoundFX("right_slingshot",DOFContactors), 0, 1, 0.05, 0.05
  443. RSling.Visible = 0
  444. RSling1.Visible = 1
  445. sling1.TransZ = -20
  446. RStep = 0
  447. RightSlingShot.TimerEnabled = 1
  448. End Sub
  449.  
  450. Sub RightSlingShot_Timer
  451. Select Case RStep
  452. Case 3:RSLing1.Visible = 0:RSLing2.Visible = 1:sling1.TransZ = -10
  453. Case 4:RSLing2.Visible = 0:RSLing.Visible = 1:sling1.TransZ = 0:RightSlingShot.TimerEnabled = 0
  454. End Select
  455. RStep = RStep + 1
  456. End Sub
  457.  
  458. Sub LeftSlingShot_Slingshot
  459. vpmtimer.pulsesw 18
  460. PlaySound SoundFX("left_slingshot",DOFContactors),0,1,-0.05,0.05
  461. LSling.Visible = 0
  462. LSling1.Visible = 1
  463. sling2.TransZ = -20
  464. LStep = 0
  465. LeftSlingShot.TimerEnabled = 1
  466. End Sub
  467.  
  468. Sub LeftSlingShot_Timer
  469. Select Case LStep
  470. Case 3:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.TransZ = -10
  471. Case 4:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.TransZ = 0:LeftSlingShot.TimerEnabled = 0
  472. End Select
  473. LStep = LStep + 1
  474. End Sub
  475.  
  476.  
  477.  
  478. ' *********************************************************************
  479. ' Supporting Ball & Sound Functions
  480. ' *********************************************************************
  481.  
  482. Function Vol(ball) ' Calculates the Volume of the sound based on the ball speed
  483. Vol = Csng(BallVel(ball) ^2 / 300)
  484. End Function
  485.  
  486. Function Pan(ball) ' Calculates the pan for a ball based on the X position on the table. "table1" is the name of the table
  487. Dim tmp
  488. tmp = ball.x * 2 / Taxi.width-1
  489. If tmp > 0 Then
  490. Pan = Csng(tmp ^10)
  491. Else
  492. Pan = Csng(-((- tmp) ^10) )
  493. End If
  494. End Function
  495.  
  496. Function Pitch(ball) ' Calculates the pitch of the sound based on the ball speed
  497. Pitch = BallVel(ball) * 20
  498. End Function
  499.  
  500. Function BallVel(ball) 'Calculates the ball speed
  501. BallVel = INT(SQR((ball.VelX ^2) + (ball.VelY ^2) ) )
  502. End Function
  503.  
  504. '*****************************************
  505. ' JP's VP10 Rolling Sounds
  506. '*****************************************
  507.  
  508. Const tnob = 5 ' total number of balls
  509. ReDim rolling(tnob)
  510. InitRolling
  511.  
  512. Sub InitRolling
  513. Dim i
  514. For i = 0 to tnob
  515. rolling(i) = False
  516. Next
  517. End Sub
  518.  
  519. Sub RollingTimer_Timer()
  520. Dim BOT, b
  521. BOT = GetBalls
  522.  
  523. ' stop the sound of deleted balls
  524. For b = UBound(BOT) + 1 to tnob
  525. rolling(b) = False
  526. StopSound("fx_ballrolling" & b)
  527. Next
  528.  
  529. ' exit the sub if no balls on the table
  530. If UBound(BOT) = -1 Then Exit Sub
  531.  
  532. ' play the rolling sound for each ball
  533. For b = 0 to UBound(BOT)
  534. If BallVel(BOT(b) ) > 1 AND BOT(b).z < 30 Then
  535. rolling(b) = True
  536. PlaySound("fx_ballrolling" & b), -1, Vol(BOT(b) ), Pan(BOT(b) ), 0, Pitch(BOT(b) ), 1, 0
  537. Else
  538. If rolling(b) = True Then
  539. StopSound("fx_ballrolling" & b)
  540. rolling(b) = False
  541. End If
  542. End If
  543. Next
  544. End Sub
  545.  
  546. '**********************
  547. ' Ball Collision Sound
  548. '**********************
  549.  
  550. Sub OnBallBallCollision(ball1, ball2, velocity)
  551. PlaySound("fx_collide"), 0, Csng(velocity) ^2 / 2000, Pan(ball1), 0, Pitch(ball1), 0, 0
  552. End Sub
  553.  
  554.  
  555.  
  556. '************************************
  557. ' What you need to add to your table
  558. '************************************
  559.  
  560. ' a timer called RollingTimer. With a fast interval, like 10
  561. ' one collision sound, in this script is called fx_collide
  562. ' as many sound files as max number of balls, with names ending with 0, 1, 2, 3, etc
  563. ' for ex. as used in this script: fx_ballrolling0, fx_ballrolling1, fx_ballrolling2, fx_ballrolling3, etc
  564.  
  565.  
  566. '******************************************
  567. ' Explanation of the rolling sound routine
  568. '******************************************
  569.  
  570. ' sounds are played based on the ball speed and position
  571.  
  572. ' the routine checks first for deleted balls and stops the rolling sound.
  573.  
  574. ' The For loop goes through all the balls on the table and checks for the ball speed and
  575. ' if the ball is on the table (height lower than 30) then then it plays the sound
  576. ' otherwise the sound is stopped, like when the ball has stopped or is on a ramp or flying.
  577.  
  578. ' The sound is played using the VOL, PAN and PITCH functions, so the volume and pitch of the sound
  579. ' will change according to the ball speed, and the PAN function will change the stereo position according
  580. ' to the position of the ball on the table.
  581.  
  582.  
  583. '**************************************
  584. ' Explanation of the collision routine
  585. '**************************************
  586.  
  587. ' The collision is built in VP.
  588. ' You only need to add a Sub OnBallBallCollision(ball1, ball2, velocity) and when two balls collide they
  589. ' will call this routine. What you add in the sub is up to you. As an example is a simple Playsound with volume and paning
  590. ' depending of the speed of the collision.
  591.  
  592.  
  593. Sub Pins_Hit (idx)
  594. PlaySound "pinhit_low", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  595. End Sub
  596.  
  597. Sub Targets_Hit (idx)
  598. PlaySound SoundFX("target",DOFTargets), 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0
  599. End Sub
  600.  
  601. Sub Metals_Thin_Hit (idx)
  602. PlaySound "metalhit_thin", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  603. End Sub
  604.  
  605. Sub Metals_Medium_Hit (idx)
  606. PlaySound "metalhit_medium", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  607. End Sub
  608.  
  609. Sub Metals2_Hit (idx)
  610. PlaySound "metalhit2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  611. End Sub
  612.  
  613. Sub Gates_Hit (idx)
  614. PlaySound "gate4", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  615. End Sub
  616.  
  617. Sub Spinner_Spin
  618. PlaySound "fx_spinner",0,.25,0,0.25
  619. End Sub
  620.  
  621. Sub Rubbers_Hit(idx)
  622. dim finalspeed
  623. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  624. If finalspeed > 20 then
  625. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  626. End if
  627. If finalspeed >= 6 AND finalspeed <= 20 then
  628. RandomSoundRubber()
  629. End If
  630. End Sub
  631.  
  632. Sub Posts_Hit(idx)
  633. dim finalspeed
  634. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  635. If finalspeed > 16 then
  636. PlaySound "fx_rubber2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  637. End if
  638. If finalspeed >= 6 AND finalspeed <= 16 then
  639. RandomSoundRubber()
  640. End If
  641. End Sub
  642.  
  643. Sub RandomSoundRubber()
  644. Select Case Int(Rnd*3)+1
  645. Case 1 : PlaySound "rubber_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  646. Case 2 : PlaySound "rubber_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  647. Case 3 : PlaySound "rubber_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  648. End Select
  649. End Sub
  650.  
  651. Sub LeftFlipper_Collide(parm)
  652. RandomSoundFlipper()
  653. End Sub
  654.  
  655. Sub RightFlipper_Collide(parm)
  656. RandomSoundFlipper()
  657. End Sub
  658.  
  659. Sub RandomSoundFlipper()
  660. Select Case Int(Rnd*3)+1
  661. Case 1 : PlaySound "flip_hit_1", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  662. Case 2 : PlaySound "flip_hit_2", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  663. Case 3 : PlaySound "flip_hit_3", 0, Vol(ActiveBall), Pan(ActiveBall), 0, Pitch(ActiveBall), 1, 0
  664. End Select
  665. End Sub
  666.  
  667. Sub DTCheckTimer_Timer
  668. 'Drop Target GI Lights
  669. if DT27.isdropped then
  670. Light22a.state = Light22.state
  671. Light26a.state = Light26.state
  672. Else
  673. Light22a.state = Lightstateoff
  674. Light26a.state = Lightstateoff
  675. end If
  676. if DT28.isdropped then
  677. Light22b.state = Light22.state
  678. Light26b.state = Light26.state
  679. Else
  680. Light22b.state = Lightstateoff
  681. Light26b.state = Lightstateoff
  682. end If
  683. if DT29.isdropped then
  684. Light22c.state = Light22.state
  685. Light26c.state = Light26.state
  686. Else
  687. Light22c.state = Lightstateoff
  688. Light26c.state = Lightstateoff
  689. end If
  690.  
  691. if DT30.isdropped then
  692. Light27a.state = Light27.state
  693. Light28a.state = Light28.state
  694. Else
  695. Light27a.state = Lightstateoff
  696. Light28a.state = Lightstateoff
  697. end If
  698. if DT31.isdropped then
  699. Light27b.state = Light27.state
  700. Light28b.state = Light28.state
  701. Else
  702. Light27b.state = Lightstateoff
  703. Light28b.state = Lightstateoff
  704. end If
  705. if DT32.isdropped then
  706. Light27c.state = Light27.state
  707. Light28c.state = Light28.state
  708. Else
  709. Light27c.state = Lightstateoff
  710. Light28c.state = Lightstateoff
  711. end If
  712. End Sub
  713.  
  714. '***************************************************
  715. ' JP's VP10 Fading Lamps & Flashers
  716. ' Based on PD's Fading Light System
  717. ' SetLamp 0 is Off
  718. ' SetLamp 1 is On
  719. ' fading for non opacity objects is 4 steps
  720. '***************************************************
  721.  
  722. Dim LampState(200), FadingLevel(200)
  723. Dim FlashSpeedUp(200), FlashSpeedDown(200), FlashMin(200), FlashMax(200), FlashLevel(200)
  724. Dim ccount
  725.  
  726. InitLamps() ' turn off the lights and flashers and reset them to the default parameters
  727. LampTimer.Interval = 10 'lamp fading speed
  728. LampTimer.Enabled = 1
  729.  
  730. Dim chgLamp, num, chg, ii
  731. Sub LampTimer_Timer()
  732. chgLamp = Controller.ChangedLamps
  733. If Not IsEmpty(chgLamp) Then
  734. For ii = 0 To UBound(chgLamp)
  735. LampState(chgLamp(ii, 0) ) = chgLamp(ii, 1) 'keep the real state in an array
  736. FadingLevel(chgLamp(ii, 0) ) = chgLamp(ii, 1) + 4 'actual fading step
  737. Next
  738. End If
  739.  
  740. 'Multi-LampStates
  741. LampState(43) = controller.Lamp(43) or controller.solenoid(16) 'Joyride
  742. LampState(44) = controller.Lamp(44) or controller.solenoid(15) 'Jackpot
  743. LampState(25) = controller.Lamp(25) or controller.solenoid(25) or controller.solenoid(10) 'Pinbot Insert
  744. LampState(26) = controller.Lamp(26) or controller.solenoid(26) or controller.solenoid(10) 'Drac Insert
  745. LampState(27) = controller.Lamp(27) or controller.solenoid(27) or controller.solenoid(10) 'Lola Insert
  746. LampState(28) = controller.Lamp(28) or controller.solenoid(28) or controller.solenoid(10) 'Santa Insert
  747. LampState(29) = controller.Lamp(29) or controller.solenoid(29) or controller.solenoid(10) 'Gorby Insert
  748. UpdateLamps
  749. End Sub
  750.  
  751. Sub InitLamps()
  752. Dim x
  753. For x = 0 to 200
  754. LampState(x) = 0 ' current light state, independent of the fading level. 0 is off and 1 is on
  755. FadingLevel(x) = 4 ' used to track the fading state
  756. FlashSpeedUp(x) = 0.3 ' faster speed when turning on the flasher
  757. FlashSpeedDown(x) = 0.15 ' slower speed when turning off the flasher
  758. FlashMax(x) = 1 ' the maximum value when on, usually 1
  759. FlashMin(x) = 0 ' the minimum value when off, usually 0
  760. FlashLevel(x) = 0 ' the intensity of the flashers, usually from 0 to 1
  761. Next
  762. End Sub
  763.  
  764. Sub UpdateLamps
  765. If DesktopMode = True Then
  766. 'Joy Ride
  767. NFadeLm 1, L1
  768. NFadeL 1, L1a
  769. NFadeLm 2, L2
  770. NFadeL 2, L2a
  771. NFadeLm 3, L3
  772. NFadeL 3, L3a
  773. NFadeLm 4, L4
  774. NFadeL 4, L4a
  775. NFadeLm 5, L5
  776. NFadeL 5, L5a
  777.  
  778. 'Backbox
  779. NFadeL 6, L6
  780. NFadeL 7, L7
  781. NFadeL 8, L8
  782. NFadeL 6, L6
  783. NFadeL 49, L49
  784. NFadeL 50, L50
  785. NFadeL 51, L51
  786. NFadeL 52, L52
  787. NFadeL 53, L53
  788. NFadeL 54, L54
  789. NFadeL 55, L55
  790. NFadeL 56, L56
  791. NFadeL 64, L64
  792. end If
  793.  
  794. 'Inserts
  795. NFadeLm 9, L9
  796. Flash 9, L9a
  797. NFadeLm 10, L10
  798. Flash 10, L10a
  799. NFadeLm 11, L11
  800. Flash 11, L11a
  801. NFadeLm 12, L12
  802. Flash 12, L12a
  803. NFadeLm 13, L13
  804. Flash 13, L13a
  805. NFadeLm 14, L14
  806. NFadeLm 14, L14b
  807. Flash 14, L14a
  808. NFadeLm 15, L15
  809. NFadeLm 15, L15b
  810. Flash 15, L15a
  811. NFadeLm 16, L16b
  812. NFadeLm 16, L16
  813. Flash 16, L16a
  814. NFadeLm 17, L17
  815. Flash 17, L17a
  816. NFadeLm 18, L18
  817. Flash 18, L18a
  818. NFadeLm 19, L19
  819. Flash 19, L19a
  820. NFadeLm 20, L20
  821. Flash 20, L20a
  822. NFadeLm 21, L21
  823. Flash 21, L21a
  824. NFadeLm 22, L22
  825. Flash 22, L22a
  826. NFadeLm 23, L23b
  827. NFadeLm 23, L23
  828. Flash 23, L23a
  829. NFadeLm 24, L24
  830. Flash 24, L24a
  831. NFadeLm 25, L25
  832. Flash 25, L25a
  833. NFadeLm 26, L26
  834. Flash 26, L26a
  835. NFadeLm 27, L27
  836. Flash 27, L27a
  837. NFadeLm 28, L28
  838. Flash 28, L28a
  839. NFadeLm 29, L29
  840. Flash 29, L29a
  841. NFadeLm 30, L30
  842. Flash 30, L30a
  843. NFadeLm 31, L31
  844. Flash 31, L31a
  845. NFadeLm 32, L32b
  846. NFadeLm 32, L32
  847. Flash 32, L32a
  848. NFadeLm 33, L33
  849. Flash 33, L33a
  850. NFadeLm 34, L34
  851. Flash 34, L34a
  852. NFadeLm 35, L35
  853. Flash 35, L35a
  854. NFadeLm 36, L36
  855. Flash 36, L36a
  856. NFadeLm 37, L37
  857. Flash 37, L37a
  858. NFadeLm 38, L38
  859. NFadeLm 38, L38b
  860. NFadeLm 38, L38c
  861. Flash 38, L38a
  862. NFadeLm 39, L39
  863. Flash 39, L39a
  864. NFadeLm 40, L40
  865. NFadeLm 40, L40b
  866. NFadeLm 40, L40c
  867. Flash 40, L40a
  868. NFadeLm 41, L41
  869. Flash 41, L41a
  870. NFadeLm 42, L42
  871. Flash 42, L42a
  872. NFadeLm 43, L43
  873. Flash 43, L43a
  874. NFadeLm 44, L44
  875. Flash 44, L44a
  876. NFadeLm 45, L45
  877. Flash 45, L45a
  878. NFadeLm 46, L46
  879. Flash 46, L46a
  880. NFadeLm 47, L47
  881. Flash 47, L47a
  882. NFadeLm 48, L48
  883. Flash 48, L48a
  884.  
  885. NFadeL 57, L57
  886. NFadeL 58, L58
  887. NFadeL 59, L59
  888. NFadeL 60, L60
  889. NFadeL 61, L61
  890. NFadeL 62, L62
  891. NFadeL 63, L63
  892.  
  893. 'GI Flashers
  894. NFadeLm 25, F25
  895. NFadeLm 26, F26
  896. NFadeLm 27, F27
  897. NFadeLm 28, F28
  898. NFadeLm 29, F29
  899.  
  900. 'Flashers
  901. if ColorMod then
  902. NFadeL 116, F16c
  903. NFadeL 130, F30c
  904. NFadeL 131, F31c
  905. NFadeL 132, F32c
  906. else
  907. NFadeL 116, F16
  908. NFadeL 130, F30
  909. NFadeL 131, F31
  910. NFadeL 132, F32
  911. end if
  912. End Sub
  913.  
  914. Sub SetLamp(nr, value)
  915. If value <> LampState(nr) Then
  916. LampState(nr) = abs(value)
  917. FadingLevel(nr) = abs(value) + 4
  918. End If
  919. End Sub
  920.  
  921. ' Lights: used for VP10 standard lights, the fading is handled by VP itself
  922.  
  923. Sub NFadeL(nr, object)
  924. Select Case FadingLevel(nr)
  925. Case 4:object.state = 0:FadingLevel(nr) = 0
  926. Case 5:object.state = 1:FadingLevel(nr) = 1
  927. End Select
  928. End Sub
  929.  
  930. Sub NFadeLm(nr, object) ' used for multiple lights
  931. Select Case FadingLevel(nr)
  932. Case 4:object.state = 0
  933. Case 5:object.state = 1
  934. End Select
  935. End Sub
  936.  
  937. Sub NFadeLmb(nr, object) ' used for multiple lights with blinking
  938. Select Case FadingLevel(nr)
  939. Case 4:object.state = 0
  940. Case 5:object.state = 2
  941. End Select
  942. End Sub
  943.  
  944. Sub MFadeL(nr, object, state)
  945. Select Case FadingLevel(nr)
  946. Case 4:object.state = 0:If LampState(state) =1 Then SetLamp state, 1
  947. Case 5:object.state = 1
  948. End Select
  949. End Sub
  950.  
  951.  
  952. 'Lights, Ramps & Primitives used as 4 step fading lights
  953. 'a,b,c,d are the images used from on to off
  954.  
  955. Sub FadeObj(nr, object, a, b, c, d)
  956. Select Case FadingLevel(nr)
  957. Case 2:object.image = d:FadingLevel(nr) = 0 'Off
  958. Case 3:object.image = c:FadingLevel(nr) = 2 'fading...
  959. Case 4:object.image = b:FadingLevel(nr) = 3 'fading...
  960. Case 5:object.image = a:FadingLevel(nr) = 1 'ON
  961. End Select
  962. End Sub
  963.  
  964. Sub FadeObjm(nr, object, a, b, c, d)
  965. Select Case FadingLevel(nr)
  966. Case 2:object.image = d
  967. Case 3:object.image = c
  968. Case 4:object.image = b
  969. Case 5:object.image = d
  970. End Select
  971. End Sub
  972.  
  973. Sub NFadeObj(nr, object, a, b)
  974. Select Case FadingLevel(nr)
  975. Case 4:object.image = b:FadingLevel(nr) = 0 'off
  976. Case 5:object.image = a:FadingLevel(nr) = 1 'on
  977. End Select
  978. End Sub
  979.  
  980. Sub NFadeObjm(nr, object, a, b)
  981. Select Case FadingLevel(nr)
  982. Case 4:object.image = b
  983. Case 5:object.image = a
  984. End Select
  985. End Sub
  986.  
  987. ' Flasher objects
  988.  
  989. Sub Flash(nr, object)
  990. Select Case FadingLevel(nr)
  991. Case 4 'off
  992. FlashLevel(nr) = FlashLevel(nr) - FlashSpeedDown(nr)
  993. If FlashLevel(nr) < FlashMin(nr) Then
  994. FlashLevel(nr) = FlashMin(nr)
  995. FadingLevel(nr) = 0 'completely off
  996. End if
  997. Object.IntensityScale = FlashLevel(nr)
  998. Case 5 ' on
  999. FlashLevel(nr) = FlashLevel(nr) + FlashSpeedUp(nr)
  1000. If FlashLevel(nr) > FlashMax(nr) Then
  1001. FlashLevel(nr) = FlashMax(nr)
  1002. FadingLevel(nr) = 1 'completely on
  1003. End if
  1004. Object.IntensityScale = FlashLevel(nr)
  1005. End Select
  1006. End Sub
  1007.  
  1008. Sub Flashm(nr, object) 'multiple flashers, it just sets the flashlevel
  1009. Object.IntensityScale = FlashLevel(nr)
  1010. End Sub
  1011.  
  1012. 'Ramp Helpers
  1013. Sub LHelp_Hit():Playsound "fx_ball_drop", 0, 1, -0.05, 0.05:end Sub
  1014. Sub RHelp_Hit():Playsound "fx_ball_drop", 0, 1, 0.05, 0.05:end Sub
  1015. Sub SpinOutHelp_Hit():Playsound "fx_ball_drop", 0, 1, 0.05, 0.05:end Sub
  1016. Sub SpinOutHelp1_Hit():Playsound "fx_ball_drop", 0, 1, 0.05, 0.05:end Sub
  1017.  
  1018. 'Wire ramp sounds
  1019. Sub WireRampSound_Hit():Playsound "WireRamp", 0, 1, 0, 0.35:end Sub
  1020. Sub WireRampSound1_Hit():Playsound "WireRamp", 0, 1, 0, 0.35:end Sub
  1021. Sub WireRampSound2_Hit():Playsound "WireRamp", 0, 1, 0, 0.35:end Sub
  1022. Sub WireRampSound3_Hit():Playsound "WireRamp", 0, 1, 0, 0.35:end Sub
  1023.  
  1024.  
  1025. 'Plastic ramp sounds
  1026. Sub RRHit0_Hit:PlaySound "fx_rr1", 0, 1, pan(ActiveBall):End Sub
  1027. Sub RRHit1_Hit:PlaySound "fx_rr2", 0, 1, pan(ActiveBall):End Sub
  1028. Sub RRHit2_Hit:PlaySound "fx_rr3", 0, 1, pan(ActiveBall):End Sub
  1029. Sub RRHit3_Hit:PlaySound "fx_rr4", 0, 1, pan(ActiveBall):End Sub
  1030. Sub RRHit4_Hit:PlaySound "fx_rr1", 0, 1, pan(ActiveBall):End Sub
  1031. Sub RRHit5_Hit:PlaySound "fx_rr2", 0, 1, pan(ActiveBall):End Sub
  1032. Sub RRHit6_Hit:PlaySound "fx_rr3", 0, 1, pan(ActiveBall):End Sub
  1033. Sub RRHit7_Hit:PlaySound "fx_lr4", 0, 1, pan(ActiveBall):End Sub
  1034. Sub RRHit8_Hit:PlaySound "fx_lr5", 0, 1, pan(ActiveBall):End Sub
  1035. Sub RRHit9_Hit:PlaySound "fx_lr5", 0, 1, pan(ActiveBall):End Sub
  1036. Sub RRHit10_Hit:PlaySound "fx_lr1", 0, 1, pan(ActiveBall):End Sub
  1037. Sub RRHit11_Hit:PlaySound "fx_lr2", 0, 1, pan(ActiveBall):End Sub
  1038. Sub RRHit12_Hit:PlaySound "fx_lr4", 0, 1, pan(ActiveBall):End Sub
  1039. Sub RRHit13_Hit:PlaySound "fx_lr5", 0, 1, pan(ActiveBall):End Sub
  1040.  
  1041. '--------------------------------------
  1042. '------ Destruk's Display Code ------
  1043. '--------------------------------------
  1044. '16 - 14
  1045. '7 - 7
  1046. '16 - 7
  1047.  
  1048. Dim Digits(53)
  1049. Const Offset=32
  1050. Digits(Offset+0)=Array(LED1,LED2,LED3,LED4,LED5,LED6,LED7,LED8)'ok
  1051. Digits(Offset+1)=Array(LED9,LED10,LED11,LED12,LED13,LED14,LED15)'ok
  1052. Digits(Offset+2)=Array(LED16,LED17,LED18,LED19,LED20,LED21,LED22)'ok
  1053. Digits(Offset+3)=Array(LED23,LED24,LED25,LED26,LED27,LED28,LED29,LED30)'ok
  1054. Digits(Offset+4)=Array(LED31,LED32,LED33,LED34,LED35,LED36,LED37)'ok
  1055. Digits(Offset+5)=Array(LED38,LED39,LED40,LED41,LED42,LED43,LED44)'ok
  1056. Digits(Offset+6)=Array(LED45,LED46,LED47,LED48,LED49,LED50,LED51)'ok
  1057.  
  1058. Sub LEDTimer_Timer
  1059. Dim ChgLED,ii,num,chg,stat,obj
  1060. ChgLED = Controller.ChangedLEDs(&Hffffffff, &Hffffffff)
  1061. If Not IsEmpty(ChgLED) Then
  1062. For ii = 0 To UBound(chgLED)
  1063. num = chgLED(ii, 0) : chg = chgLED(ii, 1) : stat = chgLED(ii, 2)
  1064. if (num >= Offset+0) and (num <= Offset+6) then
  1065. For Each obj In Digits(num)
  1066. If chg And 1 Then obj.State = stat And 1
  1067. chg = chg\2 : stat = stat\2
  1068. Next
  1069. end if
  1070. Next
  1071. End If
  1072. End Sub
  1073.  
  1074.  
  1075. 'Additional Sounds
  1076.  
  1077. Sub LeftFlipper_Collide(parm)
  1078. PlaySound "fx_rubber_flipper", 0, parm / 30, -0.1, 0.15
  1079. End Sub
  1080.  
  1081. Sub RightFlipper_Collide(parm)
  1082. PlaySound "fx_rubber_flipper", 0, parm / 30, 0.1, 0.15
  1083. End Sub
  1084.  
  1085. Sub RSling_hit: PlaySound "fx_rubber", 0, (Vol(ActiveBall)) /5, pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0:End Sub
  1086. Sub LSling_hit: PlaySound "fx_rubber", 0, (Vol(ActiveBall)) /5, pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0:End Sub
  1087. Sub Target24_hit: PlaySound SoundFX("target",DOFTargets) End Sub
  1088.  
  1089.  
  1090.  
  1091. '******************************
  1092. ' Diverse Collection Hit Sounds
  1093. '******************************
  1094. 'Borrowed from Uncle Willy's Bad Cats VPX TablesDirectory
  1095.  
  1096. Sub aRubber_Posts_Hit(idx):PlaySound "fx_rubber", 0, (Vol(ActiveBall)) /6, pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0:End Sub
  1097. Sub aRubber_Pins_Hit(idx):PlaySound "fx_postrubber", 0, (Vol(ActiveBall)) /8, pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0:End Sub
  1098. Sub aPlastics_Hit(idx): PlaySound SoundFX("fx_droptarget",DOFDropTargets), 0, Vol(ActiveBall), pan(ActiveBall), 0, Pitch(ActiveBall), 0, 0:End Sub
  1099. Sub Rubber15_hit: Playsound "fx_postrubber", 0, (Vol(ActiveBall)) /5, pan(ActiveBall), 0, Pitch(ActiveBall) End Sub
Advertisement
Add Comment
Please, Sign In to add comment