Paste #20988: Untitled Paste

Date: 2015/10/16 03:04:12 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


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]>
        }
      }