I found that most homemade weapons on the official website use the formula "ammo (xxx)<X". Although this formula can determine the remaining ammunition, the problem is that it is necessary to first clarify the order of weapon deployment. This leads creators to generally only provide 1 to 2 weapons, otherwise installing multiple weapons on a new aircraft is equivalent to remanufacturing them, which is very unfriendly to weapons with high FT usage such as cluster weapons.
So for homemade weapons, can other judgment formulas be used, such as measuring the difference in longitude and latitude.
Install a flight computer on the weapon and assign variable names to its longitude, latitude, and altitude. Calculate the difference between it and the aircraft's longitude, latitude, and altitude. If it exceeds a certain range, it will be judged as being dropped and the weapon will be activated
Like:abs(FA-Latitude) > 25 | abs(FO-Longitude) > 25 | abs(Altitude-AAL1)>20
Feasible solutions:https://www.simpleplanes.com/a/II8a24/XB-1A-Bsix-cluster-bombs
On the Alternative Formula for "ammo (xxx) < X"
3,976 JSTQ
9 months ago