Raised This Month: $ Target: $400
 0% 

[DoD:S] DropManager (health kits, ammo boxes, explosives and weapons)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Plugin ID:
3410
Plugin Version:
4.0
Plugin Category:
Server Management
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    24 
    Plugin Description:
    Allows player to drop health kits, ammo boxes, explosives and some weapons using different ways
    Old 12-12-2012 , 18:14   [DoD:S] DropManager (health kits, ammo boxes, explosives and weapons)
    Reply With Quote #1

    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!

    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
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 08-31-2013 at 14:31.
    Root_ is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 12-12-2012 , 18:36   Re: [DoD:S] Dropmanager
    Reply With Quote #2

    Gracias.....
    Happy DODs player is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 12-13-2012 , 06:00   Re: [DoD:S] Dropmanager
    Reply With Quote #3

    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 ^^
    __________________

    Last edited by micazoid; 12-13-2012 at 11:02.
    micazoid is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-13-2012 , 11:43   Re: [DoD:S] Dropmanager
    Reply With Quote #4

    Thanks for reply micazoid,
    Oh I just missed this part Updated first post

    About CVars: CVars is already exists, but called a bit different
    Quote:
    Originally Posted by Root_ View Post
    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 ;)
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-13-2012 , 17:43   Re: [DoD:S] Dropmanager
    Reply With Quote #5

    video will be added later
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 01-01-2013 at 14:05.
    Root_ is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 12-13-2012 , 19:50   Re: [DoD:S] Dropmanager
    Reply With Quote #6

    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
    __________________
    micazoid is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-14-2012 , 08:20   Re: [DoD:S] Dropmanager
    Reply With Quote #7

    Hello micazoid,
    Quote:
    Originally Posted by micazoid View Post
    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 View Post
    It is a very cool Plugin. I like the option of random dropping.
    You're welcome

    Quote:
    Originally Posted by micazoid View Post
    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...
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 01-01-2013 , 14:06   Re: [DoD:S] DropManager (2.0)
    Reply With Quote #8

    Happy new year! 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

    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
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 01-01-2013 at 14:07.
    Root_ is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 01-02-2013 , 07:36   Re: [DoD:S] DropManager (2.0)
    Reply With Quote #9

    Video demonstration. I'd recommend you enable video annotations and watch this directly via youtube
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 01-02-2013 at 07:37.
    Root_ is offline
    krispx
    Senior Member
    Join Date: Jul 2010
    Old 01-08-2013 , 06:15   Re: [DoD:S] DropManager (2.0)
    Reply With Quote #10

    Woww Thank you Root_ i was waiting for improved healthkit plugin with more functions and without player stuck

    ps: nice vidz demo
    krispx is offline
    Reply


    Thread Tools
    Display Modes

    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 02:55.


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