From efb248809c4b6f71c1927bc3308bc70022564825 Mon Sep 17 00:00:00 2001 From: Altair Sossai Date: Sun, 2 Jun 2024 11:22:18 -0300 Subject: [PATCH] Fixes the scenario of obtaining a secondary item through a weapon_spawn (#749) --- .../plugins/optional/l4d2_drop_secondary.smx | Bin 9198 -> 11126 bytes .../scripting/l4d2_drop_secondary.sp | 14 ++++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/addons/sourcemod/plugins/optional/l4d2_drop_secondary.smx b/addons/sourcemod/plugins/optional/l4d2_drop_secondary.smx index 0c73f4ad409b62fc091276ec6d3be48daef5112a..9e087f9f227ed15cd6712fa529a48eda2772bbf1 100644 GIT binary patch literal 11126 zcmZvgbySpH*Z*fokrELR5RgWckd_!w=}tjX=@`0(1_5c1ZjhGlu0fE70fx?zZicP_ z-no75XZ>Qmvu3aF=bZE1d!IAwT=T~zC8eT{0R+0f0sz#@0e~kDfB?V>I{x|mqgx;V z00+$j;s5|x0stUDGk*{O07WYqI?mBtiB=kP6np~!O3})K4z*wa0P`ULz=3AX7y#f0 zx|SfC&td_92sBHg**_itFhR2#n%5HmfCaSbqoXqsy%Drpqhs=4c1QCzn!V5(f)3N9 z|MWta0FWgAr*;;aWzlR;2mlnLxhWq2c!btkbo8US6|J4<2r2*oK41U^s+ zqxWfSXJQKAF!|#A1;AnNVg$A{cKQphUmVe3`^DMP)$}jepvBSI+44W$zhqE*roWsl#{7>J1 z5Nv7tU$nF}v-{8Fe|!IRn1k(%zJUL0w=@2SA#?lQ#LgPi?wc864}chfB=r$hqV-n{ z;tymWJTs;UWaMIeRx8sp(A!#|rFH*P#$tzREp_Tnh$u}fka+10@zP7;rBB35$^SGsY{or|!mZ#|Np0xd61cFJ^YE07#r)lM(X+5E7 zMOU7uX)U2?-KA-rrxAIR%UdxO&@l0L%V&svB;pM6&#oW;%_9AO6PbvY$cUF*h?n$< z4K#y#8$FRaA`oE_2(Ac(f_TY+cq#2~3p8jFFR>FFOe#e4_5M?N_Y|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38Yh2KgK>B<|)K>K8Nz;la7cBwMOD-AJ8JOU4E3o|FlMkE}v0cJ3RbzxeHV! z2)%Q~Eh>QE(g@ax1)L)mv1yEUV^7gxd7GNt`YD%T&@E=>86(7v=s7W=0W{_`dI`1T z&qO4Qrwk{bPec%YiP-N z^DW+|&_GkD1);h$4r6v;OoE$Xygn?iUm-eRC?|_Imdp}8RWEq6Iu++LGUpm*YD1W$ zsK-F>!DImaIIB{kl_7i%{ubJr$ZF6gpS-J{-^m7bUjf=21T3z~DVQpKdR<*~SY`y3 zQ~j0ro2!sE-Z6V1?MwP4%|Wk^b#y|;!`2_JOa?U?u-L`QPBW9rgZg>XSdrkw$@=wg zPtt5&J+_E_;tJPiV#C4(`xdn|jLyBjh6{}kk%fu2&IaQut9(i5>{g{;{9sq-BeZLy ztc{338&A~Cb=xz4;Vv~k#}Dy@MCDj&}B;Ge3j(Hbth3Q=-i zUG~`*p6#Lz^uw$N=kiwhQ{Uy2SjY%h9+EgxhAXa7Ajq!Ye>>K2w!n;!h;zAZT8>S#5pZ7lk~fD@gM8l$YXxbi7@@t_4`0u!{7Ms zyACmX<{4x!RgDkn!_8{f(-Vl|S#CNCtugi&58eR_@sXfmg4!mQoyA)H|z5(IEfH>WbE_j@` zX4a3QDHNcvXM{HV`2r91h #include +#include char sSecondary[MAXPLAYERS + 1][64]; char sMeleeScript[MAXPLAYERS + 1][64]; @@ -113,10 +114,15 @@ public void Event_OnPlayerUse(Event event, const char[] name, bool dontBroadcast if (IsValidSurvivor(client) && IsValidEntity(targetid)) { char sClassname[32]; - GetEntityClassname(targetid, sClassname, sizeof(sClassname)) + GetEntityClassname(targetid, sClassname, sizeof(sClassname)); - if (StrContains(sClassname, "pistol") != -1 || - StrContains(sClassname, "melee") != -1) + if (StrContains(sClassname, "weapon_spawn") != -1) + { + L4D2WeaponId weaponID = view_as(GetEntProp(targetid, Prop_Send, "m_weaponID")); + L4D2_GetWeaponNameByWeaponId(weaponID, sClassname, sizeof(sClassname)); + } + + if (StrContains(sClassname, "pistol") != -1 || StrContains(sClassname, "melee") != -1) { // We do an actual check of what the client has here because we deal with limitations in certain configs. // The limitation would cause the secondary to be set on the client while the client didn't even equip it. @@ -166,7 +172,7 @@ bool IsValidSurvivor(int client) void SpawnSecondary(int client) { int weapon; - + if (StrEqual(sSecondary[client], SECONDARY_PISTOL)) weapon = CreateEntityByName("weapon_pistol"); else if (StrEqual(sSecondary[client], SECONDARY_PISTOL_MAGNUM)) weapon = CreateEntityByName("weapon_pistol_magnum"); else