Date: 2015/10/16 03:04:12 UTC-07:00
Type: Denizen Script
Headshot Monitor:
type: world
debug: true
events:
on entity damaged by arrow:
- ^if <context.damager.is_player> {
- ^if <context.projectile.location.y> >= <context.entity.eye_location.y.sub[0.05]> && <context.projectile.location.y> <= <context.entity.eye_location.y.add[0.70]> {
- ^playeffect <context.entity.eye_location> effect:CRIT qty:5 offset:0.3 data:0.4
- ^narrate t:<context.damager> "<&c><&l>Headshot! <&a>(+<context.damage.mul[1.25].sub[<context.damage>].as_int> damage)"
- ^determine <context.damage.mul[1.15]>
}
}