Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '************************
- 'Look for this code....
- "************************
- Sub SolLFlipper(Enabled)
- If Enabled Then
- PlaySound SoundFX("fx_flipper1",DOFContactors), 0, 1, -0.2, 0.25
- LeftFlipper.RotateToEnd
- Flipper1.RotateToEnd
- Else
- PlaySound SoundFX("fx_flipperdown",DOFContactors), 0, 1, -0.2, 0.25
- LeftFlipper.RotateToStart
- Flipper1.RotateToStart
- LeftFlipper.TimerEnabled = 1
- LeftFlipper.TimerInterval = 16
- LeftFlipper.return = returnspeed * 0.5
- End If
- End Sub
- Sub SolRFlipper(Enabled)
- If Enabled Then
- PlaySound SoundFX("fx_flipper2",DOFContactors), 0, 1, 0.2, 0.25
- RightFlipper.RotateToEnd
- Else
- PlaySound SoundFX("fx_flipperdown",DOFContactors), 0, 1, 0.2, 0.25
- RightFlipper.RotateToStart
- RightFlipper.TimerEnabled = 1
- RightFlipper.TimerInterval = 16
- RightFlipper.return = returnspeed * 0.5
- End If
- End Sub
- '********************
- 'and replace with...
- '********************
- Sub SolLFlipper(Enabled)
- If Enabled Then
- PlaySound SoundFX("fx_flipper1",DOFContactors), 0, 1, -0.3, 0, 0, 0, 0, .8
- LeftFlipper.RotateToEnd
- Flipper1.RotateToEnd
- Else
- PlaySound SoundFX("fx_flipperdown",DOFContactors), 0, 1, -0.3, 0, 0, 0, 0, .8
- LeftFlipper.RotateToStart
- Flipper1.RotateToStart
- LeftFlipper.TimerEnabled = 1
- LeftFlipper.TimerInterval = 16
- LeftFlipper.return = returnspeed * 0.5
- End If
- End Sub
- Sub SolRFlipper(Enabled)
- If Enabled Then
- PlaySound SoundFX("fx_flipper1",DOFContactors), 0, 1, 0.3, 0, 0, 0, 0, .8
- RightFlipper.RotateToEnd
- Else
- PlaySound SoundFX("fx_flipperdown",DOFContactors), 0, 1, 0.3, 0, 0, 0, 0, .8
- RightFlipper.RotateToStart
- RightFlipper.TimerEnabled = 1
- RightFlipper.TimerInterval = 16
- RightFlipper.return = returnspeed * 0.5
- End If
- End Sub
- '****************************
- ' So to explain the above, both the left flipper and right flipper are now calling the same sound "Fx_flipper1"
- ' You can change that to "Fx_flipper2" if you prefered the other flipper sound.
- ' At the end of the Playsound line there are a bunch of numbers. In these I have added left/right balance (-0.3 & 0.3)
- ' I have also removed the pitch variable so that the sound does not change as you flip
- ' I have also added a fade to the front of the cab (.8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement