Author Topic: Shop Items Drop Plugin  (Read 5580 times)

Frenzzy

  • Full Member
  • ***
  • Posts: 218
    • ICQ Messenger - 337905984
    • MSN Messenger - frenzzy@live.ru
    • View Profile
    • http://css.vsevnet.ru/
Shop Items Drop Plugin
« on: November 01, 2011, 11:55:51 AM »
War3Source Addon - Shop Items Drop

This addon allows to physically drop war3source shop items after players death.

Servers running this addon: http://www.game-monitor.com/ShopItemsDrop




Features:

  • Chance of physically drop item after player's death.
  • Hints when you look at the dropped item.
  • Messages about picking up items.
  • Items which are used immediately after purchase, such as the tome, never dropped.
  • Ability to add any item to no drop exclusions.
  • Ability to set lifetime of dropped items.
  • Special sounds bouncing and picking up items.
  • Beautiful model for dropped items - energy ball from HL2.
  • Special admin command for force item drop.
  • And much more...


Requirements:

  • SourceMod v1.3 or above.
  • SDKHooks v2.0 or above.
  • War3Source v1.1.9 or above. [if will be errors when compiling - uncomment GetClientItemsOwned() function]


Convars:

Plugin version. Don't change this.

war3_dropitems_version "1.9"

Maximum dropped items at one time. 0 - Unlimited.

war3_dropitems_limit "64"

Shop item drop chance. 0.0 - No drop, 1.0 - Always drop, 0.25 - By default.

war3_dropitems_chance "0.25"

Shop item lifetime in seconds. 0 - All time.

war3_dropitems_lifetime "0"

List of no drop shop items. For example: 'ankh,mole,scroll' ect.

war3_dropitems_exceptions "scroll,mole,ankh,mines"

Elasticity of shop item (bounces). 0.0 - Min, 1.0 - Max.

war3_dropitems_elasticity "0.3"


Admin Commands:

Force drop shop items of a player.

war3drop <#userid|name> [item1] [item2] [...]

Examples:

] war3drop @all helm ring        // Force drop helm and ring items of all players (if they have it).
] war3drop "Frenzzy"                // Force drop all items of the player Frenzzy.
] war3drop                                // Admin drop all their items.


Thanks to:



Changelist:

  • 1.0-1.7 - Private releases (beta).
  • 1.8 - Initial public release.
  • 1.9 - Memory leak fixed. Small optimizations.
« Last Edit: January 12, 2012, 09:08:55 AM by Frenzzy »
O_o

Glider⠠⠵

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 472
  • ⠠⠵
    • View Profile
Re: Shop Items Drop Plugin
« Reply #1 on: November 01, 2011, 12:25:38 PM »
So it's a mix of my Singularity Game Mode and my experimental Divine Rapier item... I wanted to do this some time ago aswell, but I never found a good model for it (not too fond of the energy ball either).

Still, good job.

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Shop Items Drop Plugin
« Reply #2 on: November 01, 2011, 05:56:17 PM »
Why would you add mines to the no-drop list? :D Oh right...I never split that out into the Mines shopitem and the mine ammo shopitem >>

Frenzzy

  • Full Member
  • ***
  • Posts: 218
    • ICQ Messenger - 337905984
    • MSN Messenger - frenzzy@live.ru
    • View Profile
    • http://css.vsevnet.ru/
Re: Shop Items Drop Plugin
« Reply #3 on: November 01, 2011, 06:48:27 PM »
Because War3Source is unable to determine the item was used or lost (always lost).
When you use the latest mine - drops the new mines item with some amount of mines? => Infinite mines bug.
Therefore need to add all 'usable' items to the exceptions.
« Last Edit: November 01, 2011, 06:53:50 PM by Frenzzy »
O_o

kvip

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Krotchy.RU
    • Email
Re: Shop Items Drop Plugin
« Reply #4 on: March 24, 2012, 08:59:32 AM »
[SM] Unable to load plugin "w3s/addons/W3S_Addon_ShopItemsDrop.smx": Native "GetClientItemsOwned" was not found

I use w3s 1.2.0.7

Frenzzy

  • Full Member
  • ***
  • Posts: 218
    • ICQ Messenger - 337905984
    • MSN Messenger - frenzzy@live.ru
    • View Profile
    • http://css.vsevnet.ru/
Re: Shop Items Drop Plugin
« Reply #5 on: March 24, 2012, 01:27:30 PM »
kvip, please read the requirements in the first post..
O_o

kvip

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Krotchy.RU
    • Email
Re: Shop Items Drop Plugin
« Reply #6 on: March 26, 2012, 10:01:26 AM »
:D THX
Working :)

mentaldepth

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: Shop Items Drop Plugin
« Reply #7 on: August 04, 2013, 07:49:32 AM »
Getting this message for csgo after sm plugins list command <Bad Load> WS3_Addon_shopItemsDrop.smx

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: Shop Items Drop Plugin
« Reply #8 on: August 05, 2013, 02:35:13 PM »
author is no longer here and this is not officially supported

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Shop Items Drop Plugin
« Reply #9 on: August 05, 2013, 02:47:38 PM »
Post any errors you might have.