Not a member yet? Why not Sign up today
Create an account  

  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Cinematic aircraft AI. 2.0: dogfights galore

#1
A little lua script to control planes

it is not as sophisticated as Madwand's, and does a couple things differently:

- will aim the whole craft as if it were a turret, enabling cannon based aircraft to fly effectively even without mantlets

- will roll and pitch and maneuver both horizontally and vertically to reach it's firing solution

- will not fight the default AI if no enemies are around

- bugs!

2.0

- merged and simplified behaviour selection, now spends much more time on target
- configurable slow down when on the enemy six via minimumThrust
- added demonstrator in attachment

https://pastebin.com/EJLL8dRV

2.1

tunable edition!

- pitch up parameter for planes that don't fly centered
- integrative term with falloff to improve stability
- changed: aim all weapon by default, people was confused by that

https://pastebin.com/Uagqp37Q

2.2

- plane now try to go at a higher altitude before attacking
- fixed ai ignoring maneuver distance multiplier
- laser aiming support

https://pastebin.com/J3vszFpR


Attached Files
.blueprint   p47.blueprint (Size: 57.89 KB / Downloads: 64)
.blueprint   drone.blueprint (Size: 61.92 KB / Downloads: 53)
Reply



Messages In This Thread
Cinematic aircraft AI. 2.0: dogfights galore - by LoSboccacc - 2015-11-01, 03:05 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)