Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of entity:
- attacker is player
- if projectile is a snowball or arrow:
- set damage to damage * (distance between attacker and victim*0.025+1)
- if y-coordinate of projectile - y-coordinate of victim is bigger than 1.5:
- set damage to damage * 2
- play sound "ENTITY_PLAYER_ATTACK_CRIT" to attacker with volume 2 and pitch 2
- message '&aヘッドショット!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement