Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions addons/sourcemod/scripting/l4d2_weapon_attributes.sp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static const L4D2IntWeaponAttributes iIntWeaponAttributes[] =
L4D2IWA_Damage,
L4D2IWA_Bullets,
L4D2IWA_ClipSize,
L4D2IWA_DefaultSize,
L4D2IWA_Bucket,
L4D2IWA_Tier, // L4D2 only
};
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -123,6 +125,7 @@ static const char sWeaponAttrShortName[PLUGIN_WEAPON_MAX_ATTRS][MAX_ATTRS_NAME_L
"damage",
"bullets",
"clipsize",
"defclip",
"bucket",
"tier",
"speed",
Expand Down Expand Up @@ -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"
};

Expand Down Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions cfg/cfgogl/eq/shared_settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions cfg/cfgogl/zonemod/shared_settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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] //
Expand Down
Loading