~Edit~: See the video I just made showcasing this here.
While digging through the XML options for the new tank cannon using the also-new built-in Overload, I found out how to make functioning flak.
Step 1
Enable Overload (obviously).
Step 2
Enter the designer and pull out a cannon.
Step 3
Select the cannon and hit the Overload button. Using the bar at the top, change it from “Part” to “Cannon”.
Step 4
Find “projectileLifetime” in the list. It should be set at 60 by default.
Step 4
Change the number to whatever you wish.
ex: 60 = 60 seconds, .5 = 1/2 seconds, etc...
Step 5 (Optional)
Make 8.8 cm Flak 18/36/37/41.
wisdom from people in the comments
railfanethan: “ Reply
if you use 4 different guns you can have 4 different life times for a true flak off effect”
@Weaponsindustry Detonate it in closest range
So what is the function of this code? "proximity Detonation Range Min"
Is there a way so it explodes near a vehicle, like the missiles?
You can do it by hitting the + button in the cannon section at the bottom and replace name with
fuseInput
And the Value you can input stuff like VTOL or the funky tree code
Actually there is an input called
fuseInput
That you can input stuff like VTOL so you can use the VTOL slider
Or you can use @typeZERO 's funky tree code which is
TargetSelected ? TargetDistance / (1250 - rate(TargetDistance)) : 60
Note: you must replace the number 1250 with whatever your cannon velocity is, or else it won't detonate correctly
Credits to @typeZERO btw
That explosionScalar variable is really gonna be handy...
So if the distance for a flack cannon was too far, it would be useless for aircraft unless it was direct hits? Never thought of flak too much, that’s crazy how they did that back then
It would be better if it exploded near or if you could change the time in the game when you are fighting
But I thought you likes trains only, to prove your point use that on a train, make s armed train and I will give u a surprise @RailfanEthan
Not sure, I’ll have to check it out. @Rub3n213
Came up with an old-school idea: maybe bomb + missile? (use ignitionDelay to make it never ignite; proximityDetonationRangeMin/Max attibute can turn it into proximity fuse) then just adjust the size and stick them together XD.
Maybe but I don’t think so, your able to access thing like flight data but I don’t think you can have an input for that@Rub3n213
Check out my new Flak Gun for an example:
120mm M1 Flak Gun
@Darjeelings183 In theory yes, there is proximity detonation for missiles.
Can we have VT?
Can’t you have the life value changed by something like a VTOL slider?
@Ruffes123 E
e
you are now wise @RailfanEthan
if you use 4 different guns you can have 4 different life times for a true flak off effect