Quote:
Originally Posted by Rongel
Great news TDW! Will test this in the evening!
The dud probability is a strange one, it really doesn't follow the percentage values in torpedo.sim. Of course it gives some direction, but like in previous games, we have put the percentage really high if we wan't to see duds.
But this sounds just great, thanks!
|
I see why the dud probability is a 'strange one'. They load in the % chance for dud as read from .sim file, then they multiply it by some float value, then they multiply it by another float value, then they finally multiply it by another float value (looks to be related to some kind of skill). After all that multiplication it's no longer near it's original value (it's much less)

That's why I'm changing it! When I'm done with it:
- it will read in % chance for dud as read from sim file (value is between 0 and 100)
- it will get a random number
- it will scale that random number to be between 0 and 100
- it will compare % chance for dud to scaled random number to determine if dud or not
That is how it should've been done in the first place