From 89bf3c08cfb9008665c40b35d190b2870ed8c8fd Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 29 Nov 2019 20:56:53 +0000 Subject: [PATCH] Removed old sorting code --- cl_radar.lua | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index bbfd48a..bcd72d4 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -132,27 +132,8 @@ RADAR.rayTraces = { { startVec = { x = -10.0 }, endVec = { x = -10.0, y = 150.0 }, rayType = "opp" } } --- Each of these are used for sorting the captured vehicle data, depending on what the --- player has the mode set to, dictates what sorting function to use. The name is just the --- name of the mode that is used to let the user know what mode it is, and the func is the --- function used in table.sort() --- --- DO NOT TOUCH THESE UNLESS YOU KNOW WHAT YOU'RE DOING! ---[[ RADAR.sorting = { - [1] = { - name = "CLOSEST", - func = function( a, b ) return a.dist < b.dist end - }, - [2] = { - name = "FASTEST", - func = function( a, b ) return a.speed > b.speed end - }, - [3] = { - name = "LARGEST", - func = function( a, b ) return a.size > b.size + 1.0 end - } -} ]] - +-- Each of these are used for sorting the captured vehicle data, the 'strongest' filter is used for the main +-- target window of each antenna, whereas the 'fastest' filter is used for the fast target window of each antenna RADAR.sorting = { strongest = function( a, b ) return a.size > b.size end, fastest = function( a, b ) return a.speed > b.speed end