From acb5b25cfee392cd869ba4f0673a92e2d04f28c1 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Wed, 15 Nov 2023 18:01:51 -0500 Subject: [PATCH] F Word.... --- gamemodes/benny/gamemode/modules/player/sh_player.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gamemodes/benny/gamemode/modules/player/sh_player.lua b/gamemodes/benny/gamemode/modules/player/sh_player.lua index c12e21f..b9dea72 100644 --- a/gamemodes/benny/gamemode/modules/player/sh_player.lua +++ b/gamemodes/benny/gamemode/modules/player/sh_player.lua @@ -64,7 +64,9 @@ function PT:INV_Find( class ) table.insert( results, i ) end end - table.sort( results, SORTS["Acquisition"] ) + -- PROTO: HOLY SHIT THIS SUCKS, MAKES A FUNCTION EVERY FRAME, AND MIGHT RUN EVERY FRAME!!! + table.sort( results, function( a, b ) return inv[b]["Acquisition"] > inv[a]["Acquisition"] end ) + -- table.sort( results, SORTS["Acquisition"] ) return results end @@ -93,6 +95,7 @@ do [6] = {}, [7] = {}, } + -- PROTO: HOLY SHIT THIS SUCKS, MAKES A FUNCTION EVERY FRAME, AND RUNS EVERY FRAME!!! local inv = self:INV_Get() local function BucketSorter(a, b) return (inv[b[1]]["Acquisition"] + (b[2]*10000)) > (inv[a[1]]["Acquisition"] + (a[2]*10000))