From 3718f697fbe59551418a0bc31b68aaa53b2c54be Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 30 Nov 2019 23:13:06 +0000 Subject: [PATCH] Fast vehicles have to be going faster than target vehicles now I ideally didn't want to do this, to make it more realistic, but the fast box was just being spammed too much. --- cl_radar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_radar.lua b/cl_radar.lua index 831b29c..0d5acf2 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -612,7 +612,7 @@ function RADAR:GetVehiclesForAntenna() table.sort( vehs[ant], self:GetFastestSortFunc() ) for k, v in pairs( vehs[ant] ) do - if ( self:CheckVehicleDataFitsMode( ant, v.rayType ) and v.veh ~= results[ant][1].veh and v.size + 0.75 < results[ant][1].size ) then + if ( self:CheckVehicleDataFitsMode( ant, v.rayType ) and v.veh ~= results[ant][1].veh and v.size < results[ant][1].size and v.speed > results[ant][1].speed ) then results[ant][2] = v break end