AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DoD:S] DropManager (health kits, ammo boxes, explosives and weapons) (https://forums.alliedmods.net/showthread.php?t=202946)

Root_ 12-12-2012 17:14

[DoD:S] DropManager (health kits, ammo boxes, explosives and weapons)
 
DESCRIPTION:
This plugin allows player to drop health kits, ammo boxes, explosives and some weapons using different ways!
As you already expected I just merged DoD DropHealthKit Source, DoD:S Drop TNT Source and DoD:S Ammo Manager plugins in a single one and added some features! :mrgreen:

Credits also goes to FeuerSturm and BenSib!

FEATURES:
-Items (healthkits, ammoboxes and bombs) will not stuck you anymore (not while dropping nor while picking)!
-Unlike drophealthkit plugin, this one is having the 'selfheal' feature, healing sound and custom healthkit model.
-Unlike ammo manager plugin (and droptnt source), this one is having a pickup rule feature, which can be useful.
-This plugin is having a 'menu' mode. It means player can call menu by just pressing 'dropammo' key (default: h) and choose an item to drop.
-This plugin is having a 'cooldown' feature. This created against command spamming.
-This plugin is having an item avaliability checking. It mens you can disable item dropping while alive, but allow item to be dropped on death.
-This plugin allows players to drop pistols and frag grenades as well.

CONVARS:
dod_dropmanager_healthkit = Whether or not allow health kits dropping. Default: Enabled
dod_dropmanager_ammobox = Whether or not allow ammo boxes dropping. Default: Enabled
dod_dropmanager_tnt = Whether or not allow explosives (TNT) dropping. Default: Enabled
dod_dropmanager_pistols = Whether or not allow pistols dropping. Default: Enabled
dod_dropmanager_grenades = Whether or not allow grenades dropping. Default: Enabled
dod_dropmanager_menumode = Whether or not enable 'menu mode'. It lets player select an items to drop using panel. Default: Disabled
dod_dropmanager_deaddrop = Determines an item to drop after death: 1 = Health kit, 2 = Ammo box, 3 = TNT, 4 = Pistol, 5 = Grenade, 6 = Random. Default: TNT
dod_dropmanager_alivecheck = Whether or not check item availability before player's death. This can be useful for "deaddop" features. Default: Enable check
dod_dropmanager_lifetime = Number of seconds a dropped items stays on the ground. 0 = Don't remove items until new round starts. Default: 45
dod_dropmanager_priority = Determines a queue priority for items dropping when menu mode is disabled. Default: 123 (Healthkit/AmmoBox/TNT)
dod_dropmanager_cooldown = Number of seconds to wait between dropping items. Default: 3

Healthkit-related:
dod_drophealthkit_pickuprule = Determines who can pick up dropped health kits: 0 = Everyone, 1 = Only team mates, 2 = Only enemies. Default: 0
dod_drophealthkit_addhealth = Determines amount of health to add to a player who is picked up a health kit. Default: 50
dod_drophealthkit_selfheal = Determines amount of player's health needed to allow using own health kit for self healing. Default: 30
dod_drophealthkit_teamcolor = Whether or not colorize dropped health kit depends on client's team. Default: Dont colorize
dod_drophealthkit_newmodel = Whether or not use new model for health kits. Default: Don't use new model

Ammo box-related:
dod_dropammobox_pickuprule = Determines who can pick up dropped ammo boxes: 0 = Everyone, 1 = Only team mates, 2 = Only enemies. Default: 1
dod_dropammobox_clipsize = Determines number of clips a dropped ammo box contains. Default: 2
dod_dropammobox_realism = Whether or not enable "realism mode". It means player may share ammo of primary weapons until no ammo left. Default: Disabled
dod_dropammobox_voice = Whether or not use voice command when ammo box is dropped. Default: Enabled

TNT-related:
dod_droptnt_pickuprule = Determines who can pick up dropped explosives: 0 = Everyone, 1 = Only team mates, 2 = Only enemies. Default: 1
dod_droptnt_maxdrops = Determines how many explosives player can drop per life. This is created against spamming around bomb dispencer. Default:2

NOTES:
-If you already use one of those plugins, I'd recommend you to use this one for obvious reasons. :)
-If player dropped an item on death, item will not be marked as own. So player will healing by old healthkit, receive ammo from old ammo box...
-If "deaddrop" is enabled, plugin will check item availability before death. It makes sure disabled or N/A Item will not be dropped.
-If alivecheck is disabled, ruleset above will be ignored at all. However, TNT boms will never be dropped on maps without bomb dispencers.
-If one feature is disabled, but random item should be dropped on death, rulesets above will work as intended.
-If player is not having primary weapon, player will not be able to pickup or dropped ammo boxes.
-If custom model cvar is set, make sure to have healthkit model on a normal and fastdownload servers.
-Pistols and grenades can be dropped using default "drop" command (if player is holding it).
-Players will be notified about how many health they received on healthkit pickup in a center of the screen.
-Players may equip any grenades without limits and restrictions.
-All players around an item will be also hear pick up sound. Be careful around items!

Code:

Changelog:
v1.0
-Initial release

v2.0
-Added new ConVars:
dod_dropmanager_alivecheck,
dod_drophealthkit_selfheal,
dod_drophealthkit_newmodel,
dod_droptnt_pickuprule,
dod_droptnt_maxdrops (see convars description)
-Added translations support (special thanks to Sargath and Darkranger for french and german translations!)
-Finally fixed annoying thing when players could stuck in items. Now players will not 'feel' item nor while dropping, nor while picking
-Removed useless parts of the code > optimizations
-Other minor changes

Healthkit:
-Added ability to self healing using own healthkit
-Removed 'bonus' version. Added new healthkit model, which can be enabled or disabled via config

Ammo box:
-Fixed an issue when players with MG could not drop ammopack if clipsize was too big and realism mode is disabled
-Improved performance for ammobox features

TNT
-Added pickup rule feature as in healthkit or ammobox
-Added dropping limit per life

v3.0
-Added 'full health' phrase
-Removed unused parts of code
-Used new style for ConVar handling (which is used in DM)
-Improved touch hook
-Optimized code
-Changed ConVar descriptions
-Changed some cvar values for banalce
-Updated translations

v4.0
-Added pistols and grenades dropping (when player is alive or dead!)
-Added new ConVar: dod_dropmanager_priority, which is sets item priority when menu mode is disabled
-Added availability to set custom healthkit model 'on-the-fly'
-Improved menu mode
-Greatly improved touch hooks
-Increased limits for items lifetime, also added 'infinite' time for items
-Fixed possibly server crashes
-Fixed a few bugs and issues, especially with explosives and ammopacks
-Removed entity limit checking
-Fixed incorrect cooldown feature
-Made plugin way faster and safer (for ~2x times!)
-Updated translations

Servers with this plugin

Download plugin
Browse source code

Happy DODs player 12-12-2012 17:36

Re: [DoD:S] Dropmanager
 
Gracias.....

micazoid 12-13-2012 05:00

Re: [DoD:S] Dropmanager
 
This looks awesome!
I was going to install it, but my time was to short :(

One suggestion about your Documentation:

Put a "installationsection" to your Documentation.
There you can write the difference between Bonus and normal Version. This might prevent posts with exactly this question ^^

Another Edit:
Is it possible to add cvars like
sm_droptnt <- The player drops the TNT
sm_drophealth <- The players drops a healthpackage
sm_dropammo <- I think you can guess ^^

Root_ 12-13-2012 10:43

Re: [DoD:S] Dropmanager
 
Thanks for reply micazoid,
Oh I just missed this part :D Updated first post

About CVars: CVars is already exists, but called a bit different
Quote:

Originally Posted by Root_ (Post 1852767)
dod_dropmanager_healthkit
dod_dropmanager_ammobox
dod_dropmanager_tnt

If you mean client commands, its not necessary to create them. That's why I added 'menu' mode. I'll add screenshots ASAP to explain ;)

Root_ 12-13-2012 16:43

Re: [DoD:S] Dropmanager
 
video will be added later

micazoid 12-13-2012 18:50

Re: [DoD:S] Dropmanager
 
hm.... my server runs this Plugin but it is not listed

It is a very cool Plugin. I like the option of random dropping. Aaaaaaand.... the blocking is not gone but it was reduced by 95% !!!!! (it seems, that the playerweapon in combination with a dropped item can still cause blocking. I have to do further investigation)

Thank you root. It is always nice to test your work and I like it that someone still is coding for DODS

Root_ 12-14-2012 07:20

Re: [DoD:S] Dropmanager
 
Hello micazoid,
Quote:

Originally Posted by micazoid (Post 1853319)
hm.... my server runs this Plugin but it is not listed

That's because game-monitor dont query all servers immediate. It updates half a day or so. But if my plugin will be approved even, SourceMod stats will show correct data asap.

Quote:

Originally Posted by micazoid (Post 1853319)
It is a very cool Plugin. I like the option of random dropping.

You're welcome :)

Quote:

Originally Posted by micazoid (Post 1853319)
Aaaaaaand.... the blocking is not gone but it was reduced by 95% !!!!! (it seems, that the playerweapon in combination with a dropped item can still cause blocking. I have to do further investigation)

what does you mean? ammo box? healthkit? Actually items should collide with player, otherwise SDKHook_StartTouch will not work, because in that way item is colliding only with world, not player. Probably that's why items still can block player, however I agreed the chanse is greatly reduced... I wanted to remove SDKHooks dependency, but DoD:S dont have entity for stock ammobox, or something like that. That's hard to realize a non-blockable entity with touch feautre, but I'll try later...

Root_ 01-01-2013 13:06

Re: [DoD:S] DropManager (2.0)
 
Happy new year! :mrgreen: I come with updates

Changelog (2.0):
-Added new ConVars:
dod_dropmanager_alivecheck,
dod_drophealthkit_selfheal,
dod_drophealthkit_newmodel,
dod_droptnt_pickuprule,
dod_droptnt_maxdrops (see convars description)
-Added translations support (special thanks to Sargath and Darkranger for french and german translations!)
-Finally fixed annoying thing when players could stuck in items. Now players will not 'feel' item nor while dropping, nor while picking
-Removed useless parts of the code > optimizations
-Other minor changes

Healthkit:
-Added ability to self healing using own healthkit
-Removed 'bonus' version. Added new healthkit model, which can be enabled or disabled via config :mrgreen:

Ammo box:
-Fixed an issue when players with MG could not drop ammopack if clipsize was too big and realism mode is disabled
-Improved performance for ammobox features

TNT
-Added pickup rule feature as in healthkit or ammobox
-Added dropping limit per life

Root_ 01-02-2013 06:36

Re: [DoD:S] DropManager (2.0)
 
Video demonstration. I'd recommend you enable video annotations and watch this directly via youtube

krispx 01-08-2013 05:15

Re: [DoD:S] DropManager (2.0)
 
Woww Thank you Root_ i was waiting for improved healthkit plugin with more functions and without player stuck :)

ps: nice vidz demo


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

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