Advertisement
Guest User

Tee'd Off Trough

a guest
Jan 21st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Sub ReleaseBall(enabled)
  2. If enabled = True Then
  3. PlaySound SoundFX("fx_ballrel",DOFContactors), 0, 0.25 * volumedial
  4. TroughTipBack
  5. else
  6. Slot1.Kick 60, 9
  7. UpdateTrough
  8. BIP = BIP + 1
  9. End If
  10. End Sub
  11.  
  12. Sub TroughTipBack
  13. if Slot2.BallCntOver = 1 then
  14. controller.Switch(14) = 1
  15. end if
  16. End Sub
  17.  
  18. Sub Slot3_Hit():Controller.Switch(14) = 1:UpdateTrough:End Sub
  19. Sub Slot3_UnHit():Controller.Switch(14) = 0:UpdateTrough:End Sub
  20.  
  21. Sub Slot2_UnHit():UpdateTrough:End Sub
  22. Sub Slot1_UnHit():UpdateTrough:End Sub
  23.  
  24. Sub UpdateTrough()
  25. UpdateTroughTimer.Interval = 100
  26. UpdateTroughTimer.Enabled = 1
  27. End Sub
  28.  
  29. Sub UpdateTroughTimer_Timer()
  30. If Slot1.BallCntOver = 0 Then Slot2.kick 60, 9
  31. If Slot2.BallCntOver = 0 Then Slot3.kick 60, 9
  32. If Slot3.BallCntOver = 0 Then Controller.Switch(14) = 0 'tip back
  33. Me.Enabled = 0
  34. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement