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); 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 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] //