From 3065343297eaa5ad50f401e3dde34f9c57636f1e Mon Sep 17 00:00:00 2001 From: Forgetest <33988868+jensewe@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:54:26 +0800 Subject: [PATCH 1/3] l4d2_weapon_attributes: Add default clip sm_weapon defclip # --- addons/sourcemod/scripting/l4d2_weapon_attributes.sp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/l4d2_weapon_attributes.sp b/addons/sourcemod/scripting/l4d2_weapon_attributes.sp index d13ec6b308..1ee665a310 100644 --- a/addons/sourcemod/scripting/l4d2_weapon_attributes.sp +++ b/addons/sourcemod/scripting/l4d2_weapon_attributes.sp @@ -56,6 +56,7 @@ static const L4D2IntWeaponAttributes iIntWeaponAttributes[] = L4D2IWA_Damage, L4D2IWA_Bullets, L4D2IWA_ClipSize, + L4D2IWA_DefaultSize, L4D2IWA_Bucket, L4D2IWA_Tier, // L4D2 only }; @@ -90,6 +91,7 @@ static const char sWeaponAttrNames[PLUGIN_WEAPON_MAX_ATTRS][MAX_ATTRS_NAME_LENGT "Damage", "Bullets", "Clip Size", + "Default Clip", "Bucket", "Tier", "Max player speed", @@ -123,6 +125,7 @@ static const char sWeaponAttrShortName[PLUGIN_WEAPON_MAX_ATTRS][MAX_ATTRS_NAME_L "damage", "bullets", "clipsize", + "defclip", "bucket", "tier", "speed", @@ -214,7 +217,7 @@ public Plugin myinfo = { name = "L4D2 Weapon Attributes", author = "Jahze, A1m`, Forgetest", - version = "3.1.0", + version = "3.1.1", description = "Allowing tweaking of the attributes of all weapons" }; @@ -679,7 +682,7 @@ void SetWeaponAttributeInt(const char[] sWeaponName, int iAtrriIndex, int iSetVa } L4D2_SetIntWeaponAttribute(sWeaponName, iIntWeaponAttributes[iAtrriIndex], iSetValue); - + value.curVal = iSetValue; hDefaultWeaponAttributes[iAtrriIndex].SetArray(sWeaponName, value, sizeof(value), true); From 409fbc5718fc1511ec1374be96c262bd3954c1c8 Mon Sep 17 00:00:00 2001 From: Forgetest <33988868+jensewe@users.noreply.github.com> Date: Mon, 19 Oct 2026 21:59:31 +0800 Subject: [PATCH 2/3] Sync MP5 default clip size --- cfg/cfgogl/zonemod/shared_settings.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/cfgogl/zonemod/shared_settings.cfg b/cfg/cfgogl/zonemod/shared_settings.cfg index a13c6eede6..39035f7324 100644 --- a/cfg/cfgogl/zonemod/shared_settings.cfg +++ b/cfg/cfgogl/zonemod/shared_settings.cfg @@ -325,6 +325,7 @@ sm_weapon smg_mp5 rangemod 0.80 sm_weapon smg_mp5 maxmovespread 2.35 sm_weapon smg_mp5 reloadduration 2.7 sm_weapon smg_mp5 clipsize 60 +sm_weapon smg_mp5 defclip 60 //////////////////////////////// // [Pistol Tweaks 'n Stuff] // From c6289495370d04fe972ac49e9b67c8d3230f70f5 Mon Sep 17 00:00:00 2001 From: Forgetest <33988868+jensewe@users.noreply.github.com> Date: Mon, 19 Oct 2026 22:03:50 +0800 Subject: [PATCH 3/3] Sync sniper default clips in EQ --- cfg/cfgogl/eq/shared_settings.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cfg/cfgogl/eq/shared_settings.cfg b/cfg/cfgogl/eq/shared_settings.cfg index 6366812338..4bd85e4056 100644 --- a/cfg/cfgogl/eq/shared_settings.cfg +++ b/cfg/cfgogl/eq/shared_settings.cfg @@ -223,9 +223,11 @@ l4d2_addweaponrule sniper_military sniper_awp // [l4d_weapon_attributes.smx] sm_weapon sniper_scout clipsize 10 +sm_weapon sniper_scout defclip 10 sm_weapon sniper_scout damage 125 sm_weapon sniper_scout tankdamagemult 1.2 sm_weapon sniper_awp clipsize 10 +sm_weapon sniper_awp defclip 10 sm_weapon sniper_awp damage 145 sm_weapon sniper_awp tankdamagemult 1.2414