Ok so tell me about using VPM to do the SSF audio?
so like if i have
Sub LB1_Hit 'Switch 75 Controller.Switch(75)=1 Controller.Switch(77)=1:LB1.IsDropped=1 PlaySound "Target", 1, 1, AudioPan(LB1), 0,0,0, 1, AudioFade(LB1) NON STANDARD EVENT HERE End Sub Sub LB2_Hit 'Switch 65 Controller.Switch(65)=1 Controller.Switch(77)=1 LB2.IsDropped=1 PlaySound "Target", 1, 1, AudioPan(LB2), 0,0,0, 1, AudioFade(LB2) NON STANDARD EVENT HERE End Sub Sub LB3_Hit 'Switch 55 Controller.Switch(55)=1 Controller.Switch(77)=1 LB3.IsDropped=1 PlaySound "Target", 1, 1, AudioPan(LB3), 0,0,0, 1, AudioFade(LB3) NON STANDARD EVENT HERE End Sub Sub LB4_Hit 'Switch 45 Controller.Switch(45)=1 Controller.Switch(77)=1 LB4.IsDropped=1 PlaySound "Target", 1, 1, AudioPan(LB4), 0,0,0, 1, AudioFade(LB4) NON STANDARD EVENT HERE End Sub Sub LB5_Hit 'Switch 35 Controller.Switch(35)=1 Controller.Switch(77)=1 LB5.IsDropped=1 PlaySound "Target", 1, 1, AudioPan(LB5), 0,0,0, 1, AudioFade(LB5) NON STANDARD EVENT HERE End Sub
Obviously the non standard events must stay, as they need some way of knowing when to happen, and Hit is just as easy i guess than watching for if controller.switch(35) then do this thing
But are you saying i could take all the rest, and rip it out, and do
sub Table1_init
Stuff
more stuff
set dtLeftBank = new cvpmdroptarget
With dtLeftBank
.InitDrop Array(LB1, LB2, LB3, LB4, LB5), Array(75, 65, 55, 45, 35)
.initsnd SoundFX("Target", DOFContactors), SoundFX("flapopen", DOFContactors)
.AllDownSw = 37
.CreateEvents "dtLeftBank"
End With
And does that eliminate this also?
Sub RaiseLeft(Enabled) If Enabled Then LB1.IsDropped=0 LB2.IsDropped=0 LB3.IsDropped=0 LB4.IsDropped=0 LB5.IsDropped=0 Controller.Switch(35)=0 Controller.Switch(45)=0 Controller.Switch(55)=0 Controller.Switch(65)=0 Controller.Switch(75)=0 Controller.Switch(77)=0 PlaySound"FlapOpen", 1, 1, AudioPan(LS3), 0,0,0, 1, AudioFade(LS3) DOF 108, 2 'pulse left front bumper Sol If mode > 1 then Select Case Int(Rnd*7)+1 Case 1: call BankReset1 Case 2: call BankReset2 Case 3: call BankReset3 Case 4: call BankReset4 Case 5: call BankReset5 Case 6: call BankReset6 Case 7: call BankReset7 End Select End If End If End Sub
I guess i would have to append the bankreset cases to the solcallback
and just make them a stand lone sub?
SolCallback(5)="RaiseLeft"
I guess would then look something like what you used
Though i honestly have no clue what that is doing exactly
not sure if that is specific to that rom or.
And does that do anything for DOF hardware?




Top












are all trademarks of VPFORUMS.