Arngrim

Catacomb

Aug 7th, 2021
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.24 KB | None | 0 0
  1. '############################################################################################
  2. '############################################################################################
  3. '####### ########
  4. '####### Catacomb ########
  5. '####### (Stern 1981) VPX conversion HSM ########
  6. '####### ########
  7. '############################################################################################
  8. '############################################################################################
  9. '
  10. ' Version 1.4 mfuegemann 2014
  11. '
  12. ' Thanks to Destruk/Lander/Skalar for light numbers and solenoid corrections in their VP8 table
  13. ' Thanks to Inkochnito for the DIP switch settings code
  14. Option Explicit
  15. On Error Resume Next
  16. ExecuteGlobal GetTextFile("controller.vbs")
  17. If Err Then MsgBox "You need the Controller.vbs file in order to run this table (installed with the VPX package in the scripts folder)"
  18. On Error Goto 0
  19.  
  20. LoadVPM "01560000","STERN.VBS",3.1
  21.  
  22. Const UseSolenoids=2,UseLamps=1,SSolenoidOn="SolOn",SSolenoidOff="SolOff",SCoin="coin3"
  23. Const UseSync = 0
  24.  
  25. '-----------------------------------
  26. '------ Solenoid Assignment ------
  27. '-----------------------------------
  28. SolCallback(6) = "vpmSolSound SoundFX(""Knocker"",DOFKnocker)," 'Sol3 Knocker --> 6 Lander
  29. SolCallback(7) = "bsLeftKicker.SolOut" 'Sol4 Left Saucer --> 7 Lander
  30. SolCallback(8) = "bsRightKicker.SolOut" 'Sol8 Right Saucer
  31. SolCallback(11) = "DropTargetBank_A.SolDropUp" 'Sol9 Drop Target A --> 11 Lander
  32. SolCallback(12) = "DropTargetBank_B.SolDropUp" 'Sol10 Drop Target B --> 12 Lander
  33. SolCallback(14) = "DropTargetBank_D.SolDropUp" 'Sol11 Drop Target D --> 14 Lander
  34. SolCallback(13) = "DropTargetBank_C.SolDropUp" 'Sol12 Drop Target C --> 13 Lander
  35. SolCallback(9) = "bsTrough.SolIn" 'Sol13 Outhole --> 9 Lander
  36. SolCallback(10) = "SolBallRelease" 'Sol14 Ball Release --> 10 Lander
  37. SolCallback(19) = "vpmNudge.SolGameOn" 'Sol15 --> 19 Lander
  38. SolCallback(20) = "SolBackbox" 'Sol18 BackBox Game --> 20 Lander
  39. SolCallback(sLRFlipper) = "SolRFlipper"
  40. SolCallback(sLLFlipper) = "SolLFlipper"
  41.  
  42.  
  43. Set LampCallback= GetRef("UpdateMultipleLamps")
  44. Set vpmShowDips = GetRef("editDips")
  45.  
  46. Dim Objekt
  47. If Catacomb.ShowDT = False then
  48. for each Objekt in backdropstuff:Objekt.visible = False:Next
  49. End If
  50.  
  51.  
  52. '--------------------------
  53. '------ Table Init ------
  54. '--------------------------
  55. Dim bsTrough,DropTargetBank_A,DropTargetBank_B,DropTargetBank_C,DropTargetBank_D,GIState,obj,bsRightKicker,bsLeftKicker,InitGravity,TableInitOK
  56. Dim X,Y,YY,XX,Square,OldSquare,PrevOldSquare,Prev2OldSquare,Flash
  57. Const BackBoxGravity = 3
  58. Sub Catacomb_Init
  59. TableInitOK = False
  60. vpminit me
  61. InitGravity = Catacomb.gravity
  62. HideBackBox
  63. Const cgamename = "catacomb"
  64. Controller.GameName=cGameName
  65. Controller.SplashInfoLine="Catacomb" & vbNewLine & "Created by mfuegemann"
  66. Controller.HandleKeyboard=False
  67. Controller.ShowTitle=0
  68. Controller.ShowFrame=0
  69. Controller.ShowDMDOnly=1
  70. Controller.HandleMechanics=0
  71. Controller.Run
  72. If Err Then MsgBox Err.Description
  73. On Error Goto 0
  74.  
  75. PinMAMETimer.Interval=PinMAMEInterval
  76. PinMAMETimer.Enabled = true
  77.  
  78. vpmNudge.TiltSwitch=7
  79. vpmNudge.Sensitivity=2
  80. vpmNudge.TiltObj = Array(Bumper1,Bumper2,LeftslingShot,RightslingShot,UpperLeftslingshot)
  81.  
  82. vpmMapLights AllLights
  83.  
  84. Set bsTrough=New cvpmBallStack
  85. bsTrough.InitSw 17,33,34,35,0,0,0,0
  86. bsTrough.InitKick BallRelease,90,5
  87. bsTrough.InitExitSnd SoundFX("BallRelease",DOFContactors),SoundFX("Solenoid",DOFContactors)
  88. bsTrough.Balls=3
  89.  
  90. set DropTargetBank_A = new cvpmDropTarget
  91. DropTargetBank_A.InitDrop Array(DT_A_Left,DT_A_Middle,DT_A_Right), Array(16,15,14)
  92. DropTargetBank_A.InitSnd SoundFX("Target",DOFTargets),SoundFX("fx_resetdrop",DOFContactors)
  93. set DropTargetBank_B = new cvpmDropTarget
  94. DropTargetBank_B.InitDrop Array(DT_B_Left,DT_B_Middle,DT_B_Right), Array(24,23,22)
  95. DropTargetBank_B.InitSnd SoundFX("Target",DOFTargets),SoundFX("fx_resetdrop",DOFContactors)
  96. set DropTargetBank_C = new cvpmDropTarget
  97. DropTargetBank_C.InitDrop Array(DT_C_Left,DT_C_Middle,DT_C_Right), Array(32,31,30)
  98. DropTargetBank_C.InitSnd SoundFX("Target",DOFTargets),SoundFX("fx_resetdrop",DOFContactors)
  99. set DropTargetBank_D = new cvpmDropTarget
  100. DropTargetBank_D.InitDrop Array(DT_D_Left,DT_D_Middle,DT_D_Right), Array(40,39,38)
  101. DropTargetBank_D.InitSnd SoundFX("Target",DOFTargets),SoundFX("fx_resetdrop",DOFContactors)
  102.  
  103. Set bsLeftKicker=New cvpmBallStack
  104. bsLeftKicker.InitSaucer LeftKicker,36,90,10
  105. bsLeftKicker.InitExitSnd SoundFX("popper_ball",DOFContactors),SoundFX("solon",DOFContactors)
  106.  
  107. Set bsRightKicker=New cvpmBallStack
  108. bsRightKicker.InitSaucer RightKicker,37,260,5
  109. bsRightKicker.InitExitSnd SoundFX("popper_ball",DOFContactors),SoundFX("solon",DOFContactors)
  110.  
  111. GIState = LightstateOff
  112. End Sub
  113.  
  114. Sub DropAreset()
  115. DT_A_Left.isdropped=0
  116. DT_A_Middle.isdropped=0
  117. DT_A_Right.isdropped=0
  118. End Sub
  119.  
  120. Sub Catacomb_exit()
  121. If B2SOn Then
  122. Controller.Pause = False
  123. Controller.Stop
  124. End If
  125. End Sub
  126.  
  127. '------------------------------
  128. '------ Trough Handler ------
  129. '------------------------------
  130. Sub Drain_Hit()
  131. SoundTimer.enabled = 0
  132. bsTrough.AddBall Me
  133. playsound "Drain"
  134. End Sub
  135.  
  136. '---------------------------------
  137. '------ Backbox Functions ------
  138. '---------------------------------
  139.  
  140. Sub SolBallRelease(Enabled)
  141. If Enabled Then
  142. HideBackBox
  143. bsTrough.ExitSol_On
  144. TableInitOK = True
  145. End If
  146. End Sub
  147.  
  148. Dim BackboxActive,BBall
  149.  
  150. Sub SolBackbox(Enabled)
  151. If Enabled Then
  152. ActivateBackBox
  153. else
  154. DeactivateBackBox
  155. End If
  156. End Sub
  157.  
  158. Sub ActivateBackBox
  159. if B2Son then
  160. Controller.B2SSetData "MaskAboveFlipper", 1
  161. Controller.B2SSetData "BackboxActive", 1
  162. BallPosTimer.enabled = True
  163. end if
  164. if TableInitOK = True then
  165. BackboxActive = True
  166. for each obj in Backbox
  167. obj.visible = True
  168. next
  169. for each obj in BackboxWalls
  170. obj.visible = True
  171. obj.Sidevisible = True
  172. obj.collidable = True
  173. next
  174. for each obj in BackBoxRubber
  175. obj.collidable = True
  176. obj.visible = True
  177. Next
  178.  
  179. BackBoxLight.State = LightstateOn
  180. Catacomb.gravity = BackBoxGravity
  181. BackDestroyBall.enabled=False
  182. set BBall = BKicker.Createsizedball(13)
  183. BBall.Image = "Yball"
  184. BKicker.kick 180,1
  185. end if
  186. End Sub
  187.  
  188. Sub DeactivateBackBox
  189. BackDestroyBall.enabled=True
  190. HideBackboxTimer.enabled = True
  191. BallPosTimer.enabled = False
  192. BackBoxActive = False
  193. BackBoxLight.State = LightstateOff
  194. BFlipper.RotateToStart
  195. Catacomb.gravity = InitGravity
  196.  
  197. if B2Son then
  198. Controller.B2SSetData "BackboxActive", 0
  199. for xx = 1 to 23
  200. for yy = 1 to 23
  201. Controller.B2SSetData CStr(10000 + (XX * 100) + YY), 0
  202. next
  203. next
  204. Square = 10101
  205. Controller.B2SSetData "Flipper_up", 0
  206. Controller.B2SSetData "Flipper_down", 1
  207. Controller.B2SSetData CStr(Square), 1
  208. End If
  209. End Sub
  210.  
  211. Sub HideBackboxTimer_Timer
  212. HideBackboxTimer.enabled = false
  213. HideBackBox
  214. End Sub
  215.  
  216. Sub HideBackBox
  217. If B2Son Then
  218. for xx = 1 to 23
  219. for yy = 1 to 23
  220. Controller.B2SSetData CStr(10000 + (XX * 100) + YY), 0
  221. next
  222. next
  223. Square = 10101
  224. Controller.B2SSetData "Flipper_up", 0
  225. Controller.B2SSetData "Flipper_down", 1
  226. Controller.B2SSetData CStr(Square), 1
  227. End If
  228. BackBoxActive = False
  229. for each obj in Backbox
  230. obj.visible = False
  231. next
  232. for each obj in BackBoxRubber
  233. obj.collidable = False
  234. obj.visible = False
  235. Next
  236. for each obj in BackboxWalls
  237. obj.visible = False
  238. obj.Sidevisible = False
  239. obj.collidable = False
  240. next
  241. BackBoxLight.State = LightstateOff
  242. BFlipper.RotateToStart
  243. Catacomb.gravity = InitGravity
  244. End Sub
  245.  
  246. Sub BackDestroyBall_Hit
  247. BackDestroyBall.destroyball
  248. End Sub
  249.  
  250. '---------------------------------
  251. '----- B2S Ball Simulation -----
  252. '---------------------------------
  253. OldSquare = 10101 'Rest Position
  254. PrevOldSquare = 10101
  255. Prev2OldSquare = 10101
  256.  
  257. Sub BallPosTimer_Timer
  258. if Backboxactive then
  259. X = Round((BOrigin.X - BBall.X)/21.3) '21.3 is the x grid size
  260. Y = Round((BOrigin.Y - BBall.Y)/21.3) '21.3 is the y grid size
  261.  
  262. if (Y<20) and (Y>4) and (X<3) then X = 1 'shooter lane exception
  263. if (Y<18) and (Y>4) and (X=13) then X = 12 'lane A exception
  264. if (Y<18) and (Y>4) and ((X=9) or (X=11)) then X = 10 'lane B exception
  265. if (Y<18) and (Y>4) and (X=7) then X = 8 'lane C exception
  266. if (Y<18) and (Y>4) and ((X=4) or (X=6)) then X = 5 'lane D exception
  267. if (Y<5) and (Y>2) and ((X>1) and (X<5)) then Y = 4 'return lane exception
  268. if X<1 then X = 1 'boundary check
  269. if X>15 then X = 15
  270. if Y<1 then Y = 1
  271. if Y>23 then Y = 23
  272.  
  273. Square = 10000 + (X * 100) + Y 'calculates the current grid position string
  274. if Square <> OldSquare then
  275. Controller.B2SSetData CStr(Prev2OldSquare), 0
  276. Controller.B2SSetData CStr(PrevOldSquare), 0
  277. Controller.B2SSetData CStr(OldSquare), 0
  278. Controller.B2SSetData CStr(Square), 1
  279. Prev2OldSquare = PrevOldSquare
  280. PrevOldSquare = OldSquare
  281. Oldsquare = Square
  282. end if
  283. end if
  284. End Sub
  285.  
  286. Sub SolLFlipper(Enabled)
  287. If Enabled Then
  288. PlaySound SoundFX("fx_flipperup", DOFFlippers), 0, 1, -0.1, 0.15
  289. LeftFlipper.RotateToEnd
  290. Else
  291. PlaySound SoundFX("fx_flipperdown", DOFFlippers), 0, 1, -0.1, 0.15
  292. LeftFlipper.RotateToStart
  293. End If
  294. End Sub
  295.  
  296. Sub SolRFlipper(Enabled)
  297. If Enabled Then
  298. PlaySound SoundFX("fx_flipperup", DOFFlippers), 0, 1, 0.1, 0.15
  299. RightFlipper.RotateToEnd
  300. Else
  301. PlaySound SoundFX("fx_flipperdown", DOFFlippers), 0, 1, 0.1, 0.15
  302. RightFlipper.RotateToStart
  303. End If
  304. End Sub
  305.  
  306. '-------------------------------
  307. '------ Keybord Handler ------
  308. '-------------------------------
  309. Sub catacomb_KeyDown(ByVal keycode)
  310. If KeyDownHandler(keycode) Then Exit Sub
  311. If keycode = PlungerKey Then Plunger.PullBack:playsound "plungerpull"
  312.  
  313. If keycode = LeftFlipperKey Then
  314. If BackBoxActive = True Then
  315. Controller.Switch(8)=1 '8 Lander
  316. DOF 117, DOFOn
  317. End If
  318. End If
  319.  
  320. If keycode = RightFlipperKey Then
  321. If BackBoxActive = True Then
  322. BFlipper.RotateToEnd
  323. PlaySound SoundFX("fx_flipperup", DOFFlippers), 0, 1, 0.1, 0.15
  324. If B2Son=True Then
  325. Controller.B2SSetData "Flipper_down", 0 'B2S
  326. Controller.B2SSetData "Flipper_up", 1 'B2S
  327. DOF 117, DOFOff
  328. End If
  329. End If
  330. End If
  331. End Sub
  332.  
  333. Sub catacomb_KeyUp(ByVal keycode)
  334. If KeyUpHandler(keycode) Then Exit Sub
  335. If keycode = PlungerKey Then Plunger.Fire: playsound "plunger"
  336.  
  337. If keycode = LeftFlipperKey Then
  338. If BackBoxActive = True Then
  339. Controller.Switch(8)=0 '8 Lander
  340. End If
  341. End If
  342. If keycode = RightFlipperKey Then
  343. If BackBoxActive = True Then
  344. PlaySound SoundFX("fx_flipperdown", DOFFlippers), 0, 1, 0.1, 0.15
  345. BFlipper.RotateToStart
  346. If B2Son=True Then
  347. Controller.B2SSetData "Flipper_up", 0 'B2S
  348. Controller.B2SSetData "Flipper_down", 1 'B2S
  349. End If
  350. End If
  351. End If
  352. End Sub
  353.  
  354. '------------------------------
  355. '------ Switch Handler ------
  356. '------------------------------
  357. Sub Spinner4_Spin:vpmTimer.PulseSwitch 4,0,0:PlaySound "fx_spinner", 0, .25, AudioPan(Spinner4), 0.25, 0, 0, 1, AudioFade(Spinner4):End Sub
  358. sub Trigger5_hit:Controller.Switch(5)=1:End Sub '5 Left Gate
  359. sub Trigger5_unhit:Controller.Switch(5)=0:End Sub
  360.  
  361. sub Bumper2_hit '9 Right Bumper
  362. vpmTimer.pulseSw 9
  363. RandomSoundBumper
  364. End Sub
  365.  
  366. sub Bumper1_hit '10 Left Bumper
  367. vpmTimer.pulseSw 10
  368. RandomSoundBumper
  369. End Sub
  370.  
  371.  
  372. Sub RandomSoundBumper()
  373. Select Case Int(Rnd*4)+1
  374. Case 1 : PlaySound SoundFX("fx_bumper1",DOFContactors)
  375. Case 2 : PlaySound SoundFX("fx_bumper2",DOFContactors)
  376. Case 3 : PlaySound SoundFX("fx_bumper3",DOFContactors)
  377. Case 4 : PlaySound SoundFX("fx_bumper4",DOFContactors)
  378. End Select
  379. End Sub
  380.  
  381. '**********Sling Shot Animations
  382. ' Rstep and Lstep are the variables that increment the animation
  383. '****************
  384. Dim RStep, Lstep
  385.  
  386. Sub RightSlingShot_Slingshot
  387. vpmTimer.pulseSw 13
  388. PlaySound SoundFX("right_slingshot",DOFContactors), 0,1, 0.05,0.05 '0,1, AudioPan(RightSlingShot), 0.05,0,0,1,AudioFade(RightSlingShot)
  389. RSling.Visible = 0
  390. RSling1.Visible = 1
  391. sling1.rotx = 20
  392. RStep = 0
  393. RightSlingShot.TimerEnabled = 1
  394. End Sub
  395.  
  396. Sub RightSlingShot_Timer
  397. Select Case RStep
  398. Case 3:RSLing1.Visible = 0:RSLing2.Visible = 1:sling1.rotx = 10
  399. Case 4:RSLing2.Visible = 0:RSLing.Visible = 1:sling1.rotx = 0:RightSlingShot.TimerEnabled = 0
  400. End Select
  401. RStep = RStep + 1
  402. End Sub
  403.  
  404. Sub LeftSlingShot_Slingshot
  405. vpmTimer.pulseSw 12
  406. PlaySound SoundFX("left_slingshot",DOFContactors), 0,1, -0.05,0.05 '0,1, AudioPan(LeftSlingShot), 0.05,0,0,1,AudioFade(LeftSlingShot)
  407. LSling.Visible = 0
  408. LSling1.Visible = 1
  409. sling2.rotx = 20
  410. LStep = 0
  411. LeftSlingShot.TimerEnabled = 1
  412. End Sub
  413.  
  414. Sub LeftSlingShot_Timer
  415. Select Case LStep
  416. Case 3:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.rotx = 10
  417. Case 4:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.rotx = 0:LeftSlingShot.TimerEnabled = 0
  418. End Select
  419. LStep = LStep + 1
  420. End Sub
  421.  
  422. Sub UpperLeftSlingShot_Slingshot
  423. vpmTimer.pulseSw 11
  424. PlaySound SoundFX("left_slingshot",DOFContactors), 0,1, -0.05,0.05 '0,1, AudioPan(UpperLeftSlingShot), 0.05,0,0,1,AudioFade(UpperLeftSlingShot)
  425. ULSling.Visible = 0
  426. ULSling1.Visible = 1
  427. sling3.rotx = 20
  428. LStep = 0
  429. UpperLeftSlingShot.TimerEnabled = 1
  430. End Sub
  431.  
  432. Sub UpperLeftSlingShot_Timer
  433. Select Case LStep
  434. Case 3:ULSling1.Visible = 0:ULSling2.Visible = 1:sling3.rotx = 10
  435. Case 4:ULSling2.Visible = 0:ULSling.Visible = 1:sling3.rotx = 0:UpperLeftSlingShot.TimerEnabled = 0
  436. End Select
  437. LStep = LStep + 1
  438. End Sub
  439.  
  440. Sub DT_A_Right_Dropped:DropTargetBank_A.Hit 3:DOF 101, DOFPulse:End Sub '14
  441. Sub DT_A_Middle_Dropped:DropTargetBank_A.Hit 2:DOF 101, DOFPulse:End Sub '15
  442. Sub DT_A_Left_Dropped:DropTargetBank_A.Hit 1:DOF 101, DOFPulse:End Sub '16
  443.  
  444. sub Trigger18_hit:Controller.Switch(18)=1:PlaySound "Gate1",0,0.1,-0.18,0.1:End Sub '18 Left Outlane
  445. sub Trigger18_unhit:Controller.Switch(18)=0:Trigger18.timerenabled=True:End Sub
  446. sub Trigger19_hit:Controller.Switch(19)=1:PlaySound "Gate1",0,0.1,0.18,0.1:End Sub '19 Right Outlane
  447. sub Trigger19_unhit:Controller.Switch(19)=0:Trigger19.timerenabled=True:End Sub
  448. sub Trigger20_hit:Controller.Switch(20)=1:PlaySound "Gate1",0,0.1,-0.15,0.1:End Sub '20 Left Inlane
  449. sub Trigger20_unhit:Controller.Switch(20)=0:Trigger20.timerenabled=True:End Sub
  450. sub Trigger21_hit:Controller.Switch(21)=1:PlaySound "Gate1",0,0.1,0.15,0.1:End Sub '21 Right Inlane
  451. sub Trigger21_unhit:Controller.Switch(21)=0:Trigger21.timerenabled=True:End Sub
  452.  
  453. Sub DT_B_Right_Dropped:DropTargetBank_B.Hit 3:DOF 102, DOFPulse:End Sub '22
  454. Sub DT_B_Middle_Dropped:DropTargetBank_B.Hit 2:DOF 102, DOFPulse:End Sub '23
  455. Sub DT_B_Left_Dropped:DropTargetBank_B.Hit 1:DOF 102, DOFPulse:End Sub '24
  456.  
  457. sub Trigger25_hit:Controller.Switch(25)=1:PlaySound "Gate1",0,0.1,-0.1,0.1:End Sub '25 Spot 6 Rollover
  458. sub Trigger25_unhit:Controller.Switch(25)=0:Trigger25.timerenabled=True:End Sub
  459. sub Trigger26_hit:Controller.Switch(26)=1:PlaySound "Gate1",0,0.1,-0.05,0.1:End Sub '26 Spot 1 Rollover
  460. sub Trigger26_unhit:Controller.Switch(26)=0:Trigger26.timerenabled=True:End Sub
  461. Sub Target27_Hit:vpmTimer.PulseSw 27:Playsound "Target1",0,1,0.15,0.25:End Sub '27 Spot 2 Target
  462. sub Trigger28_hit:Controller.Switch(28)=1:End Sub '28 Highscore Rollover
  463. sub Trigger28_unhit:Controller.Switch(28)=0:End Sub
  464. sub Trigger29_hit:Controller.Switch(29)=1:PlaySound "Gate",0,0.1,0.05,0.1:End Sub '29 Spinner Value Rollover
  465. sub Trigger29_unhit:Controller.Switch(29)=0:End Sub ':Trigger29.timerenabled=True
  466.  
  467. Sub DT_C_Right_Dropped:DropTargetBank_C.Hit 3:DOF 103, DOFPulse:End Sub '30
  468. Sub DT_C_Middle_Dropped:DropTargetBank_C.Hit 2:DOF 103, DOFPulse:End Sub '31
  469. Sub DT_C_Left_Dropped:DropTargetBank_C.Hit 1:DOF 103, DOFPulse:End Sub '32
  470.  
  471. Sub LeftKicker_Hit:bsLeftKicker.AddBall 0:End Sub '36
  472. Sub RightKicker_Hit:bsRightKicker.AddBall 0:End Sub '37
  473.  
  474. Sub DT_D_Right_Dropped:DropTargetBank_D.Hit 3:DOF 104, DOFPulse:End Sub '38
  475. Sub DT_D_Middle_Dropped:DropTargetBank_D.Hit 2:DOF 104, DOFPulse:End Sub '39
  476. Sub DT_D_Left_Dropped:DropTargetBank_D.Hit 1:DOF 104, DOFPulse:End Sub '40
  477.  
  478. sub TriggerB14_hit:Controller.Switch(14)=1:DOF 105, 1:End Sub '14 Backbox
  479. sub TriggerB14_unhit:Controller.Switch(14)=0:DOF 105, 0:End Sub
  480. sub TriggerB15_hit:Controller.Switch(15)=1:DOF 106, 1:End Sub '15 Backbox
  481. sub TriggerB15_unhit:Controller.Switch(15)=0:DOF 106, 0:End Sub
  482. sub TriggerB16_hit:Controller.Switch(16)=1:DOF 107, 1:End Sub '16 Backbox
  483. sub TriggerB16_unhit:Controller.Switch(16)=0:DOF 107, 0:End Sub
  484. sub TriggerB22_hit:Controller.Switch(22)=1:DOF 108, 1:End Sub '22 Backbox
  485. sub TriggerB22_unhit:Controller.Switch(22)=0:DOF 108, 0:End Sub
  486. sub TriggerB23_hit:Controller.Switch(23)=1:DOF 109, 1:End Sub '23 Backbox
  487. sub TriggerB23_unhit:Controller.Switch(23)=0:DOF 109, 0:End Sub
  488. sub TriggerB24_hit:Controller.Switch(24)=1:DOF 110, 1:End Sub '24 Backbox
  489. sub TriggerB24_unhit:Controller.Switch(24)=0:DOF 110, 0:End Sub
  490. sub TriggerB30_hit:Controller.Switch(30)=1:DOF 111, 1:End Sub '30 Backbox
  491. sub TriggerB30_unhit:Controller.Switch(30)=0:DOF 111, 0:End Sub
  492. sub TriggerB31_hit:Controller.Switch(31)=1:DOF 112, 1:End Sub '31 Backbox
  493. sub TriggerB31_unhit:Controller.Switch(31)=0:DOF 112, 0:End Sub
  494. sub TriggerB32_hit:Controller.Switch(32)=1:DOF 113, 1:End Sub '32 Backbox
  495. sub TriggerB32_unhit:Controller.Switch(32)=0:DOF 113, 0:End Sub
  496. sub TriggerB38_hit:Controller.Switch(38)=1:DOF 114, 1:End Sub '38 Backbox
  497. sub TriggerB38_unhit:Controller.Switch(38)=0:DOF 114, 0:End Sub
  498. sub TriggerB39_hit:Controller.Switch(39)=1:DOF 115, 1:End Sub '39 Backbox
  499. sub TriggerB39_unhit:Controller.Switch(39)=0:DOF 115, 0:End Sub
  500. sub TriggerB40_hit:Controller.Switch(40)=1:DOF 116, 1:End Sub '40 Backbox
  501. sub TriggerB40_unhit:Controller.Switch(40)=0:DOF 116, 0:End Sub
  502.  
  503. '________________________________________
  504. 'Drop Target Lighting
  505. '-------------------------------------
  506.  
  507. Sub DropTargetLight_Timer()
  508. If DT_D_Left.isdropped then
  509. DTL3.state=1
  510. Else
  511. DTL3.state=0
  512. End If
  513. If DT_D_Middle.isdropped then
  514. DTL2.state=1
  515. Else
  516. DTL2.state=0
  517. End If
  518. If DT_D_Right.isdropped then
  519. DTL1.state=1
  520. Else
  521. DTL1.state=0
  522. End If
  523. If DT_C_Left.isdropped then
  524. DTL4.state=1
  525. Else
  526. DTL4.state=0
  527. End If
  528. If DT_C_Middle.isdropped then
  529. DTL5.state=1
  530. Else
  531. DTL5.state=0
  532. End If
  533. If DT_C_Right.isdropped then
  534. DTL6.state=1
  535. Else
  536. DTL6.state=0
  537. End If
  538. If DT_B_Left.isdropped then
  539. DTL7.state=1
  540. Else
  541. DTL7.state=0
  542. End If
  543. If DT_B_Middle.isdropped then
  544. DTL8.state=1
  545. Else
  546. DTL8.state=0
  547. End If
  548. If DT_B_Right.isdropped then
  549. DTL9.state=1
  550. Else
  551. DTL9.state=0
  552. End If
  553. If DT_A_Left.isdropped then
  554. DTL10.state=1
  555. Else
  556. DTL10.state=0
  557. End If
  558. If DT_A_Middle.isdropped then
  559. DTL11.state=1
  560. Else
  561. DTL11.state=0
  562. End If
  563. If DT_A_Right.isdropped then
  564. DTL12.state=1
  565. Else
  566. DTL12.state=0
  567. End If
  568. End Sub
  569.  
  570.  
  571. '*********************************************************************
  572. ' Positional Sound Playback Functions
  573. '*********************************************************************
  574.  
  575. ' Play a sound, depending on the X,Y position of the table element (especially cool for surround speaker setups, otherwise stereo panning only)
  576. ' parameters (defaults): loopcount (1), volume (1), randompitch (0), pitch (0), useexisting (0), restart (1))
  577. ' Note that this will not work (currently) for walls/slingshots as these do not feature a simple, single X,Y position
  578. Sub PlayXYSound(soundname, tableobj, loopcount, volume, randompitch, pitch, useexisting, restart)
  579. PlaySound soundname, loopcount, volume, AudioPan(tableobj), randompitch, pitch, useexisting, restart, AudioFade(tableobj)
  580. End Sub
  581.  
  582. ' Similar subroutines that are less complicated to use (e.g. simply use standard parameters for the PlaySound call)
  583. Sub PlaySoundAt(soundname, tableobj)
  584. PlaySound soundname, 1, 1, AudioPan(tableobj), 0,0,0, 1, AudioFade(tableobj)
  585. End Sub
  586.  
  587. Sub PlaySoundAtBall(soundname)
  588. PlaySoundAt soundname, ActiveBall
  589. End Sub
  590.  
  591.  
  592. '*********************************************************************
  593. ' Supporting Ball & Sound Functions
  594. '*********************************************************************
  595.  
  596. Function AudioFade(tableobj) ' Fades between front and back of the table (for surround systems or 2x2 speakers, etc), depending on the Y position on the table. "Catacomb" is the name of the table
  597. Dim tmp
  598. tmp = tableobj.y * 2 / Catacomb.height-1
  599. If tmp > 0 Then
  600. AudioFade = Csng(tmp ^10)
  601. Else
  602. AudioFade = Csng(-((- tmp) ^10) )
  603. End If
  604. End Function
  605.  
  606. Function AudioPan(tableobj) ' Calculates the pan for a tableobj based on the X position on the table. "Catacomb" is the name of the table
  607. Dim tmp
  608. tmp = tableobj.x * 2 / Catacomb.width-1
  609. If tmp > 0 Then
  610. AudioPan = Csng(tmp ^10)
  611. Else
  612. AudioPan = Csng(-((- tmp) ^10) )
  613. End If
  614. End Function
  615.  
  616. Function Vol(ball) ' Calculates the Volume of the sound based on the ball speed
  617. Vol = Csng(BallVel(ball) ^2 / 2000)
  618. End Function
  619.  
  620. Function Pitch(ball) ' Calculates the pitch of the sound based on the ball speed
  621. Pitch = BallVel(ball) * 20
  622. End Function
  623.  
  624. Function BallVel(ball) 'Calculates the ball speed
  625. BallVel = INT(SQR((ball.VelX ^2) + (ball.VelY ^2) ) )
  626. End Function
  627.  
  628.  
  629. '*****************************************
  630. ' rothbauerw's Manual Ball Control
  631. '*****************************************
  632.  
  633. Dim BCup, BCdown, BCleft, BCright
  634. Dim ControlBallInPlay, ControlActiveBall
  635. Dim BCvel, BCyveloffset, BCboostmulti, BCboost
  636.  
  637. BCboost = 1 'Do Not Change - default setting
  638. BCvel = 4 'Controls the speed of the ball movement
  639. BCyveloffset = -0.01 'Offsets the force of gravity to keep the ball from drifting vertically on the table, should be negative
  640. BCboostmulti = 3 'Boost multiplier to ball veloctiy (toggled with the B key)
  641.  
  642. ControlBallInPlay = false
  643.  
  644. Sub StartBallControl_Hit()
  645. Set ControlActiveBall = ActiveBall
  646. ControlBallInPlay = true
  647. End Sub
  648.  
  649. Sub StopBallControl_Hit()
  650. ControlBallInPlay = false
  651. End Sub
  652.  
  653. Sub BallControlTimer_Timer()
  654. If EnableBallControl and ControlBallInPlay then
  655. If BCright = 1 Then
  656. ControlActiveBall.velx = BCvel*BCboost
  657. ElseIf BCleft = 1 Then
  658. ControlActiveBall.velx = -BCvel*BCboost
  659. Else
  660. ControlActiveBall.velx = 0
  661. End If
  662.  
  663. If BCup = 1 Then
  664. ControlActiveBall.vely = -BCvel*BCboost
  665. ElseIf BCdown = 1 Then
  666. ControlActiveBall.vely = BCvel*BCboost
  667. Else
  668. ControlActiveBall.vely = bcyveloffset
  669. End If
  670. End If
  671. End Sub
  672.  
  673.  
  674. '********************************************************************
  675. ' JP's VP10 Rolling Sounds (+rothbauerw's Dropping Sounds)
  676. '********************************************************************
  677.  
  678. Const tnob = 5 ' total number of balls
  679. ReDim rolling(tnob)
  680. InitRolling
  681.  
  682. Sub InitRolling
  683. Dim i
  684. For i = 0 to tnob
  685. rolling(i) = False
  686. Next
  687. End Sub
  688.  
  689. Sub RollingTimer_Timer()
  690. Dim BOT, b
  691. BOT = GetBalls
  692.  
  693. ' stop the sound of deleted balls
  694. For b = UBound(BOT) + 1 to tnob
  695. rolling(b) = False
  696. StopSound("fx_ballrolling" & b)
  697. Next
  698.  
  699. ' exit the sub if no balls on the table
  700. If UBound(BOT) = -1 Then Exit Sub
  701.  
  702. For b = 0 to UBound(BOT)
  703. ' play the rolling sound for each ball
  704. If BallVel(BOT(b) ) > 1 AND BOT(b).z < 30 Then
  705. rolling(b) = True
  706. PlaySound("fx_ballrolling" & b), -1, Vol(BOT(b)), AudioPan(BOT(b)), 0, Pitch(BOT(b)), 1, 0, AudioFade(BOT(b))
  707. Else
  708. If rolling(b) = True Then
  709. StopSound("fx_ballrolling" & b)
  710. rolling(b) = False
  711. End If
  712. End If
  713.  
  714. ' play ball drop sounds
  715. If BOT(b).VelZ < -1 and BOT(b).z < 55 and BOT(b).z > 27 Then 'height adjust for ball drop sounds
  716. PlaySound "fx_ball_drop" & b, 0, ABS(BOT(b).velz)/17, AudioPan(BOT(b)), 0, Pitch(BOT(b)), 1, 0, AudioFade(BOT(b))
  717. End If
  718. Next
  719. End Sub
  720.  
  721. '**********************
  722. ' Ball Collision Sound
  723. '**********************
  724.  
  725. Sub OnBallBallCollision(ball1, ball2, velocity)
  726. PlaySound("fx_collide"), 0, Csng(velocity) ^2 / 2000, AudioPan(ball1), 0, Pitch(ball1), 0, 0, AudioFade(ball1)
  727. End Sub
  728.  
  729.  
  730. '*****************************************
  731. ' ninuzzu's FLIPPER SHADOWS
  732. '*****************************************
  733.  
  734. sub FlipperTimer_Timer()
  735. FlipperLSh.RotZ = LeftFlipper.currentangle
  736. FlipperRSh.RotZ = RightFlipper.currentangle
  737.  
  738. End Sub
  739.  
  740. '*****************************************
  741. ' ninuzzu's BALL SHADOW
  742. '*****************************************
  743. Dim BallShadow
  744. BallShadow = Array (BallShadow1,BallShadow2,BallShadow3,BallShadow4,BallShadow5)
  745.  
  746. Sub BallShadowUpdate_timer()
  747. Dim BOT, b
  748. BOT = GetBalls
  749. ' hide shadow of deleted balls
  750. If UBound(BOT)<(tnob-1) Then
  751. For b = (UBound(BOT) + 1) to (tnob-1)
  752. BallShadow(b).visible = 0
  753. Next
  754. End If
  755. ' exit the Sub if no balls on the table
  756. If UBound(BOT) = -1 Then Exit Sub
  757. ' render the shadow for each ball
  758. For b = 0 to UBound(BOT)
  759. If BOT(b).X < Catacomb.Width/2 Then
  760. BallShadow(b).X = ((BOT(b).X) - (Ballsize/6) + ((BOT(b).X - (Catacomb.Width/2))/7)) + 6
  761. Else
  762. BallShadow(b).X = ((BOT(b).X) + (Ballsize/6) + ((BOT(b).X - (Catacomb.Width/2))/7)) - 6
  763. End If
  764. ballShadow(b).Y = BOT(b).Y + 12
  765. If BOT(b).Z > 20 Then
  766. BallShadow(b).visible = 1
  767. Else
  768. BallShadow(b).visible = 0
  769. End If
  770. Next
  771. End Sub
  772.  
  773.  
  774.  
  775. '************************************
  776. ' What you need to add to your table
  777. '************************************
  778.  
  779. ' a timer called RollingTimer. With a fast interval, like 10
  780. ' one collision sound, in this script is called fx_collide
  781. ' as many sound files as max number of balls, with names ending with 0, 1, 2, 3, etc
  782. ' for ex. as used in this script: fx_ballrolling0, fx_ballrolling1, fx_ballrolling2, fx_ballrolling3, etc
  783.  
  784.  
  785. '******************************************
  786. ' Explanation of the rolling sound routine
  787. '******************************************
  788.  
  789. ' sounds are played based on the ball speed and position
  790.  
  791. ' the routine checks first for deleted balls and stops the rolling sound.
  792.  
  793. ' The For loop goes through all the balls on the table and checks for the ball speed and
  794. ' if the ball is on the table (height lower than 30) then then it plays the sound
  795. ' otherwise the sound is stopped, like when the ball has stopped or is on a ramp or flying.
  796.  
  797. ' The sound is played using the VOL, AUDIOPAN, AUDIOFADE and PITCH functions, so the volume and pitch of the sound
  798. ' will change according to the ball speed, and the AUDIOPAN & AUDIOFADE functions will change the stereo position
  799. ' according to the position of the ball on the table.
  800.  
  801.  
  802. '**************************************
  803. ' Explanation of the collision routine
  804. '**************************************
  805.  
  806. ' The collision is built in VP.
  807. ' You only need to add a Sub OnBallBallCollision(ball1, ball2, velocity) and when two balls collide they
  808. ' 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
  809. ' depending of the speed of the collision.
  810.  
  811.  
  812. Sub Pins_Hit (idx)
  813. PlaySound "pinhit_low", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 0, 0, AudioFade(ActiveBall)
  814. End Sub
  815.  
  816. Sub Targets_Hit (idx)
  817. PlaySound "target", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 0, 0, AudioFade(ActiveBall)
  818. End Sub
  819.  
  820. Sub Metals_Thin_Hit (idx)
  821. PlaySound "metalhit_thin", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  822. End Sub
  823.  
  824. Sub Metals_Medium_Hit (idx)
  825. PlaySound "metalhit_medium", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  826. End Sub
  827.  
  828. Sub Metals2_Hit (idx)
  829. PlaySound "metalhit2", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  830. End Sub
  831.  
  832. Sub Gates_Hit (idx)
  833. PlaySound "gate", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  834. End Sub
  835.  
  836. Sub Rubbers_Hit(idx)
  837. dim finalspeed
  838. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  839. If finalspeed > 20 then
  840. PlaySound "fx_rubber2", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  841. End if
  842. If finalspeed >= 6 AND finalspeed <= 20 then
  843. RandomSoundRubber()
  844. End If
  845. End Sub
  846.  
  847. Sub Posts_Hit(idx)
  848. dim finalspeed
  849. finalspeed=SQR(activeball.velx * activeball.velx + activeball.vely * activeball.vely)
  850. If finalspeed > 16 then
  851. PlaySound "fx_rubber2", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  852. End if
  853. If finalspeed >= 6 AND finalspeed <= 16 then
  854. RandomSoundRubber()
  855. End If
  856. End Sub
  857.  
  858. Sub RandomSoundRubber()
  859. Select Case Int(Rnd*3)+1
  860. Case 1 : PlaySound "rubber_hit_1", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  861. Case 2 : PlaySound "rubber_hit_2", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  862. Case 3 : PlaySound "rubber_hit_3", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  863. End Select
  864. End Sub
  865.  
  866. Sub LeftFlipper_Collide(parm)
  867. RandomSoundFlipper()
  868. End Sub
  869.  
  870. Sub RightFlipper_Collide(parm)
  871. RandomSoundFlipper()
  872. End Sub
  873.  
  874. Sub RandomSoundFlipper()
  875. Select Case Int(Rnd*3)+1
  876. Case 1 : PlaySound "flip_hit_1", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  877. Case 2 : PlaySound "flip_hit_2", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  878. Case 3 : PlaySound "flip_hit_3", 0, Vol(ActiveBall), AudioPan(ActiveBall), 0, Pitch(ActiveBall), 1, 0, AudioFade(ActiveBall)
  879. End Select
  880. End Sub
  881.  
  882.  
  883. 'Stern Catacomb
  884. ' added by Inkochnito
  885. Sub editDips
  886. Dim vpmDips:Set vpmDips = New cvpmDips
  887. With vpmDips
  888. .AddForm 700,400,"Catacomb - DIP switches"
  889. .AddChk 2,10,180,Array("Match feature",&H00100000)'dip 21
  890. .AddChk 2,25,115,Array("Credits display",&H00080000)'dip 20
  891. .AddFrame 2,45,190,"Maximum credits",&H00060000,Array("10 credits",0,"15 credits",&H00020000,"25 credits",&H00040000,"40 credits",&H00060000)'dip 18&19
  892. .AddFrame 2,120,190,"High game to date",49152,Array("points",0,"1 free game",&H00004000,"2 free games",32768,"3 free games",49152)'dip 15&16
  893. .AddFrame 2,195,190,"High score feature",&H00000020,Array("extra ball",0,"replay",&H00000020)'dip 6
  894. .AddChk 205,10,190,Array("Talking sound",&H00010000)'dip 17
  895. .AddChk 205,25,190,Array("Background sound",&H00000080)'dip 8
  896. .AddFrame 205,45,190,"Special award",&HC0000000,Array("no award",0,"100,000 points",&H40000000,"free ball",&H80000000,"free game",&HC0000000)'dip 31&32
  897. .AddFrame 205,120,190,"Add a ball memory",&H00E00000,Array ("no ball",0,"one ball",&H00800000,"three balls",&H00C00000,"five balls",&H00E00000)'dip 22&23&24
  898. .AddFrame 205,195,190,"Balls per game",&H00000040,Array("3 balls",0,"5 balls",&H00000040)'dip 7
  899. .AddLabel 50,245,300, 20,"After hitting OK, press F3 to reset game with new settings."
  900. .ViewDips
  901. End With
  902. End Sub
  903.  
  904.  
  905.  
  906. '************************************
  907. ' LEDs Display
  908. 'Based on Scapino's 7 digit Reel LEDs
  909. '************************************
  910.  
  911. Dim Digits(32)
  912. Dim Patterns(11)
  913. Dim Patterns2(11)
  914.  
  915. Patterns(0) = 0 'empty
  916. Patterns(1) = 63 '0
  917. Patterns(2) = 6 '1
  918. Patterns(3) = 91 '2
  919. Patterns(4) = 79 '3
  920. Patterns(5) = 102 '4
  921. Patterns(6) = 109 '5
  922. Patterns(7) = 125 '6
  923. Patterns(8) = 7 '7
  924. Patterns(9) = 127 '8
  925. Patterns(10) = 111 '9
  926.  
  927. Patterns2(0) = 128 'empty
  928. Patterns2(1) = 191 '0
  929. Patterns2(2) = 134 '1
  930. Patterns2(3) = 219 '2
  931. Patterns2(4) = 207 '3
  932. Patterns2(5) = 230 '4
  933. Patterns2(6) = 237 '5
  934. Patterns2(7) = 253 '6
  935. Patterns2(8) = 135 '7
  936. Patterns2(9) = 255 '8
  937. Patterns2(10) = 239 '9
  938.  
  939. Set Digits(0) = a0
  940. Set Digits(1) = a1
  941. Set Digits(2) = a2
  942. Set Digits(3) = a3
  943. Set Digits(4) = a4
  944. Set Digits(5) = a5
  945. Set Digits(6) = a6
  946.  
  947. Set Digits(7) = b0
  948. Set Digits(8) = b1
  949. Set Digits(9) = b2
  950. Set Digits(10) = b3
  951. Set Digits(11) = b4
  952. Set Digits(12) = b5
  953. Set Digits(13) = b6
  954.  
  955. Set Digits(14) = c0
  956. Set Digits(15) = c1
  957. Set Digits(16) = c2
  958. Set Digits(17) = c3
  959. Set Digits(18) = c4
  960. Set Digits(19) = c5
  961. Set Digits(20) = c6
  962.  
  963. Set Digits(21) = d0
  964. Set Digits(22) = d1
  965. Set Digits(23) = d2
  966. Set Digits(24) = d3
  967. Set Digits(25) = d4
  968. Set Digits(26) = d5
  969. Set Digits(27) = d6
  970.  
  971. Set Digits(28) = e0
  972. Set Digits(29) = e1
  973. Set Digits(30) = e2
  974. Set Digits(31) = e3
  975.  
  976. Sub LED_Timer
  977. On Error Resume Next
  978. Dim ChgLED, ii, jj, chg, stat
  979. ChgLED = Controller.ChangedLEDs(&HFF, &HFFFF)
  980. If Not IsEmpty(ChgLED) Then
  981. For ii = 0 To UBound(ChgLED)
  982. chg = chgLED(ii, 1):stat = chgLED(ii, 2)
  983.  
  984. For jj = 0 to 10
  985. If stat = Patterns(jj) OR stat = Patterns2(jj) then Digits(chgLED(ii, 0) ).SetValue jj
  986. Next
  987. Next
  988. End IF
  989. End Sub
  990. 'BackDrop Lights
  991. Dim BDL
  992.  
  993. Sub UpdateMultipleLamps
  994.  
  995. BDL=Controller.Lamp(13) 'HS to Date
  996. If BDL Then
  997. HighScore_Box.text="HIGH SCORE"
  998. Else
  999. HighScore_Box.text=""
  1000. End If
  1001.  
  1002. BDL=Controller.Lamp(45) 'Game Over
  1003. If BDL Then
  1004. GameOver_Box.text="GAME OVER"
  1005. Else
  1006. GameOver_Box.text=""
  1007. End If
  1008.  
  1009. BDL=Controller.Lamp(61) 'Tilt
  1010. If BDL Then
  1011. Tilt_Box.text="TILT"
  1012. Else
  1013. Tilt_Box.text=""
  1014. End If
  1015.  
  1016. BDL=Controller.Lamp(11) 'Shoot Again
  1017. If BDL Then
  1018. ShootAgain_Box.text="SHOOT AGAIN"
  1019. Else
  1020. ShootAgain_Box.text=""
  1021. End If
  1022. End Sub
Advertisement
Add Comment
Please, Sign In to add comment