Guest User

Simpleplanes Funky Trees Gun CIWS

a guest
Aug 28th, 2020
2,081
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×