Equipment Mod
Description:
Adds Equipment to any(/most) Source Engine games.
A player is able to equip a Weapon-, Armour- and a Shield-class item and has 10 extra inventory slots.
Items have a chance to be found when killing people. When you find one, a rarity value will be calculated.
If the found item has a rarity value below or equal to the calculated one, the player can keep it.
And with a slight chance, can get an Enchanted version.
If you don't get to keep the item, however, your next calculated rarity value will be higher,
making it possible to get an even better item.
Or an even worse one, ofcourse.
Items you don't need can also be donated to charity. These donations increase your chances to find better items.
When an item is found, the boosted rarity is removed and you start with your basic rarity calculations again.
Each item has a set of stats, and Enchants can increase or decrease these stats.
Unique items will never be dropped and can only be granted by admins.
These also can't have any Enchants.
(This mod has barely any graphical additions)
Currently supported stats are:
Quote:
Defense: Every X defense you take 1 less damage from every shot.
Damage: Adds a % of damage to your shots
Healing: A Heal Over Time, adding health every X seconds.
Speed: Increased speed.
Bleed: Adds a bleeding DoT on the player which hurts X every DoT tick
Burn: Adds a burning DoT on the player which hurts X every DoT tick
Resistance Against Burning/Bleeding: Protection against these DoT plagues.
|
If you have more ideas to add, feel free to suggest!
Instalation:
Put the files in the materials folder in your server's materials folder.
Put the files in the addons folder in your server's addons folder.
(Or simply extract the zipfile in your server's /hl2dm/)
If you have an external download link, be sure to copy the materials to there too.
If you want to compile this yourself, you will need the
colors include by
exvel, and
SDKHooks by
DJ Tsunami.
Understanding the items file:
Items can be found in /sourcemod/data/items.txt
A normal item will have this layout. (Unique items just the same, but without the Enchant data)
Code:
"<ItemId>"
{
"Type" "weapon/armour/shield"
"Name" "<Item Name>"
"Stats" "<Short Item Stats>"
"Enchants" "<possible enchant's ids>"
"Rarity" "<Rarity value>"
}
and an Enchant this
Code:
"<EnchantId>"
{
"Name" "<Enchant name modifier, where %s the name of the original item is>"
"Stats" "<added Short Stats"
"Rarity" "<added Rarity value>"
}
Short Item Stats are the following: a for Defense, d for Damage percent, s for Speed, h for Healing, b for Bleeding, F for Burning and rf/rb for Resistance against those.
There are a few items in the items.txt already, so you can check how they're done.
These haven't been tested on how well they fit in gameplay wise (their stats can be gamebreaking), so tinker with them as you please.
Commands:
Anybody:
sm_showequip [Target]
Shows your target's currently equiped items. If you add no target, your own are shown.
sm_closeequip
Closes the Equipment screen
sm_equip
Opens a menu to equip an item from your inventory (if you have any)
sm_donate
Opens a menu to donate an item from your inventory to charity (if you have any)
Admins:
sm_giveitem <Target> <ItemID> [EnchantId]
Spawns that item for Target. Use negative numbers for Unique items
sm_reloaditems
Reloads the items. (If you don't want to wait 'til mapchange after changing some items)
Cvars:
equipmod_tracker - Version Cvar, used for following up on the plugin.
equipmod_dropchance -
def.5 - Drop Chance for Items
equipmod_enchantchance -
def.10 - Enchant Chance for Items
equipmod_defenseratio -
def.16.5 - Defense reduction ratio
equipmod_donationmultiplier -
def.0.2 - How much of the rarity is returned when donating
equipmod_dotdelay -
def.2.0 - Delay between DoT ticks
equipmod_dotbleeddamage -
def.3 - Damage per Bleed tick
equipmod_dotburndamage -
def.2 - Damage per Burn tick
equipmod_showoverlay -
def.1 - Show/Don't show the equipment overlay
equipmod_maxrarity -
def.20 - Maximum random rarity per roll
equipmod_maxrarity_enchant -
def.20 - Maximum random rarity per roll for enchants
Screenshot
Equipment page with different rarity( & colors) items and their stats
I expect bugs to pop up, seeing how this was postponed, shoved aside and forgotten quite a lot over the past few months. So if some do, just report them and I'll fix them as fast as I can.