Skip to main content

aim_miss

Description

Fired when the rage aimbot missed a shot at a player.

Example

local hitgroup_names = {"generic", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "neck", "?", "gear"}

local function aim_miss(e)
local group = hitgroup_names[e.hitgroup + 1] or "?"

print(string.format(
"Missed %s (%s) due to %s",
entity.get_player_name(e.target), group, e.reason
))
end

client.set_event_callback("aim_miss", aim_miss)

Arguments

IndexNameType
0Argument #0table

#0 - Properties

NameDescription
idShot ID, the corresponding aim_fire event has the same ID
targetTarget player entindex
hit_chanceActual hit chance the shot had
hitgroupHit group that was missed. This is not the same thing as a hitbox
reasonReason the shot was missed. This can be 'spread', 'prediction error', 'death' or '?' (unknown / resolver)