Thanks to powware for giving me the idea and helping with some of the code. Also thanks to hoppip for making auto menu.
This mod makes it so that the radius of graze is dependent on damage, there are 3 scaling options you can find in the mod options menu.
Scale With Base Damage: scales the radius with the weapons base damage, affected by attachments but not by berzerk or crits
Scale With Damage Dealt: scales the radius with the damage the enemy took, does not account for excess damage
Dont Scale: disables the mod
The radius for base damage is multiplied by damage/225 The radius for damage dealt is multiplied by damage/960
The radius is limited to only being scaled up to 8x, this stops the thanatos from wiping the map while also letting it be higher than the awp.