Left 4 Dead 2

Left 4 Dead 2

Current Item Drop on Immobilization
 This topic has been pinned, so it's probably important
tomaz  [developer] 18 Mar, 2024 @ 11:57am
CONFIG
This is just here to not bloat the description as it's already kinda big.

PLEASE LOAD INTO A MAP AT LEAST ONCE TO GET THE .CFG FILE!!!
If you somehow see Chinese characters in the config file, open it with something like Notepad++ instead. This is probably due to some sort of encoding bug on a few select Windows installations
Config file is located in left4dead2/ems/cidoi/config.cfg

PARAMETERS
  • charger_carry_chance = [0 - 100]
    (Chance of having your item dropped when getting carried by a Charger)
  • charger_carry_drop_all = [true/false]
    (Drop ALL YOUR ITEMS when getting carried by a Charger)

  • charger_impact_chance = [0 - 100]
    (Chance of having your item dropped when getting knocked by a Charger that is carrying someone)
  • charger_impact_drop_all = [true/false]
    (Drop ALL YOUR ITEMS when getting knocked by a Charger that is carrying someone)

  • hunter_chance = [0 - 100]
    (Chance of having your item dropped when getting pounced by a Hunter)
  • hunter_drop_all = [true/false]
    (Drop ALL YOUR ITEMS when getting pounced by a Hunter)

  • jockey_chance = [0 - 100]
    (Chance of having your item dropped when getting ridden by a Jockey)
  • jockey_drop_all = [true/false]
    (Drop ALL YOUR ITEMS when getting ridden by a Jockey)

  • smoker_chance = [0 - 100]
    (Chance of having your item dropped when getting grabbed by a Smoker)
  • smoker_drop_all = [0 - 100]
    (Drop ALL YOUR ITEMS when getting grabbed by a Smoker)

  • tank_chance = [0 - 100]
    (Chance of having your item dropped when getting punched by a Tank)
  • tank_drop_all = [true/false]
    (Drop ALL YOUR ITEMS when getting punched by a Tank)

  • incap_chance = [0 - 100]
    (Chance of having your item dropped when getting incapacitated)
  • incap_drop_all = [0 - 100]
    (Drop ALL YOUR ITEMS when getting incapacitated)

  • ledge_chance = [0 - 100]
    (Chance of having your item dropped when slipping and hanging on a ledge)
  • ledge_drop_all = [0 - 100]
    (Drop ALL YOUR ITEMS when slipping and hanging on a ledge)

  • blacklisted_items = "pistol,pistol_magnum"
    (List of items you don't want to be dropped. Separate each item with a COMMA ",")
    • VALID ITEMS: adrenaline | autoshotgun | bat | chainsaw | cricket_bat | crowbar | defibrillator | electric_guitar | fireaxe | frying_pan | golfclub | grenade_launcher | hunting_rifle | katana | knife | machete | molotov | pain_pills | pipe_bomb | pistol | pistol_magnum | pitchfork | pumpshotgun | rifle | rifle_ak47 | rifle_desert | rifle_m60 | rifle_sg552 | shotgun_chrome | shotgun_spas | shovel | smg | smg_mp5 | smg_silenced | sniper_awp | sniper_military | sniper_scout | tonfa | upgradepack_explosive | upgradepack_incendiary | vomitjar

  • hint_show = [true/false]
    (Enable/disable dropped item instructor hints)
  • hint_item_names = [true/false]
    (Enable/disable specific item names in the instructor hints. EX: "Your Pump Shotgun was dropped")
  • hint_timeout = [any positive number]
    (Remove hint after this amount of time in seconds. Set to 0 for the hint to never disappear until you pick your item back up)

After making changes, make sure to reload the map.
Ignore the NUL byte at the end, that's just a bug with VScript.
Last edited by tomaz; 3 Oct, 2024 @ 2:06pm
< >
Showing 1-4 of 4 comments
GS Mod In Play 26 Jul, 2024 @ 11:41am 
How about making a mod that drops items and pistols when they die, because the only things that drop are rifles and shotguns.
Agitatio 27 Oct, 2024 @ 11:56pm 
Originally posted by GS Mod In Play:
How about making a mod that drops items and pistols when they die, because the only things that drop are rifles and shotguns.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2608563050
Tyrian 5 Jul @ 12:56pm 
Would you consider adding riotshield to the list of valid blacklist items, please?
tomaz  [developer] 5 Jul @ 6:08pm 
Originally posted by Tyrian:
Would you consider adding riotshield to the list of valid blacklist items, please?
I'll keep that in mind when I revisit my scripts, whenever that'll be
< >
Showing 1-4 of 4 comments
Per page: 1530 50