Raised This Month: $18 Target: $400
 4% 

[L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Plugin ID:
8079
Plugin Version:
1.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Zombies drop Loot Boxes that contains random things.
    Old 06-13-2022 , 19:31   [L4D & L4D2] Loot Boxes(v1.1.1)[17-Jun-2022]
    Reply With Quote #1

    Loot Boxes
    v1.1.1


    Update note:
    If you have installed l4d2_lootboxes.smx(1.0) in your L4D2 server and you are updating it, remove the old file and install l4d_lootboxes.smx, since now there is only 1 file for both L4D & L4D2, also you can remove l4d2_lootboxes.cfg from configs file since it will use the "l4d_" prefix for both the plugin and the config. For Left 4 Dead servers you don't have to change anything, just update it as usual, but check for the new ConVar.
    About:
    I love the chaos, for me one of the funniest things of this game is to join a server full of shots, zombies, explosions and screams, the more confusing and chaotic the game, the better. I wanted to create a server of this caracteristics, so a lot of my plugins are focused on this, more zombies, more weapons, harder game... This was the first plugin that I started to make, even before publishing anything on this forum. However it was buggy and crashed sometimes the server, so I wrote the code again from scratch preventing any code error and server crash and I added a lot of optimizations.
    Description:
    • Special infected can drop a Loot Box when killed.
    • Tanks and Witches can spawn multiple Loot Boxes.
    • When a Loot Box is opened it can trigger a good or a bad event.
    • Up to 34 different events.
    • Boosts and nerfs for survivors who open the box.
    • Global events that affect the whole game.

      Good events (L4D2 only):
      • Tier 1: Spawn any smg/pumpshotgun.
      • Tier 2: Spawn rifles, snipers or autoshotguns.
      • Tier 3: Spawn a grenade launcher or M60.
      • Drugs: Spawn pain pills or adrenaline.
      • Medical items: Spawn first aid kit or defibrillators.
      • Secondary weapon: Spawn pistols, magnums or melee.
      • Throwables: Spawn any throwable.
      • Explosive/flammable items: Spawn gascans, propane tanks...
      • Upgrade packs: Fire and explosive rounds.
      • Laser Box: Spawn a laser box.
      • Speed boost: Survivor will get movement speed and attack speed bost.
      • Invulnerability: Survivor won't receive damage from zombies or survivors.
      • Health regeneration: Survivor will recover health over time and reset incapacitation count.
      • Fire power: Survivor will burn any attacker or victim if its a zombie.
      • Infinite ammo: Survivor will have unlimited bullets in its weapon clip.
      • Explosive shots: When bullets hits obstacles or zombies will cause a big explosion that stuns zombies.
      • Infinity Gauntlet: Kills the 50 % of all alive zombies, special infected and witches, tanks will have this current health halved.
      Bad events (L4D2 only):
      • Some zombies: A group of infected will be spawned and attack survivors.
      • Panic event: More zombies and also a panic event.
      • Vomit trap: The box will explode, covering near survivors in vomit.
      • Spit trap: Multiple acid spit will be shot covering the area in acid.
      • Witch: A witch will spawn where the box has been opened.
      • Tank: A tank will spawn somewhere, if plugin fails to spawn it randomly, the tank will spawn at the box position.
      • Toxic Cloud: The box contains a toxic gas that will hurt any survivor around, there is a small chance to get intoxicated.
      • Jockey: A jockey will spawn at the survivor head and will attempt to ride him instantly.
      • Explosive Barrel: An explosive barrel will spawn and explode.
      • Black and white: Survivor will get black and white effect (getting incapacitation will kill the survivor).
      • Freeze trap: The box will explode and nearby survivors will be frozen.
      • Reverse controls: Basic controls (forward-back-left-right) will be reversed.
      • Fragility: Survivor will get extra damage from all sources.
      • Bear trap: A trap will hurt the survivor and cause a bleeding effect.
      • Random angles: Survivor view angles will be completely randomized over time.
      • Firework party: Multiple fireworks will spawn and explode.
      • Full SI team: Spawn 1 of each special infected at once.
    Admin Commands:
    Spoiler
    ConVars:
    ConVar settings for L4D2 (some default parameters changes in L4D):
    Spoiler
    Dependences:
    GitHub

    To do:
    • More ConVars to improve plugin customization.
    • More effects (any suggestion will be welcome).
    • Improve current FX to make the plugin look better.
    Changelog:
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_lootboxes.sp - 261 views - 89.6 KB)
    File Type: smx l4d_lootboxes.smx (37.3 KB, 332 views)
    __________________
    >>My plugins<<
    >>GitHub<<

    Last edited by Earendil; 06-21-2022 at 15:47. Reason: Changed plugin description
    Earendil is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 06-13-2022 , 20:58   Re: [L4D & L4D2] Loot Boxes
    Reply With Quote #2

    Nicely done, this effectively supercedes Luffy Items.
    __________________
    Mr. Man is offline
    marki89
    Member
    Join Date: Jun 2020
    Location: Argentina
    Old 06-13-2022 , 21:41   Re: [L4D & L4D2] Loot Boxes
    Reply With Quote #3

    hello
    when I kill a zombie no box drops
    marki89 is offline
    Earendil
    Senior Member
    Join Date: Jan 2020
    Location: Spain
    Old 06-14-2022 , 06:38   Re: [L4D & L4D2] Loot Boxes
    Reply With Quote #4

    Quote:
    Originally Posted by marki89 View Post
    hello
    when I kill a zombie no box drops
    By default killing an special infected has an 8% of chance to drop a Loot Box, common infected doesn't drop any. You can increase the chance of dropping a box by setting "20.0,20.0,20.0,20.0,20.0,20.0", one value for each SI that the game supports, or only one value: "20.0". Plugin will detect this value and asing to all special infected to drop the lootbox with a chance of 20%.
    __________________
    >>My plugins<<
    >>GitHub<<
    Earendil is offline
    AsphyxiaJLSA
    Member
    Join Date: Oct 2021
    Location: Lima,Perú
    Old 06-14-2022 , 18:50   Re: [L4D & L4D2] Loot Boxes(v1.0)[14-Jun-2022]
    Reply With Quote #5

    Quote:
    Originally Posted by Earendil View Post
    Loot Boxes

    v1.0

    From what I can read the plugin is very good, but it doesn't work in L4D2, the smx file doesn't generate a .cfg file automatically either. Maybe you made a mistake loading the plugin. I configure the .cfg that comes along with the .zip and nothing appears either, I put 100% probability to check and absolutely nothing happens.
    __________________
    →MY STEAM PROFILE←

    My COOP server in L4D2 -> connect 45.126.208.162:27010
    DISCORD: Asphyxia#9797

    Sorry for my bad English

    Last edited by AsphyxiaJLSA; 06-14-2022 at 18:51.
    AsphyxiaJLSA is offline
    Earendil
    Senior Member
    Join Date: Jan 2020
    Location: Spain
    Old 06-14-2022 , 20:30   Re: [L4D & L4D2] Loot Boxes(v1.0)[14-Jun-2022]
    Reply With Quote #6

    Quote:
    Originally Posted by AsphyxiaJLSA View Post
    From what I can read the plugin is very good, but it doesn't work in L4D2, the smx file doesn't generate a .cfg file automatically either. Maybe you made a mistake loading the plugin. I configure the .cfg that comes along with the .zip and nothing appears either, I put 100% probability to check and absolutely nothing happens.
    When you put the .smx in your plugins folder, what error does it print into the console?
    __________________
    >>My plugins<<
    >>GitHub<<
    Earendil is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 06-14-2022 , 21:04   Re: [L4D & L4D2] Loot Boxes(v1.0)[14-Jun-2022]
    Reply With Quote #7

    I know you can edit the plugin directly but any plans to give us a CVAR to change the model of the loot box?
    __________________
    Mr. Man is offline
    weffer
    Member
    Join Date: Oct 2020
    Old 06-14-2022 , 21:17   Re: [L4D & L4D2] Loot Boxes(v1.0)[14-Jun-2022]
    Reply With Quote #8

    Quote:
    Originally Posted by AsphyxiaJLSA View Post
    From what I can read the plugin is very good, but it doesn't work in L4D2, the smx file doesn't generate a .cfg file automatically either. Maybe you made a mistake loading the plugin. I configure the .cfg that comes along with the .zip and nothing appears either, I put 100% probability to check and absolutely nothing happens.
    check well the plugin works correctly, check its dependencies.
    weffer is offline
    hefiwhfcds2
    Junior Member
    Join Date: Jun 2022
    Old 06-14-2022 , 21:24   Re: [L4D & L4D2] Loot Boxes(v1.0)[14-Jun-2022]
    Reply With Quote #9

    great,you can add incap box or charger box ex.
    hefiwhfcds2 is offline
    Earendil
    Senior Member
    Join Date: Jan 2020
    Location: Spain
    Old 06-16-2022 , 08:43   Re: [L4D & L4D2] Loot Boxes(v1.1)[16-Jun-2022]
    Reply With Quote #10

    I have updated the plugin to v1.1

    In 1.0 I made 2 different files, but I decided to merge both into 1 to prevent adding changes twice in different files increasing the chance to make a mistake in one of both files and to decrease the work required to update the plugin. Also I have optimized the plugin, fixed errors and added a new ConVar.

    Code:
    1.1 (16-Jun-2022)
    - Merged Left 4 Dead and Left 4 Dead 2 plugin files. - Fixed error with Toxic Cloud that limited the amount of clouds per round to 8. - Fixed error where infinite ammo boost was not working properly. - Optimized client weapon check for infinte ammo boost. - Fixed warning messages for SM 1.11 - Added new ConVar (l4d2_lootbox_fragility_multiplier). - Removed public function declarations where they were not required. - Weapon removal and validation is made through entity index instead of reference.
    __________________
    >>My plugins<<
    >>GitHub<<

    Last edited by Earendil; 06-16-2022 at 08:45.
    Earendil 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 16:17.


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