Advertisement
Outhere

Guardians of the Galaxy Script

Aug 17th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. '------------------------ After Change -- Outhere added---------------------------------------------------------------
  2. Sub swPlungerRest_Hit()
  3. debug.print "ball in plunger lane"
  4. ' some sound according to the ball position
  5. PlaySoundAt "fx_sensor", swPlungerRest
  6. bBallInPlungerLane = True
  7. ' turn on Launch light is there is one
  8. 'LaunchLight.State = 2
  9. ' kick the ball in play if the bAutoPlunger flag is on
  10.  
  11. if bCreatedBall = False then ' If we didnt create a ball this must have gone up and back so kick it out automatically
  12. bAutoPlunger = True
  13. End if
  14. bCreatedBall = False
  15.  
  16. If bAutoPlunger Then
  17. vpmtimer.addtimer 850, "FireTheBall '" ' Add Timer To Delay Auto Plunger with Free Ball
  18. debug.print "autofire the ball"
  19. End If
  20.  
  21. if (bPlayerModeSelect) Then
  22. if PlayerMode = -1 then SelectPlayerMode LeftFlipperKey
  23. UpdatePlayerMode()
  24. 'PauseSong
  25. if PlayerState(CurrentPlayer).bFirstBall then
  26. debug.print "Start m_wait-2"
  27. 'PlaySoundLoopVol "m_wait", VolDef
  28. playmedia "m_wait2.mp3", MusicDir, pAudio, "", -1, "", 1, 1
  29. End If
  30. End If
  31.  
  32. ' remember last trigger hit by the ball.
  33. LastSwitchHit = "swPlungerRest"
  34. End Sub
  35.  
  36. Sub FireTheBall
  37. PlungerIM.AutoFire
  38. DOF 125, DOFPulse
  39. DOF 112, DOFPulse
  40. bAutoPlunger = False
  41. bAutoPlunged = True
  42. End Sub
  43.  
  44. '-------------------------------------------------------------------------------------------------
  45.  
  46. '----------------------------------- Before Change ------------------------------------------------
  47. 'Sub swPlungerRest_Hit()
  48. ' debug.print "ball in plunger lane"
  49. ' ' some sound according to the ball position
  50. ' PlaySoundAt "fx_sensor", swPlungerRest
  51. ' bBallInPlungerLane = True
  52. ' ' turn on Launch light is there is one
  53. ' 'LaunchLight.State = 2
  54. ' ' kick the ball in play if the bAutoPlunger flag is on
  55. '
  56. ' if bCreatedBall = False then ' If we didnt create a ball this must have gone up and back so kick it out automatically
  57. ' bAutoPlunger = True
  58. ' End if
  59. ' bCreatedBall = False
  60. '
  61. ' If bAutoPlunger Then
  62. ' debug.print "autofire the ball"
  63. ' PlungerIM.AutoFire
  64. ' DOF 125, DOFPulse
  65. ' DOF 112, DOFPulse
  66. ' bAutoPlunger = False
  67. ' bAutoPlunged = True
  68. ' End If
  69. '
  70. ' if (bPlayerModeSelect) Then
  71. ' if PlayerMode = -1 then SelectPlayerMode LeftFlipperKey
  72. ' UpdatePlayerMode()
  73. ' 'PauseSong
  74. ' if PlayerState(CurrentPlayer).bFirstBall then
  75. 'debug.print "Start m_wait-2"
  76. ' 'PlaySoundLoopVol "m_wait", VolDef
  77. ' playmedia "m_wait2.mp3", MusicDir, pAudio, "", -1, "", 1, 1
  78. ' End If
  79. ' End If
  80. '
  81. ' ' remember last trigger hit by the ball.
  82. ' LastSwitchHit = "swPlungerRest"
  83. 'End Sub
  84. '-----------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement