From 208ddb392dab8f4806c42b54dc9e477515a52853 Mon Sep 17 00:00:00 2001 From: zaCade Date: Mon, 19 Jan 2026 13:48:32 +0100 Subject: [PATCH] ZR: Correct item_kevlar and add all other items. --- csgo/addons/sourcemod/configs/zr/weapons.txt | 2 +- cstrike/addons/sourcemod/configs/zr/weapons.txt | 2 +- src/zr/weapons/zmarket.inc | 14 +++++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/csgo/addons/sourcemod/configs/zr/weapons.txt b/csgo/addons/sourcemod/configs/zr/weapons.txt index 4b976e4..38e4f82 100644 --- a/csgo/addons/sourcemod/configs/zr/weapons.txt +++ b/csgo/addons/sourcemod/configs/zr/weapons.txt @@ -1216,7 +1216,7 @@ { // General - "weaponentity" "item_kevlar" + "weaponentity" "item_assaultsuit" "weapontype" "All, Equipment" "weaponslot" "5" diff --git a/cstrike/addons/sourcemod/configs/zr/weapons.txt b/cstrike/addons/sourcemod/configs/zr/weapons.txt index eb8119b..3dc0338 100644 --- a/cstrike/addons/sourcemod/configs/zr/weapons.txt +++ b/cstrike/addons/sourcemod/configs/zr/weapons.txt @@ -804,7 +804,7 @@ { // General - "weaponentity" "item_kevlar" + "weaponentity" "item_assaultsuit" "weapontype" "All, Equipment" "weaponslot" "5" diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index 2601449..7046b4b 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -1087,14 +1087,26 @@ stock bool:ZMarketEquip(client, const String:weapon[], bool:rebuy = false) int entity = INVALID_ENT_REFERENCE; if (StrEqual(weaponentity, "item_kevlar")) + { + SetEntProp(client, Prop_Send, "m_ArmorValue", 100); + } + else if (StrEqual(weaponentity, "item_assaultsuit")) { SetEntProp(client, Prop_Send, "m_ArmorValue", 100); SetEntProp(client, Prop_Send, "m_bHasHelmet", 1); } + else if (StrEqual(weaponentity, "item_defuser")) + { + SetEntProp(client, Prop_Send, "m_bHasDefuser", 1); + } + else if (StrEqual(weaponentity, "item_nvgs")) + { + SetEntProp(client, Prop_Send, "m_bHasNightVision", 1); + } else { // Give client the weapon. - entity = GivePlayerItem(client, weaponentity); + entity = GivePlayerItem(client, weaponentity); } if (!rebuy)