Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected double, double, int CalcBulletDamage (int dmg, double baseKevDMG, double maxBulletShred, double pltShift, double pltMin, double usrPltM, double usrKevM, double usrMin) {
- double bulletShredding = clamp (1-(platesDMG / platesDMGLimit), 0.0, maxBulletShred);
- double pltDMG = clamp ((platesDMG / platesDMGLimit - pltShift) / (1-pltShift), pltMin, 1.0);
- double kevDMG = baseKevDMG * (1-bulletShredding);
- double usrModPlt = usrPltM * (1-bulletShredding);
- double usrModKev = usrKevM * (kevlarDMG / kevlarDMGLimit);
- double usrDMG = clamp (usrModPlt * usrModKev, usrMin, 1.0);
- Console.PrintF ("\n");
- Console.PrintF ("1: %f, %f, %f", bulletShredding, pltDMG, kevDMG);
- Console.PrintF ("2: %f, %f, %f", usrModPlt, usrModKev, usrDMG);
- return dmg * kevDMG, dmg * pltDMG, dmg * usrDMG;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement