Raised This Month: $12 Target: $400
 3% 

[L4D1,2] Loot of Zombies 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jоnny
Senior Member
Join Date: Jun 2007
Plugin ID:
1406
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    The plug-in allows special infected to lose items after death.
    Unapprover:
    Reason for Unapproving:
    Uses same public cvar as existing approved plugin. Author refuses to change.
    Old 01-16-2010 , 13:46   [L4D1,2] Loot of Zombies 1.6
    Reply With Quote #1

    The plug-in allows special infected to lose items after death.

    All items are divided into categories "Health", "Melle weapons", "Fire-arms", "Explosive weapons", "Thrown weapons ", "Upgrades", "Misc" As there is category No-Drop at which drops out nothing.

    All categories divide among themselves the general chance (100%) items losses. If categories type in the sum more than 100% or less than 100% there is a recalculation of probabilities for each category. It means that 100% of "Health" and 100% of the "Upgrades" of near fight will not give loss of two items. They will divide probability of loss among themselves fifty-fifty. In the same way there is a miscalculation of probabilities and for each separate subject of group.
    For example:
    Code:
    l4d2_loot_first_aid_kit "1"
    l4d2_loot_defibrillator "1"
    l4d2_loot_pain_pills "1"
    l4d2_loot_adrenaline "1"
    Will divide probability of loss of items of group "Health" fifty-fifty - on 25 %
    Code:
    l4d2_loot_first_aid_kit "25"
    l4d2_loot_defibrillator "25"
    l4d2_loot_pain_pills "25"
    l4d2_loot_adrenaline "25"
    As will divide probability of loss of items of group "Health" fifty-fifty - on 25 %

    At murder infected first of all there is a choice of group of items, then a choice of a item of group. For everyone special infected it is possible to specify the probabilities of loss of groups. As it is possible to specify global No-Drop which will extend on all types of the special infected.

    Variables of a plug-in are deprived flag FCVAR_NOTIFY to avoid flooding game by the foreign plug-ins changing probability drops dynamically.

    Plugin cvars sample:
    Code:
    1. l4d2_loot 0/1 - off/on plugin
    2. l4d2_loot_version -  plugin version
    3. l4d2_loot_from_players 0/1 - drops (or not) items from real players (not bots)
    4. l4d2_loot_scavenge_gascans 0/1 - drops (or not) gascans on scavenge
    5. l4d2_loot_survival_defibs 0/1 - drops (or not) defibs on survival
    6. l4d2_loot_g_chance_nodrop - global chance to no-drop (0%..100%)
    7. l4d2_loot_h_drop_items - how many items hunter will drop after his death
    8. l4d2_loot_b_drop_items - how many items boomer will drop after his death
    9. l4d2_loot_c_drop_items - how many items charger will drop after his death
    10. l4d2_loot_sp_drop_items - how many items spitter will drop after his death
    11. l4d2_loot_j_drop_items - how many items jockey will drop after his death
    12. l4d2_loot_t_drop_items - how many items tank will drop after his death
     
    Hunter
    l4d2_loot_h_chance_health - chance to drop items from "Health" group
    l4d2_loot_h_chance_melee - chance to drop items from "Melee" group
    l4d2_loot_h_chance_bullet - chance to drop items from "Fire-arms" group
    l4d2_loot_h_chance_explosive - chance to drop items from "Explosive" group
    l4d2_loot_h_chance_throw - chance to drop items from "Throw" group
    l4d2_loot_h_chance_upgrades - chance to drop items from "Upgrades" group
    l4d2_loot_h_chance_misc - chance to drop items from "Misc" group
    l4d2_loot_h_chance_nodrop - chance to drop nothing
     
    Boomer
    l4d2_loot_b_chance_health
    l4d2_loot_b_chance_melee
    l4d2_loot_b_chance_bullet
    l4d2_loot_b_chance_explosive
    l4d2_loot_b_chance_throw
    l4d2_loot_b_chance_upgrades
    l4d2_loot_b_chance_misc
    l4d2_loot_b_chance_nodrop
    Full cvarlist you can find in l4d_loot.cfg and l4d2_loot.cfg


    Quote:
    Reason for Unapproving:
    Uses same public cvar as existing approved plugin. Author refuses to change.
    It is a lie. This plugin was first one which used cvar l4d2_loot_version.

    Plugin created 01-16-10 , 23:46
    Another one with cvar l4d2_loot_version have another date: 02-25-10 , 13:19

    When I have created a variable l4d2_loot_version - it was first cvar with this name. All (approved or not approved) plugins did not used this cvar.
    Servers with this Plugin: 10 - in most cases use THIS plugin


    changelog
    1.4 - added riotshield (l4d2_loot_riotshield - MELEE)

    1.3:
    • added nofarm option (l4d_loot_nofarm/l4d2_loot_nofarm 0/1)
    • added l4d_loot_nofarm_panic option
    • fixed sg552
    • added golfclub and rifle_m60
    1.2 - added knife, oxygentank, propanetank, rewritten global no-drop.
    1.1c - fixed this error
    1.1b - added "loot" tag; no more items drops if the murderer not a person (prevent items flood on survival)
    1.1 - added "versus" support ("l4d2_loot_from_players")
    1.0 - release
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_loot.sp - 2937 views - 74.1 KB)
    File Type: cfg l4d2_loot.cfg (3.1 KB, 1969 views)
    File Type: sp Get Plugin or Get Source (l4d_loot.sp - 2200 views - 28.3 KB)
    File Type: cfg l4d_loot.cfg (1.0 KB, 1307 views)
    File Type: sp Get Plugin or Get Source (l4d2_loot_1_4.sp - 2911 views - 68.9 KB)

    Last edited by Jоnny; 05-01-2011 at 03:25. Reason: version update
    Jоnny is offline
    Jоnny
    Senior Member
    Join Date: Jun 2007
    Old 01-17-2010 , 00:35   Re: [L4D2] Loot of Zombies
    Reply With Quote #2

    This autodifficulty works with [L4D2] Loot of Zombies
    Chat commands (not team chat, only main): !easy !normal !hard !info

    Root admins can use !all easy, !all normal and !all hard chat commands
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_autodifficulty.sp - 2223 views - 24.3 KB)
    File Type: sp Get Plugin or Get Source (l4d2_autodifficulty_survival.sp - 2092 views - 18.4 KB)

    Last edited by Jоnny; 04-02-2010 at 00:08. Reason: l4d2_autodifficulty.sp version update (1.9.6)
    Jоnny is offline
    dacomb
    Senior Member
    Join Date: Oct 2009
    Old 01-17-2010 , 01:08   Re: [L4D2] Loot of Zombies
    Reply With Quote #3

    interesting plugin but are there not already enough items all over the maps as it is without having the infected drop more?

    Not a criticism. Just curious what the motivation to create it was.
    dacomb is offline
    Jоnny
    Senior Member
    Join Date: Jun 2007
    Old 01-17-2010 , 02:58   Re: [L4D2] Loot of Zombies
    Reply With Quote #4

    its good for increased maxplayers ;)
    i have 2 servers with increased maxplayers (coop, survival), so its very usefull
    Jоnny is offline
    Cuthbert
    Senior Member
    Join Date: Nov 2009
    Old 01-20-2010 , 15:31   Re: [L4D2] Loot of Zombies
    Reply With Quote #5

    This is awesome, I'll try it out the minute I get home. This will be an excellent way to dynamically populate maps with extra items, especially ones that are excessively rare like katanas/machettes (melee weapons). Players aren't given enough chances to use the good side-arms.

    I've been waiting for something like this, thanks for putting it together.
    Cuthbert is offline
    Cuthbert
    Senior Member
    Join Date: Nov 2009
    Old 01-20-2010 , 20:10   Re: [L4D2] Loot of Zombies
    Reply With Quote #6

    Argh, you could have mentioned there's no Versus support. Leaving aside the question of "who the hell wants to play Campaign," it works great on Campaign.

    Anyway, it is the only plugin of its kind (that actually has all the items), so I hope you get this working on Versus sometime soon.

    Last edited by Cuthbert; 01-20-2010 at 20:18.
    Cuthbert is offline
    Jоnny
    Senior Member
    Join Date: Jun 2007
    Old 01-21-2010 , 04:09   Re: [L4D2] Loot of Zombies
    Reply With Quote #7

    Quote:
    Originally Posted by Cuthbert View Post
    I hope you get this working on Versus sometime soon.
    done
    Jоnny is offline
    Cuthbert
    Senior Member
    Join Date: Nov 2009
    Old 01-21-2010 , 11:11   Re: [L4D2] Loot of Zombies
    Reply With Quote #8

    Well shut my mouth -- thanks! I'll take another look when I get home.
    Cuthbert is offline
    Cuthbert
    Senior Member
    Join Date: Nov 2009
    Old 01-22-2010 , 12:14   Re: [L4D2] Loot of Zombies
    Reply With Quote #9

    Ok so I gave it a crack in Versus mode, and it worked beautifully. Right now I'm using the plugin to have Hunters drop magnums, and Chargers drop katanas/machettes, and that has made games a lot more enjoyable already. It allows frequent access to side-arms that are desirable, but tediously rare.

    Very useful plugin. I did have a pretty rough time setting it up though, I would advise you to do one of two things. If you can, have this plugin create a .cfg file of its own in the user's sourcemod/configs folder, so they don't have to manually enter every line into their server.cfg.

    If you can't do that, then you need to explicitly instruct people to set perameters for every line. For a long time my settings weren't working, because I had set perameters for items that I did want to include, but didn't set them for items I wanted to rule out.

    Anyway this plugin saves me the trouble of manually spawning weapons into each player's hand at the start of every round (I'm a firm believer that katanas should be readily available), so thank you.
    Cuthbert is offline
    Jоnny
    Senior Member
    Join Date: Jun 2007
    Old 01-22-2010 , 12:28   Re: [L4D2] Loot of Zombies
    Reply With Quote #10

    now its easy to add "exec loot.cfg" into server.cfg
    Jоnny 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 12:12.


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