From b1954dea69f4de1b8cdfa01757f2d8793baab6c8 Mon Sep 17 00:00:00 2001 From: Altair Sossai Date: Sun, 20 Oct 2024 13:50:41 -0300 Subject: [PATCH] Refactor PrintQueue function to add color formatting for player positions and improve readability --- .../sourcemod/plugins/optional/l4d2_queue.smx | Bin 10930 -> 11037 bytes addons/sourcemod/scripting/l4d2_queue.sp | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/plugins/optional/l4d2_queue.smx b/addons/sourcemod/plugins/optional/l4d2_queue.smx index ff56374fd486aad488ed7ea0619be087ae1e1f1a..b8aa39a0a2aa46d011833eecd7bfbb835065f34d 100644 GIT binary patch delta 10860 zcmYLO1yEeE+Fe)*#fv+OQ@q8CwiI`FDaGBjz=cw*Sn=X5S{#bQ0$ZTCySo&3SZw+C zy_tXBot!!6%Y6Bgdy`3Wlixbox`3>#x)v%53JnJcG#UW{kK_DEYmM{TkXi<*!yG{X=nK-&L>idRAkY$$k?}y=NR6xumu4e>+jmq_kK;wMtW@j##nq)rDwpchD90zp8a z5~T5;Kzm5&1cN{n$hW>mYUj@&ka;Z)$_o@AKjGU@Ff*eg#Vch;fi;SsSS=wMuJKmO}HxZX^zP=%cX2b6JHwYe&VXQ zmMs^SEUe)!jwLUTnKb-8LyU;u47Xlb?6g}wt)D`B_ALcV1CbZqzicANc zjB0O8E3ijTIEI&SOfZ*Hg? z*^1r&yM6s{%*C)`zrl-r6JHf>s56;q2R6@srzoZZgjRDcV>F8 zFT1VVrEL4*azkawOvl1zk2)9kJE=U8v4PVKZm0z}l!zNT$qk(~@g+0%P2z?Qazh=s zp~xBo$#SX&3Rg{hkGP=~+)#Ql(}ggh<4)1d&epZg)~)}z~PSKP9`s{SJA{(>Yd7;x?l0g8ItKOZjUFs>zhxB>49iDG>V#e zgDj$a?QhwA?dS*AxilmMXgIjHn?n{{BrcqF$u4r4=QCW=7K@V)E{#QjD#!fz)R#tu zL#;_b&%dt1$rg1ME)B?hrRj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wz}FIYw>qC9C3NMuS(~ zG_<$ZZgg4vp)nPoX&s-BM|<3c_uB`DT{w`1Za!-OrnXsa+Uld??ORr3+$xf-ERhy<0I<`FJs6;|z zTSB1`ajy5L^%D)IoiCezqfmqvn{y7iQH<0vB*bUjju3uhJ-;QQD5VdXQlPD8S{kF9 zPpo4#8s=fEjDIoy@CMot|IK42Qsv-h;=v7SvYGFnNSip zmwad|(#~CcI1gI8;39=!V(D~eW*QddTc_N|Ktkac zMP6Lt`2=tG#p=wQUJ%!-{?5$hyxoiZuvkdg!${|d3n!KDGSBvxI`YJ+R-%evoRT+xz~O)vk00Pvk7aAoCCOdY`a|7kWoZ3F3;A2+o_YQX mj?{`!DZ99xis7{#01DOjh9%u+#rk=LBucxVu&O)m{Qd_?RNfQ- diff --git a/addons/sourcemod/scripting/l4d2_queue.sp b/addons/sourcemod/scripting/l4d2_queue.sp index 35c1b8ead..8430e2a03 100644 --- a/addons/sourcemod/scripting/l4d2_queue.sp +++ b/addons/sourcemod/scripting/l4d2_queue.sp @@ -9,6 +9,8 @@ #define L4D2_TEAM_SURVIVOR 2 #define L4D2_TEAM_INFECTED 3 +#define MAX_MESSAGE_NAMES 6 + ArrayList h_Queue; enum struct Player @@ -188,7 +190,7 @@ void PrintQueue(int target) bool isNewGame = IsNewGame(); - for (int i = 0, position = 1; i < h_Queue.Length; i++) + for (int i = 0, c = 1, position = 1; i < h_Queue.Length; i++, c = c == MAX_MESSAGE_NAMES ? 1 : c + 1) { h_Queue.GetArray(i, player); @@ -214,8 +216,21 @@ void PrintQueue(int target) Format(output, sizeof(output), "%s %s%dÂș {default}%N", output, color, position, client); position++; + + if (c == MAX_MESSAGE_NAMES) + { + if (target == 0) + CPrintToChatAll(output); + else + CPrintToChat(target, output); + + output[0] = '\0'; + } } + if (strlen(output) == 0) + return; + if (target == 0) CPrintToChatAll(output); else