Advertisement
hubs

Untitled

Mar 12th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. on damage of entity:
  2. attacker is player
  3. if projectile is a snowball or arrow:
  4. set damage to damage * (distance between attacker and victim*0.025+1)
  5. if y-coordinate of projectile - y-coordinate of victim is bigger than 1.5:
  6. set damage to damage * 2
  7. play sound "ENTITY_PLAYER_ATTACK_CRIT" to attacker with volume 2 and pitch 2
  8. message '&aヘッドショット!' 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement