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.
This commit is contained in:
Dan
2019-11-30 23:13:06 +00:00
parent 0c5bf69be6
commit 3718f697fb

View File

@@ -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