found a small issue in the switches, sw55 is used for both left and right slingshot, but sw55 is for left and sw56 for right
also, there is an issue in the vpx default table, right slingshot sound is used for left and vice et versa, this is making confusing the authors and myself, i'll post that to the 10.1 vpf thread
anyway, here is the fix:
Sub LeftSlingShot_Slingshot
PlaySound SoundFX("left_slingshot",DOFContactors),0,1,-0.05,0.05
LSling.Visible = 0
LSling1.Visible = 1
sling2.TransZ = -20
LStep = 0
LeftSlingShot.TimerEnabled = 1
vpmTimer.PulseSw 55
'gi1.State = 0:Gi2.State = 0
End Sub
Sub LeftSlingShot_Timer
Select Case LStep
Case 1:LSLing1.Visible = 0:LSLing2.Visible = 1:sling2.TransZ = -10
Case 2:LSLing2.Visible = 0:LSLing.Visible = 1:sling2.TransZ = 0:LeftSlingShot.TimerEnabled = 0:'gi1.State = 1:Gi2.State = 1
End Select
LStep = LStep + 1
End Sub
Sub RightSlingShot_Slingshot
PlaySound SoundFX("right_slingshot",DOFContactors), 0, 1, 0.05, 0.05
RSling.Visible = 0
RSling1.Visible = 1
sling1.TransZ = -20
RStep = 0
RightSlingShot.TimerEnabled = 1
vpmTimer.PulseSw 56
'gi1.State = 0:Gi2.State = 0
End Sub
Edited by arngrim, 08 March 2016 - 06:32 PM.