Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3:Source

General Discussion => War3: Source - Addon plugins => Topic started by: Frenzzy on November 01, 2011, 11:55:51 AM



Title: Shop Items Drop Plugin
Post by: Frenzzy 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 (http://www.game-monitor.com/search.php?vars=war3_dropitems_version)

(http://s2.ipicture.ru/uploads/20111101/thumbs/tHu5SUg2.jpg) (http://s2.ipicture.ru/Gallery/Viewfull/6612164.html)


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 (http://www.sourcemod.net/downloads.php) v1.3 or above.
  • SDKHooks (http://forums.alliedmods.net/showthread.php?t=106748) v2.0 or above.
  • War3Source (http://www.ownageclan.com/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:

  • Ownz (http://war3source.com/index.php?action=profile;u=30) - for the War3Source.
  • _caKKa (http://war3source.com/index.php?action=profile;u=544) - for support. Thanks to him, this plugin exists.
  • Namolem (http://war3source.com/index.php?action=profile;u=480) and Schmarotzer (http://war3source.com/index.php?action=profile;u=216) - for the original idea :D


Changelist:

  • 1.0-1.7 - Private releases (beta).
  • 1.8 - Initial public release.
  • 1.9 - Memory leak fixed. Small optimizations.


Title: Re: Shop Items Drop Plugin
Post by: Gliderā  ā µ 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.


Title: Re: Shop Items Drop Plugin
Post by: Necavi 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 >>


Title: Re: Shop Items Drop Plugin
Post by: Frenzzy 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.


Title: Re: Shop Items Drop Plugin
Post by: kvip 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


Title: Re: Shop Items Drop Plugin
Post by: Frenzzy on March 24, 2012, 01:27:30 PM
kvip, please read the requirements in the first post..


Title: Re: Shop Items Drop Plugin
Post by: kvip on March 26, 2012, 10:01:26 AM
:D THX
Working :)


Title: Re: Shop Items Drop Plugin
Post by: -El Diablo on June 10, 2012, 02:22:16 PM
This clearly only works for CS:S, as im almost having the re-write the whole source.

I can get the ball to put on the ground, I can't seem to get anyone to be able to pick it up for team fortress 2.

Trying to drop the ball just makes it sit in the area floating.