Jump to content

mutatedbuzzardmanager AnyBuzzardInRange square distance check uses normal distance


hoxi
  • Pending

Specifically for the circling shadows only:

local function AnyBuzzardInRange(x, y, z)
    for i, buzzard in ipairs(_buzzards) do
        if buzzard:GetDistanceSqToPoint(x, y, z) <= MUTATEDBUZZARD_CORPSE_RANGE_SQ then
            return true
        end
    end

    for i, buzzard in ipairs(_buzzardshadows) do
        if buzzard:GetDistanceSqToPoint(x, y, z) <= MUTATEDBUZZARD_CORPSE_RANGE then -- oops
            return true
        end
    end

    return false
end

 


Steps to Reproduce

Since this results in a way smaller range for the circling shadows, I guess you can compare how corpses might not persist when they should because of it, compared to when the Mutated Buzzards are physically around.

  • Like 1
  • Haha 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...