Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. ######################################################
  2. # NAME: J.Spade stan mid comp
  3.  
  4. # Spindle Scales -------------------------------------
  5. (Fx_scale 1.0)
  6. (Fy_scale (* tone 2.0))
  7. (Fz_scale 1.0)
  8. (Mz_scale (* (+ (* tone -1.0) 1.0) 2.0))
  9.  
  10.  
  11. # Low Speed Filter Out -------------------------------
  12. (one_minus_floor (- 1.0 device_standstill_floor))
  13. (low_speec_scale ((+ device_standstill_floor (* one_minus_floor (crossover vel_mag 0.0 1.0)))))
  14. (Fx_scale (* Fx_scale low_speec_scale))
  15. (Mz_scale (* Mz_scale low_speec_scale))
  16.  
  17. # Spindle Arm ----------------------------------------
  18. (arm_angle 15.0)
  19. (left_scale (linkage 1.0 -1.0))
  20. (right_scale (linkage 1.0 1.0))
  21.  
  22. # Anti Jolt ------------------------------------------
  23. #(left_scale (* left_scale (antijolt2 FL_load 0.09 0.22 0.1)))
  24. #(right_scale (* right_scale (antijolt2 FR_load 0.09 0.22 0.1)))
  25.  
  26. # Rack -----------------------------------------------
  27. (Fx (+ (* left_scale FL_Fx) (* right_scale FR_Fx)))
  28. (Fx (smooth Fx 0.05))
  29. (Fy (+ (* left_scale FL_Fy) (* right_scale FR_Fy)))
  30. (Fz (+ (* left_scale FL_Fz) (* right_scale FR_Fz)))
  31. (Mz (+ (* left_scale FL_Mz) (* right_scale FR_Mz)))
  32. (output (+ (* Fx_scale Fx) (* Fy_scale Fy) (* Fz_scale Fz) (* Mz_scale Mz) ) )
  33.  
  34. #(output (compressor output threshold ratio attack release))
  35. (output (compressor output (* 0.65) (* 2.0) (* 0.04) (* 0.02)))
  36.  
  37. #Scoop as pCARS 1 - Scoop Knee / Scoop Reduction
  38. #(output (scoop output 0.75 0.25))
  39.  
  40. (output (* 2.5 volume output))
  41.  
  42. # Autoscale ------------------------------------------
  43. (scale_init_time 10.0)
  44. (scale_window_init 1.0)
  45. (scale_window_nominal 10.0)
  46. (scale_soft_clear_t 0.5)
  47. (scale_min 0.1)
  48. (scale_max 4.0)
  49. (scale_cap 1.5)
  50. (scale_blend_t 2.0)
  51. (scale_min_raise 0.2)
  52. (scale_min_slide 0.1)
  53. # scaler is not hooked to output in RAW
  54. (signal_scale output
  55. 0.1 0.2 1.0 2.0 0.2
  56. 0.1
  57. 0.0 0.0)
  58.  
  59. # Safety ---------------------------------------------
  60. (output (* output (- 1.0 (* device_safety FL_detached))))
  61. (output (* output (- 1.0 (* device_safety FR_detached))))
  62.  
  63. (output (* output device_gain))
  64.  
  65. #(output (soft_clip output 1.0 0.0 device_headroom))
  66.  
  67. # Lock Stops -----------------------------------------
  68. (stops (bumpstop output 0.1 1.0 0.1 0.0))
  69. (output (+ output (* stops device_lock_stop)))
  70.  
  71. # Jerk Based Road Feel -------------------------------
  72. (FL_road (* FL_load 1.0))
  73. (FL_road (jerk FL_road))
  74. (FL_road (* FL_road (abs FL_angvel)))
  75.  
  76. (FR_road (* FR_load -1.0))
  77. (FR_road (jerk FR_road))
  78. (FR_road (* FR_road (abs FR_angvel)))
  79.  
  80. (FL_brk (* FL_long 1.0))
  81. (FL_brk (jerk FL_brk))
  82. (FL_brk (* FL_brk (abs FL_angvel)))
  83.  
  84. (FR_brk (* FR_long -1.0))
  85. (FR_brk (jerk FR_brk))
  86. (FR_brk (* FR_brk (abs FR_angvel)))
  87.  
  88. (FL_crnr (* FL_lat 1.0))
  89. (FL_crnr (jerk FL_crnr))
  90. (FL_crnr (* FL_crnr (abs FL_angvel)))
  91.  
  92. (FR_crnr (* FR_lat -1.0))
  93. (FR_crnr (jerk FR_crnr))
  94. (FR_crnr (* FR_crnr (abs FR_angvel)))
  95.  
  96. # Bump -----------------------------------------------
  97. (FL_bump_period (+ (* 0.4 FL_bump_kerb) (* 0.1 FL_bump_track)))
  98. (FL_bump_amplitude (+ (* 0.2 FL_bump_kerb) (* 0.06 FL_bump_track)))
  99. (FL_bump_sharpness 0.99)
  100. (inv_period (/ 1.0 (+ FL_bump_period 0.001)))
  101. (dphase (* FL_vel_x dt inv_period))
  102. (FL_bump (oscillator dphase))
  103. (FL_bump (scoop FL_bump FL_bump_sharpness 0.99))
  104. (FL_bump (* FL_bump FL_load FL_bump_amplitude FL_angvel))
  105. #(FL_bump (split FL_bump 0.0 1.0 0.0 0.4 0.02))
  106.  
  107. (FR_bump_period (+ (* 0.4 FR_bump_kerb) (* 0.1 FR_bump_track)))
  108. (FR_bump_amplitude (+ (* 0.2 FR_bump_kerb) (* 0.06 FR_bump_track)))
  109. (FR_bump_sharpness 0.99)
  110. (inv_period (/ 1.0 (+ FR_bump_period 0.001)))
  111. (dphase (* FR_vel_x dt inv_period))
  112. (FR_bump (oscillator dphase))
  113. (FR_bump (scoop FR_bump FR_bump_sharpness 0.99))
  114. (FR_bump (* FR_bump FR_load FR_bump_amplitude FR_angvel))
  115. #(FR_bump (split FR_bump 0.0 1.0 0.0 0.4 0.02))
  116.  
  117. # Scrub ----------------------------------------------
  118. (FL_scrub (soft_clip FL_scrub 1.6 0.0))
  119. (FL_scrub (scoop FL_scrub 0.8 0.999))
  120. (FL_scrub (* FL_scrub (oscillator 0.5)))
  121. (FR_scrub (soft_clip FR_scrub 1.6 0.0))
  122. (FR_scrub (scoop FR_scrub 0.8 0.999))
  123. (FR_scrub (* FR_scrub (oscillator 0.5)))
  124.  
  125.  
  126. # Texture --------------------------------------------
  127. (road_scale (* 0.0006 1.0))
  128. (brk_scale (* 0.0005))
  129. (bump_scale (* 0.24 1.0))
  130. (scrub_scale 0.0)
  131.  
  132. (FL_tex (+ (* road_scale FL_road) (* brk_scale FL_brk) (* brk_scale FL_crnr) (* bump_scale FL_bump) (* scrub_scale FL_scrub)))
  133. (FR_tex (+ (* road_scale FR_road) (* brk_scale FR_brk) (* brk_scale FR_crnr) (* bump_scale FR_bump) (* scrub_scale FR_scrub)))
  134.  
  135. (tex (+ FL_tex FR_tex))
  136. (tex (* tex track_road_noise 0.4))
  137.  
  138. (tex (soft_clip tex 1.0 0.0))
  139.  
  140. # Engine ---------------------------------------------
  141. (engine (oscillator (* throttle crankshaft 0.0006)))
  142. (engine (split engine 0.0 1.0 0.0 0.1 0.02))
  143.  
  144. # Gearbox --------------------------------------------
  145. (gearbox (oscillator (* (abs (- driveshaft_core clutchshaft_core)) 1.0)))
  146. (gearbox (* gearbox gearbox_grind clutch 0.05))
  147. (gearbox (spring gearbox 40000.0 0.2 1.0))
  148. (gearbox (* gearbox 0.15))
  149.  
  150. (feel (+ tex gearbox))
  151. (feel (spring feel device_filter_stiffness 0.4 1.0))
  152. (tyre_scrub (* (+ FL_scrub FR_scrub) 0.3))
  153. (feel (+ feel tyre_scrub))
  154.  
  155. (output (+ output (* feel fx)))
  156.  
  157. # Low Speed Smoothing -------------------------------
  158. (fast_scale (crossover vel_mag 0.0 1.0))
  159. (slow_output (smooth output 0.2))
  160. (slow_output (drag slow_output 0.0001 0.0))
  161. (output (+ (* fast_scale output) (* (- 1.0 fast_scale) slow_output)))
  162.  
  163. # mass damper ---------------------------------------
  164. (output (spring output device_mass_k 1.0 1.0))
  165.  
  166. #Deadzone Removal as pCARS 1 - deadzone/fall off
  167. (output (tighten output 0.02 0.01))
  168.  
  169. (scaled_anti_drag (* device_drag (crossover vel_mag 0.0 10.0)))
  170. (output (anti_drag output scaled_anti_drag device_friction 0.3))
  171.  
  172. (output (relative output 1.4 0.1 0.99))
  173.  
  174. (histogram output)
  175.  
  176. (output (hard_clip (* output gain) 1.0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement