fLaK
5,300 mezmer
3.8 years ago
No Tags
Something stupid i made in 10 min just to get the basics of flak down
Ag 1 to activate, the turret auto aims (only 180 degrees in front of you)
The "flak shells" are actually missiles, with them having proximityDetonationRangeMin and Max to simulate a flak shell exploding near the target.
If all goes well, eventually one of the missiles will explode close enough to the target, destroying it (hopefully not with the very first missile)
For auto-aim I basically just copied the rotators from my autolocking CIWS
@mezmer Thank you, I've always wanted to incorporate it into a build
@Whydoesthismatter Basically the 2 rotators (the one on the bottom controlling the yaw and the one on the side controlling the pitch) for their inputs use code with the help of Funky Trees. You can read this to learn how it works, but basically it's something that let's us use math and trig to calculate different things such as the lead of a target. (It's not important specifically for this flak gun since it uses missiles and not a gun, the rotators I basically just copied straight from this design)
Out of curiosity how did you get it to auto aim?