18.01.2017, 19:53
What I do for shotguns is take the amount float from the callback and add like 20 to it like this:
then decrease the new amount from player's health. The default shotgun's damage depends on how many bullets hit the player. So basically if all bullets hit then the damage is going to be 70 (around 50 is the default damage and 20 is the additional damage. Or if you were far and shot a player the damage could be 25 (around 5 is the default damage and 20 is additional). This is the easiest way to do it in my opinion.
Код:
amount += 20.0

