From c457ab288f8db7d1c0bb24088557067c0aab1346 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 4 Dec 2019 10:18:22 +0000 Subject: [PATCH] Reduced max ray distance again, changed min sphere radius size --- cl_radar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 9d4d31c..fa3cd34 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -124,7 +124,7 @@ RADAR.vars = }, -- The maximum distance that the radar system's ray traces can go - maxCheckDist = 400.0, + maxCheckDist = 300.0, -- Cached dynamic vehicle sphere sizes, automatically populated when the system is running sphereSizes = {}, @@ -744,7 +744,7 @@ function RADAR:GetDynamicRadius( veh ) local min, max = GetModelDimensions( mdl ) local size = max - min local numericSize = size.x + size.y + size.z - local dynamicRadius = UTIL:Clamp( ( numericSize * numericSize ) / 12, 5.0, 10.0 ) + local dynamicRadius = UTIL:Clamp( ( numericSize * numericSize ) / 12, 6.0, 10.0 ) self:InsertDynamicRadiusData( key, dynamicRadius, numericSize )