HITSCAN

this callback is called right before hitscan is run and allows to override various stuff

passed into the callback is:

local function on_hitscan(ctx, cmd, unpredicted_data)
    -- force hitchance to 100 on head
    ctx:set_hitchance(100, e_hitscan_groups.HEAD)
end

callbacks.add(e_callbacks.HITSCAN, on_hitscan)

Last updated