Date: 2019/09/01 12:52:05 UTC-07:00
Type: Denizen Script
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"