Considering the posts above, I created an analytical formula for the
torpedo failure rate p, which considers:
1) The failure rate
p_crisis, resulting from the torpedo crisis until 1942
2) The failure rate
p_wind, resulting from waveheight + torpedo depth
The resulting failure rate p is the sum of both components (to make calculations simple):
p = p_crisis + p_wind
This failure rate p is added on top of the already modelled torpedo failures (premature explosion, dud because of bad impact angle).
-----
For p_crisis I set
p_crisis = {
}
These values are lower than the proposed 25%, since there are already some premature detonations modelled in sh3.
-----
For p_wind I set
p_wind = 50% * (Windspeed)^2 / 225 * (25m - TorpedoDepth) * 4/100
That means: Under worst conditions (windspeed=15m/s, torpedo depth = 0), wind can cause a maximum failure rate of p_wind_max = 50%. If windspeed sinks, p_wind drastically (sqarish) sinks below 50%. The deeper the torpedo, the lower the failure rate. This additionally motivates the player to use magnetic pistol.
Some Examples for failure rates in different situations:
1) Worst case (June 40, Wind 15m/s, TorpedoDepth=1m)
p = 20% + 50% * 1 * 0,96 =
68%
2) LGN1's situation in post #2606 (June40, Wind=12, TorpedoDepth=9)
p = 20% + 50% * 0,64 * 0,64 =
40%
3) After the crisis: (July 42, Wind = 7m/s, TorpedoDepth = 9)
P = 0% + 50% * 0,22 * 0,64 =
7%
4) Quasi best case (July 43, Wind = 1, TorpedoDepth = 12)
P = 0% + 50% * 0,005 * 0,52 =
0,1%
I noone disagrees, I'll implement the formula above into the forthcoming "More torpedo failures" Mod.