Oh, and the problem you had posted above is the internal code/math the game uses to find accuracy vs. range. From what you have posted it looks like your changes may have broke the above formula. Say a divide by zero error or something like that. Those formula's look pretty long so have you tried them out to see how they are doing it? Meaning, do you know what r1 and r2 stand for? I would assume just by what you have here that r1 and r2 are 2 different ranges. If you know what r1 and r2 were you could solve the equation and see exactly what the forumla solves for.
R1 is point blank to 50 meters. R2 is 51 to 170. Anything over 170 seems to hold the same accuracy. So point blank accuracy is 100% to 50 meters.. after 50 meters the accuracy starts to spread. At 51 meters the accuracy is 50 (* 0.3 %r1) or 50 times 0.3 of R1's percent. Lets say r1 is 1. 0.3 x 1% is 0.3. 50 * 0.3 = 15. So at 50 meters R1 spreads 15 whatevers r1 is. Inches, centimeters, feet? That's why you need to know.
Not trying to sound like a pr*ck, just trying to help.
|