Advertisement
Guest User

Simpleplanes Funky Trees Gun CIWS

a guest
Aug 28th, 2020
5,798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ELEVATION CONTROL:
  2. inverselerp(0,90,TargetElevation + (rate(TargetElevation) * (TargetDistance / 1500)))
  3.  
  4. HEADING CONTROL
  5. (((TargetHeading - Heading) + (rate(TargetHeading) * (TargetDistance / 1500)))/ 180) * clamp01(TargetDistance < 5000) * clamp01(TargetDistance > 1)
  6.  
  7. LOCAL CONSTANTS:
  8. Replace 1500 with your bullet speed. (both)
  9. Replace 5000 and 1 (in the clamp01 functions) to set the "range" of the turret before activating. (heading control)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement