Paste #57565: Untitled Paste

Date: 2019/09/01 12:52:05 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


headpunch:
    type: world
    events:
        on player damages entity:
        - define headLoc:<context.entity.eye_location>
        - foreach <player.location.points_between[<player.location.forward[3.5]>].distance[0.5]>:
            - announce "<[value]>"
            - if <[value].distance[<[headLoc]>]> <= 0.5:
             #- define headShot true
             - shoot <context.entity>
             - announce "ow"