this script finds the amount of swing of the delivery.
when i was bowling i tried some outswinger and the value was very low (0.03). So i added some code to make
the minimum swing 0.40, and the maximum 0.80
After some tests it seems that a value bigger than 0 (like 0.50) will do an outswing, a value smaller (-0.50) will do an inswing (for a right handed
batsman). So the final value will be between -0.80 and 0.80
If you want to experiment, change the last line in:
return 1,Undocumented_1
or
return -1,Undocumented_1
Yes i should be able to add the miss chance based on the amount of swing. Tomorrow i'll try.
What will this gonna do?
OMG if we able to get chances based on one off big movement (applying that to both swing and cutters) will result in epic AI vs AI games. can't wait.
Last edited: