So after posting in a thread on how to use maths to describe the trajectory of a zooka/nade from factors like wind strength, gravity, fire angle and so on, I tried to obtain some values for some of these factors so I could use the formulas to calculate in-game stuff.
After a few game experiments i had some values for the forces gravity and wind. These values are based on calling the maximum shooting power "100". So the power value ranges from 0 (a single tap) to 100 (holding space all the way until it fires).
Anyways, I implemented the formulas in javascript to make what i call The TI-BnG-82.
This is a calculator that calculates the distance a zook/nade travels. There are 4 parameters working here:
Power: already explained.
Angle: From 0 degrees to 180 degrees. 0 degrees is shooting flat to the right. 90 degrees is straight up. More than 90 degrees is aiming towards left.
Wind: Positive wind strength values mean to the right. Negative wind means to the left. (red or blue wind)
Δ Altitude: This is the difference in altitude. 0 means that the TI-BnG-82 will calculate how far the zook travels to reach back to the same altitude as your worm. Negative values means below your worm, positive values means above.
Low Gravity: Speaks for itself.
A positive distance output means that the zook will go to the right side of the worm, whereas a negative distance means to the left.
You can also swap left with right in respect to what i said to calculate in the opposite direction.
There is also an output of time that tells how long it takes for the projectile to travel the distance.
Here it is:
https://wormstuff.000webhostapp.com/There's also a little drawing explaining the different parameters.
Edit: changed the description.