Advertisement
Guest User

pennisballes

a guest
Oct 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.10 KB | None | 0 0
  1. --[[
  2. ___ _______ _
  3. / _ |____/ ___/ / ___ ____ ___ (_)__
  4. / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
  5. /_/ |_| \___/_//_/\_,_/___/___/_/___/
  6. SecondLogic @ Inspare
  7. ]]
  8.  
  9. local Tune = {}
  10.  
  11. --[[Misc]]
  12. Tune.LoadDelay = .1 -- Delay before initializing chassis (in seconds)
  13. Tune.AutoStart = true -- Set to false if using manual ignition plugin
  14. Tune.AutoFlip = true -- Set to false if using manual flip plugin
  15.  
  16. --[[Wheel Alignment]]
  17. --[Don't physically apply alignment to wheels]
  18. --[Values are in degrees]
  19. Tune.FCamber = -3
  20. Tune.RCamber = -3
  21. Tune.FToe = 0
  22. Tune.RToe = 0
  23.  
  24. --[[Weight and CG]]
  25. Tune.Weight = 2500 -- Total weight (in pounds)
  26. Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
  27. --[[Width]] 6 ,
  28. --[[Height]] 3.5 ,
  29. --[[Length]] 14 }
  30. Tune.WeightDist = 50 -- Weight distribution (0 - on rear wheels, 100 - on front wheels, can be <0 or >100)
  31. Tune.CGHeight = .8 -- Center of gravity height (studs relative to median of all wheels)
  32. Tune.WBVisible = false -- Makes the weight brick visible
  33.  
  34. --Unsprung Weight
  35. Tune.FWheelDensity = .1 -- Front Wheel Density
  36. Tune.RWheelDensity = .1 -- Rear Wheel Density
  37. Tune.FWLgcyDensity = 1 -- Front Wheel Density [PGS OFF]
  38. Tune.RWLgcyDensity = 1 -- Rear Wheel Density [PGS OFF]
  39.  
  40. Tune.AxleSize = 2 -- Size of structural members (larger = more stable/carry more weight)
  41. Tune.AxleDensity = .1 -- Density of structural members
  42.  
  43. --[[Susupension]]
  44. Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled
  45.  
  46. --Front Suspension
  47. Tune.FSusDamping = 500 -- Spring Dampening
  48. Tune.FSusStiffness = 12000 -- Spring Force
  49. Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening)
  50.  
  51. Tune.FSusLength = 2 -- Suspension length (in studs)
  52. Tune.FPreCompress = .3 -- Pre-compression adds resting length force
  53. Tune.FExtensionLim = .3 -- Max Extension Travel (in studs)
  54. Tune.FCompressLim = .1 -- Max Compression Travel (in studs)
  55. Tune.FSusAngle = 80 -- Suspension Angle (degrees from horizontal)
  56.  
  57. Tune.FWsBoneLen = 5 -- Wishbone Length
  58. Tune.FWsBoneAngle = 0 -- Wishbone angle (degrees from horizontal)
  59. Tune.FAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel)
  60. --[[Lateral]] -.4 , -- positive = outward
  61. --[[Vertical]] -.5 , -- positive = upward
  62. --[[Forward]] 0 } -- positive = forward
  63.  
  64. --Rear Suspension
  65. Tune.RSusDamping = 500 -- Spring Dampening
  66. Tune.RSusStiffness = 12000 -- Spring Force
  67. Tune.FAntiRoll = 30 -- Anti-Roll (Gyro Dampening)
  68.  
  69. Tune.RSusLength = 2 -- Suspension length (in studs)
  70. Tune.RPreCompress = .3 -- Pre-compression adds resting length force
  71. Tune.RExtensionLim = .3 -- Max Extension Travel (in studs)
  72. Tune.RCompressLim = .1 -- Max Compression Travel (in studs)
  73. Tune.RSusAngle = 80 -- Suspension Angle (degrees from horizontal)
  74.  
  75. Tune.RWsBoneLen = 5 -- Wishbone Length
  76. Tune.RWsBoneAngle = 0 -- Wishbone angle (degrees from horizontal)
  77. Tune.RAnchorOffset = { -- Suspension anchor point offset (relative to center of wheel)
  78. --[[Lateral]] -.4 , -- positive = outward
  79. --[[Vertical]] -.5 , -- positive = upward
  80. --[[Forward]] 0 } -- positive = forward
  81.  
  82. --Aesthetics
  83. Tune.SusVisible = true -- Spring Visible
  84. Tune.WsBVisible = false -- Wishbone Visible
  85. Tune.SusRadius = .2 -- Suspension Coil Radius
  86. Tune.SusThickness = .1 -- Suspension Coil Thickness
  87. Tune.SusColor = "Bright red" -- Suspension Color [BrickColor]
  88. Tune.SusCoilCount = 6 -- Suspension Coil Count
  89. Tune.WsColor = "Black" -- Wishbone Color [BrickColor]
  90. Tune.WsThickness = .1 -- Wishbone Rod Thickness
  91.  
  92. --[[Wheel Stabilizer Gyro]]
  93. Tune.FGyroDamp = 100 -- Front Wheel Non-Axial Dampening
  94. Tune.RGyroDamp = 100 -- Rear Wheel Non-Axial Dampening
  95.  
  96. --[[Steering]]
  97. Tune.SteerInner = 70 -- Inner wheel steering angle (in degrees)
  98. Tune.SteerOuter = 65 -- Outer wheel steering angle (in degrees)
  99. Tune.SteerSpeed = .05 -- Steering increment per tick (in degrees)
  100. Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees)
  101. Tune.SteerDecay = 320 -- Speed of gradient cutoff (in SPS)
  102. Tune.MinSteer = 10 -- Minimum steering at max steer decay (in percent)
  103. Tune.MSteerExp = 1 -- Mouse steering exponential degree
  104.  
  105. --Steer Gyro Tuning
  106. Tune.SteerD = 1000 -- Steering Dampening
  107. Tune.SteerMaxTorque = 50000 -- Steering Force
  108. Tune.SteerP = 15000 -- Steering Aggressiveness
  109.  
  110. --[[Engine]]
  111. --Torque Curve
  112. Tune.Horsepower = 200 -- [TORQUE CURVE VISUAL]
  113. Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
  114. Tune.PeakRPM = 7500 -- Use sliders to manipulate values
  115. Tune.Redline = 8200
  116. Tune.EqPoint = 9400
  117. Tune.PeakSharpness = 9.4
  118. Tune.CurveMult = 0.13
  119.  
  120. --Incline Compensation
  121. Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees)
  122.  
  123. --Misc
  124. Tune.RevAccel = 150 -- RPM acceleration when clutch is off
  125. Tune.RevDecay = 75 -- RPM decay when clutch is off
  126. Tune.RevBounce = 500 -- RPM kickback from redline
  127. Tune.IdleThrottle = 3 -- Percent throttle at idle
  128. Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
  129.  
  130. --[[Drivetrain]]
  131. Tune.Config = "RWD" --"FWD" , "RWD" , "AWD"
  132.  
  133. --Differential Settings
  134. Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed)
  135. Tune.FDiffLockThres = 0 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel)
  136. Tune.RDiffSlipThres = 100 -- 1 - 100%
  137. Tune.RDiffLockThres = 0 -- 0 - 100%
  138. Tune.CDiffSlipThres = 1 -- 1 - 100% [AWD Only]
  139. Tune.CDiffLockThres = 0 -- 0 - 100% [AWD Only]
  140.  
  141. --Traction Control Settings
  142. Tune.TCSEnabled = false -- Implements TCS
  143. Tune.TCSThreshold = 20 -- Slip speed allowed before TCS starts working (in SPS)
  144. Tune.TCSGradient = 20 -- Slip speed gradient between 0 to max reduction (in SPS)
  145. Tune.TCSLimit = 10 -- Minimum amount of torque at max reduction (in percent)
  146.  
  147. --[[Transmission]]
  148. Tune.TransModes = {"Auto"} --[[
  149. [Modes]
  150. "Auto" : Automatic shifting
  151. "Semi" : Clutchless manual shifting, dual clutch transmission
  152. "Manual" : Manual shifting with clutch
  153.  
  154. >Include within brackets
  155. eg: {"Semi"} or {"Auto", "Manual"}
  156. >First mode is default mode ]]
  157.  
  158. --Automatic Settings
  159. Tune.AutoShiftMode = "RPM" --[[
  160. [Modes]
  161. "Speed" : Shifts based on wheel speed
  162. "RPM" : Shifts based on RPM ]]
  163. Tune.AutoUpThresh = -200 --Automatic upshift point (relative to peak RPM, positive = Over-rev)
  164. Tune.AutoDownThresh = 1400 --Automatic downshift point (relative to peak RPM, positive = Under-rev)
  165.  
  166. --Gear Ratios
  167. Tune.FinalDrive = 3.71 -- [TRANSMISSION CALCULATIONS FOR NERDS]
  168. Tune.Ratios = { -- SPEED [SPS] = (Wheel diameter(studs) * pi(3.14) * RPM) / (60 * Gear Ratio * Final Drive * Multiplier)
  169. --[[Reverse]] 5.000 ,-- WHEEL TORQUE = Engine Torque * Gear Ratio * Final Drive * Multiplier
  170. --[[Neutral]] 0 ,
  171. --[[ 1 ]] 3.519 ,
  172. --[[ 2 ]] 2.520 ,
  173. --[[ 3 ]] 2.200 ,
  174. --[[ 4 ]] 1.800 ,
  175. --[[ 5 ]] 1.507 ,
  176. --[[ 6 ]] 0.950 ,
  177. }
  178. Tune.FDMult = 1.5 -- Ratio multiplier (Change this value instead of FinalDrive if car is struggling with torque ; Default = 1)
  179.  
  180. --[[Brakes]]
  181. Tune.ABSEnabled = false -- Implements ABS
  182. Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
  183.  
  184. Tune.FBrakeForce = 1500 -- Front brake force
  185. Tune.RBrakeForce = 1000 -- Rear brake force
  186. Tune.PBrakeForce = 5000 -- Handbrake force
  187.  
  188. Tune.FLgcyBForce = 15000 -- Front brake force [PGS OFF]
  189. Tune.RLgcyBForce = 10000 -- Rear brake force [PGS OFF]
  190. Tune.LgcyPBForce = 25000 -- Handbrake force [PGS OFF]
  191.  
  192. --[[[Default Controls]]
  193. --Peripheral Deadzones
  194. Tune.Peripherals = {
  195. MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width)
  196. MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%)
  197.  
  198. ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%)
  199. ControlRDZone = 5 , -- Controller steering R-deadzone (0 - 100%)
  200. }
  201.  
  202. --Control Mapping
  203. Tune.Controls = {
  204.  
  205. --Keyboard Controls
  206. --Mode Toggles
  207. ToggleTCS = Enum.KeyCode.T ,
  208. ToggleABS = Enum.KeyCode.Y ,
  209. ToggleTransMode = Enum.KeyCode.M ,
  210. ToggleMouseDrive = Enum.KeyCode.R ,
  211.  
  212. --Primary Controls
  213. Throttle = Enum.KeyCode.Up ,
  214. Brake = Enum.KeyCode.Down ,
  215. SteerLeft = Enum.KeyCode.Left ,
  216. SteerRight = Enum.KeyCode.Right ,
  217.  
  218. --Secondary Controls
  219. Throttle2 = Enum.KeyCode.W ,
  220. Brake2 = Enum.KeyCode.S ,
  221. SteerLeft2 = Enum.KeyCode.A ,
  222. SteerRight2 = Enum.KeyCode.D ,
  223.  
  224. --Manual Transmission
  225. ShiftUp = Enum.KeyCode.E ,
  226. ShiftDown = Enum.KeyCode.Q ,
  227. Clutch = Enum.KeyCode.P ,
  228.  
  229. --Handbrake
  230. PBrake = Enum.KeyCode.LeftShift ,
  231.  
  232. --Mouse Controls
  233. MouseThrottle = Enum.UserInputType.MouseButton1 ,
  234. MouseBrake = Enum.UserInputType.MouseButton2 ,
  235. MouseClutch = Enum.KeyCode.W ,
  236. MouseShiftUp = Enum.KeyCode.E ,
  237. MouseShiftDown = Enum.KeyCode.Q ,
  238. MousePBrake = Enum.KeyCode.LeftShift ,
  239.  
  240. --Controller Mapping
  241. ContlrThrottle = Enum.KeyCode.ButtonR2 ,
  242. ContlrBrake = Enum.KeyCode.ButtonL2 ,
  243. ContlrSteer = Enum.KeyCode.Thumbstick1 ,
  244. ContlrShiftUp = Enum.KeyCode.ButtonY ,
  245. ContlrShiftDown = Enum.KeyCode.ButtonX ,
  246. ContlrClutch = Enum.KeyCode.ButtonR1 ,
  247. ContlrPBrake = Enum.KeyCode.ButtonL1 ,
  248. ContlrToggleTMode = Enum.KeyCode.DPadUp ,
  249. ContlrToggleTCS = Enum.KeyCode.DPadDown ,
  250. ContlrToggleABS = Enum.KeyCode.DPadRight ,
  251. }
  252.  
  253. --[[Weight Scaling]]
  254. --[Cubic stud : pounds ratio]
  255. --[STANDARDIZED: Don't touch unless needed]
  256. Tune.WeightScaling = 1/50 --Default = 1/50 (1 cubic stud = 50 lbs)
  257. Tune.LegacyScaling = 1/10 --Default = 1/10 (1 cubic stud = 10 lbs) [PGS OFF]
  258.  
  259. return Tune
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement