Raised This Month: $51 Target: $400
 12% 

[Any] Equipment Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Monkeys
Veteran Member
Join Date: Jan 2010
Plugin ID:
2218
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds Equipable items with stats to normal gameplay
    Old 02-09-2011 , 06:54   [Any] Equipment Mod
    Reply With Quote #1

    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.
    Attached Files
    File Type: zip equipmod.zip (59.1 KB, 528 views)
    File Type: sp Get Plugin or Get Source (equipmod.sp - 549 views - 36.3 KB)
    __________________
    Get a lid on that zombie,
    he's never gonna be alri-i-ight.
    Oooh get a lid on that zombie,
    or he's gonna feed all night.

    Last edited by Monkeys; 02-09-2011 at 08:07.
    Monkeys is offline
    criminalist
    Member
    Join Date: Apr 2010
    Old 02-09-2011 , 08:01   Re: [Any] Equipment Mod
    Reply With Quote #2

    Counter Strike

    19:006 sm_showequip
    19:007 L 02/09/2011 - 13:007: [SM] Native "ClientCommand" reported: Client index 0 is invalid
    19:007 L 02/09/2011 - 13:007: [SM] Displaying call stack trace for plugin "equipmod.smx":
    19:007 L 02/09/2011 - 13:007: [SM] [0] Line 444, C:\SRCDS\orangebox\hl2mp\addons\sourcemod\scr ipting\equipmod.sp::ShowEquipment()
    19:007 L 02/09/2011 - 13:007: [SM] [1] Line 1064, C:\SRCDS\orangebox\hl2mp\addons\sourcemod\scr ipting\equipmod.sp::Command_ShowEquip()
    criminalist is offline
    Monkeys
    Veteran Member
    Join Date: Jan 2010
    Old 02-09-2011 , 08:05   Re: [Any] Equipment Mod
    Reply With Quote #3

    You're the host on a listen server, aren't you? :p
    You can't run a lot of things on listen servers ;)
    Counts for pretty much any plugin.
    __________________
    Get a lid on that zombie,
    he's never gonna be alri-i-ight.
    Oooh get a lid on that zombie,
    or he's gonna feed all night.

    Last edited by Monkeys; 02-09-2011 at 08:07.
    Monkeys is offline
    criminalist
    Member
    Join Date: Apr 2010
    Old 02-09-2011 , 08:07   Re: [Any] Equipment Mod
    Reply With Quote #4

    Dedicated server Counter-Strike Source
    criminalist is offline
    Monkeys
    Veteran Member
    Join Date: Jan 2010
    Old 02-09-2011 , 08:12   Re: [Any] Equipment Mod
    Reply With Quote #5

    Quote:
    Originally Posted by criminalist View Post
    Dedicated server Counter-Strike Source
    Only other reason I can tell for Client being 0 would be you ran it through console, or rcon.
    __________________
    Get a lid on that zombie,
    he's never gonna be alri-i-ight.
    Oooh get a lid on that zombie,
    or he's gonna feed all night.
    Monkeys is offline
    LiMaaa
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Behind You
    Old 10-22-2011 , 17:22   Re: [Any] Equipment Mod
    Reply With Quote #6

    Will this work in Counter-Strike: Source?
    Any chance we could get a video added so we could see how this works?

    Last edited by LiMaaa; 10-22-2011 at 17:23.
    LiMaaa is offline
    Monkeys
    Veteran Member
    Join Date: Jan 2010
    Old 10-26-2011 , 12:09   Re: [Any] Equipment Mod
    Reply With Quote #7

    Quote:
    Originally Posted by AdRianaLiMaaa View Post
    Will this work in Counter-Strike: Source?
    Any chance we could get a video added so we could see how this works?
    It probably will work. Although I haven't tested it.
    Also, I need to update this. It's coded like shit and was more of a testproject.
    I shouldn't have uploaded it.
    __________________
    Get a lid on that zombie,
    he's never gonna be alri-i-ight.
    Oooh get a lid on that zombie,
    or he's gonna feed all night.
    Monkeys is offline
    LiMaaa
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Behind You
    Old 10-30-2011 , 21:56   Re: [Any] Equipment Mod
    Reply With Quote #8

    No problem. Just let us know when you have updated the code and i will test it on css for you!
    __________________
    >>> Hiring SourcePawn, Node.js, SteamAPI DEVS <<<
    Feel free to add me on steam or PM me on the forums.
    Endless Gamers Community
    http://endlessgamers.com
    LiMaaa is offline
    Supersuper2
    Member
    Join Date: Jan 2010
    Old 10-31-2011 , 07:33   Re: [Any] Equipment Mod
    Reply With Quote #9

    working in tf2 to equip hats?
    Supersuper2 is offline
    mbsoo
    New Member
    Join Date: Nov 2011
    Old 11-02-2011 , 11:22   Re: [Any] Equipment Mod
    Reply With Quote #10

    ;;
    I applied this mod on CSS, but UI isn't work

    pic

    what's wrong with this
    I equip two things;
    mbsoo is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:00.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode