Guest User

USS South Dakota FT SP

a guest
Sep 27th, 2020
442
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MAIN BATTERY:
  2. Elevation:
  3. TargetSelected | TargetDistance < 41200 & TargetDistance > 0 ?(clamp((atan(((pow(853,2)) - (sqrt((pow(853,4)) - (9.81 * ((9.81 * pow(TargetDistance, 2)) + ((2 * (sum(Pitch) * 10)) * pow(853,2)))))))/(9.81 * TargetDistance + 0.00001)) + sum(Pitch)),-5,40) / 90) : 0
  4.  
  5. Heading A/B Turret (-140,140)
  6.  
  7. TargetSelected & TargetDistance < 41200?(clamp(deltaangle(TargetHeading,Heading) - sum(Roll),-140,140) / 180):0
  8.  
  9. Heading X/Y Turret (-140,140)
  10.  
  11. TargetSelected & TargetDistance < 41200 & TargetDistance > 0?(clamp(deltaangle(deltaangle(TargetHeading,Heading) + 180,0) + sum(Roll),-140,140) / 180):0
  12.  
  13.  
  14. ===============================
  15. SECONDARY BATTERY:
  16. Shell Fusing:
  17. TargetSelected?(TargetDistance + (rate(TargetDistance) * TargetDistance / 790)) / 790:100000
  18.  
  19. 5/38 Elevation (-5 - 85 elevation):
  20. TargetSelected | TargetDistance < 15000 & TargetDistance > 0?clamp(atan(((pow(790,2)) - (sqrt((pow(790,4)) - (9.81 * ((9.81 * pow((cos(TargetElevation) * TargetDistance), 2)) + ((2 * ((sin(TargetElevation) * TargetDistance))) * pow(790,2)))))))/(9.81 * (cos(TargetElevation) * TargetDistance) + 0.00001)) + sum(Pitch), -5, 85) / 90:0
  21.  
  22. Front L turrets are NOT inverted. Front R turrets ARE inverted.
  23. Back L turrets are ARE inverted. Back R turrets ARE inverted.
  24.  
  25. 5/38 A Turret L (0,-110)
  26. TargetSelected & TargetDistance < 15000?(clamp(deltaangle(TargetHeading,Heading) - sum(Roll),0,110) / 180):0
  27.  
  28. 5/38 B Turret L (0,179.9)
  29. TargetSelected & TargetDistance < 15000?(clamp(deltaangle(TargetHeading,Heading) - sum(Roll),0,179.9) / 180):0
  30.  
  31. 5/38 Y Turret L (0, 125 BACKWARDS)
  32. TargetSelected & TargetDistance < 15000 & TargetDistance > 0?(clamp(deltaangle(deltaangle(TargetHeading,Heading) + 180,0) + sum(Roll),0,125) / 180):0
  33.  
  34. 5/38 X Turret L (0, 115 BACKWARDS)
  35. TargetSelected & TargetDistance < 15000 & TargetDistance > 0?(clamp(deltaangle(deltaangle(TargetHeading,Heading) + 180,0) + sum(Roll),0,115) / 180):0
  36.  
  37. 5/38 A Turret R (-110,0)
  38. TargetSelected & TargetDistance < 15000?(clamp(deltaangle(TargetHeading,Heading) - sum(Roll),-110,0) / 180):0
  39.  
  40. 5/38 B Turret R (-179.9,0)
  41. TargetSelected & TargetDistance < 15000?(clamp(deltaangle(TargetHeading,Heading) - sum(Roll),-179.9,0) / 180):0
  42.  
  43. 5/38 Y Turret R (-125,0 BACKWARDS)
  44. TargetSelected & TargetDistance < 15000 & TargetDistance > 0?(clamp(deltaangle(deltaangle(TargetHeading,Heading) + 180,0) + sum(Roll),-125,0) / 180):0
  45.  
  46. 5/38 X Turret R (-115,0 BACKWARDS)
  47. TargetSelected & TargetDistance < 15000 & TargetDistance > 0?(clamp(deltaangle(deltaangle(TargetHeading,Heading) + 180,0) + sum(Roll),-115,0) / 180):0
  48. ===============================
  49.  
  50. AA Guns
  51. TargetSelected | TargetDistance < 5000 & TargetDistance > 0?clamp(deltaangle(deltaangle(TargetHeading, Heading) - 90, 0),-70,70) / 180:0
  52. clamp(TargetElevation,-2.5,80) / 90
  53. ===============================
  54. Rudder
  55. -0.045|x-22|+1
  56. Yaw * (abs(TAS-22) * -0.045 + 1)
  57.  
  58.  
RAW Paste Data