From cd43aa6162a1b2cc76d95d2281082370b8fc821c Mon Sep 17 00:00:00 2001 From: ineedbots Date: Tue, 7 Sep 2021 23:53:27 -0600 Subject: [PATCH] try this... --- .vscode/settings.json | 16 +++++++++++++++- .../mp/max_allocation_fix_source-compiled.gsc | Bin 838 -> 860 bytes raw/scripts/mp/max_allocation_fix_source.gsc | 4 +++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b1985ef..170e4c3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,19 @@ "Compile current GSC File": [ "*.gsc" ] - } + }, + "Lua.diagnostics.globals": [ + "InheritFrom", + "CoD", + "LUI", + "Dvar", + "Engine", + "UIExpression", + "RegisterMaterial", + "GetTextDimensions", + "setstencil", + "HUD_IngameMenuClosed", + "HUD_IsFFA", + "HideGlobe" + ] } \ No newline at end of file diff --git a/raw/scripts/mp/max_allocation_fix_source-compiled.gsc b/raw/scripts/mp/max_allocation_fix_source-compiled.gsc index 9a69d0767f6e785031a566533414b079998ab96b..834441b6019fe9832c66b1750bcb2cdb2f1a4e91 100644 GIT binary patch delta 513 zcmZ9Ize@sP7{{OI^>TRO5Q4&M$RnZC;UpAV6e|j{#ih6)10gHy2Zk6CH5krONn>M9 z5!uk<+7S5L?j=+s76hfHL<$Vuvvs!NvSXN}X&F(_ne6rmtqXk24eC&_d1BznUf(Eraz?WuD5 z&yZ=aC(2+!1hni$WQeJW{0~thb+T@M>k=y4n*-J!bQXHyV`bzD`V=}#NrLPv;8Ah4 za_rRH`~`H=$+PkZUGBo*Unwn^VTd5xp2atO6g~qFsU)B+N3)oLcF!R(@1tBqPX(;Q zUxN+s25f=1U=8&5Qg9T8Z!i=lbS4T5F{N;5h^Z4TPbLzAO)d=O9dB^qIT7xBHgw02Z$2H zsqPL1mktgt6^BxUj$OpAF7-{~bDJO={2tB8HFz^F2| zVo?M=IZQXxwdT_c>#b8+uls1DhnTC9w$hA3<_4avW>?T*vn$Djg8>W-;juPi&A=F@ zGa*f}Wj8!7lAeteEWW^+EvADBb}~8k#3kYUpLfHlznOY8wE`ax6ixk@m%?YUZIz*{M|kMnqI*Ms8ff0Tt%)m!n>&6qIbf&XwUQ!U7-%` zjmZpuhb2Kl)EDzb<|XD-ZJAySUDPT)Iu{T*<8_Ta=cLcvC)?x$*&`px0hDw}os&cE ff2AArG3P!6OZ-(z`Yir1Oc8vNaZ<6#CFjXsJ(Wm4 diff --git a/raw/scripts/mp/max_allocation_fix_source.gsc b/raw/scripts/mp/max_allocation_fix_source.gsc index 96e4d03..7afddde 100644 --- a/raw/scripts/mp/max_allocation_fix_source.gsc +++ b/raw/scripts/mp/max_allocation_fix_source.gsc @@ -16,6 +16,8 @@ on_player_connect() check_player_classes() { + self endon( "disconnect" ); + for ( class_num = 0; class_num < 10; class_num++ ) { allocationSpent = self GetLoadoutAllocation( class_num ); @@ -27,7 +29,7 @@ check_player_classes() logline1 = "Player: " + self.name + " XUID: " + self getXUID() + " had too many items in their class."; print( logline1 ); kick( self getEntityNumber() ); - break; + return; } } } \ No newline at end of file