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

War3:Source
September 21, 2012, 09:42:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Shop Items Drop Plugin  (Read 1382 times)
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« 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 » Logged

O_o
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 402


⠠⠵


View Profile
« 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.
Logged

Necavi
Full Member
***
Posts: 217


View Profile
« Reply #2 on: November 01, 2011, 05:56:17 PM »

Why would you add mines to the no-drop list? Cheesy Oh right...I never split that out into the Mines shopitem and the mine ammo shopitem >>
Logged

Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« 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 » Logged

O_o
kvip
Newbie
*
Posts: 17


View Profile Email
« 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
Logged
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #5 on: March 24, 2012, 01:27:30 PM »

kvip, please read the requirements in the first post..
Logged

O_o
kvip
Newbie
*
Posts: 17


View Profile Email
« Reply #6 on: March 26, 2012, 10:01:26 AM »

Cheesy THX
Working Smiley
Logged
-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #7 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.
« Last Edit: June 10, 2012, 02:29:27 PM by -El Diablo » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!