Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Binds
- var.throttle = keyboard.A
- var.brake = keyboard.Z
- var.clutch = keyboard.X
- var.handbrake = keyboard.Q
- var.steering = mouse.x
- var.shiftup = mouse.LeftButton
- var.shiftdown = mouse.RightButton
- // Sensitivities
- var.throttleincreaserate = 0.1
- var.throttledecreaserate = 0.4
- var.brakeincreaserate = 0.2
- var.brakedecreaserate = 0.2
- var.clutchincreaserate = 0.4
- var.clutchdecreaserate = 0.2
- var.handbrakeincreaserate = 0.4
- var.handbrakedecreaserate = 0.4
- var.blipthreshold = 0.4
- var.brakeratemax = 1
- // Blipping
- var.useautoblip = 1
- // Script
- // Throttle
- if var.throttle > 0 && ppjoy.Analog0 < 1 then ppjoy.Analog0 += var.throttleincreaserate
- if var.throttle = 0 && ppjoy.Analog0 > -1 then ppjoy.Analog0 -= var.throttledecreaserate
- // Brake
- if var.brake > 0 && ppjoy.Analog1 < var.brakeratemax then ppjoy.Analog1 += var.brakeincreaserate
- if var.brake = 0 && ppjoy.Analog1 > -1 then ppjoy.Analog1 -= var.brakedecreaserate
- // Trailing throttle under brakes
- if var.brake > 0 then ppjoy.Analog0 = -0.6
- // Clutch
- if var.clutch > 0 && ppjoy.Analog2 < 1 then ppjoy.Analog2 += var.clutchincreaserate
- if var.clutch = 0 && ppjoy.Analog2 > -1 then ppjoy.Analog2 -= var.clutchdecreaserate
- // Handbrake
- if var.handbrake > 0 && ppjoy.Analog3 < 1 then ppjoy.Analog3 += var.handbrakeincreaserate
- if var.handbrake = 0 && ppjoy.Analog3 > -1 then ppjoy.Analog3 -= var.handbrakedecreaserate
- // Shift up
- ppjoy.Digital0 = var.shiftup
- // Shift down
- ppjoy.Digital1 = var.shiftdown
- // Blip
- if var.useautoblip = 1 && var.shiftdown then ppjoy.Analog0 = var.blipthreshold
- // Steering
- ppjoy.Analog4 = -1 + (var.steering * 2)
- //debug = ppjoy.Analog0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement