10.06.2016, 16:05
Try using the ternary operator:
Or, if you want to do it real easy for all weapons, you can multiply the damage by 1.5 after having established the base damage.
PHP код:
damage = (bodypart == 9) ? 30 : 20;

