Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Explosive Barrel (1.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2749
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    29 
    Plugin Description:
    Auto-spawns Explosive Barrels
    Old 12-31-2011 , 02:34   [L4D & L4D2] Explosive Barrel (1.9) [11-Dec-2022]
    Reply With Quote #1


    • Auto-spawns saved Explosive Barrels.
    • The auto-spawn data config is saved to l4d_barrel.cfg in your servers \addons\sourcemod\data\ folder.


    Thanks:


    Admin Commands: (requires "z" flag)
    PHP Code:
    sm_barrel        // Spawns a temporary Explosive Barrel at your crosshair.
    sm_barrelsave    // Spawns an Explosive Barrel at your crosshair and saves to config.
    sm_barrellist    // Displays a list of Explosive Barrels spawned by the plugin and their locations.
    sm_barreldel     // Removes the Explosive Barrel you are nearest to and deletes from the config if saved.
    sm_barrelclear   // Removes all Explosive Barrels from the current map.
    sm_barrelwipe    // Removes all Explosive Barrels from the current map and deletes them from the config. 


    CVars:

    Saved to l4d_barrel.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_barrel_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_barrel_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_barrel_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_barrel_modes_tog ""

    // -1=All, 0=Off, other value randomly spawns that many Explosive Barrels from the config.
    l4d_barrel_random "2"

    // Explosive Barrel plugin version.
    l4d_barrel_version 


    Changes:
    Code:
    1.9 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    1.8 (15-Feb-2021) - by Marttt
        - Added precache for the "barrel_fly" particle to prevent lag on first spawn in some maps.
    
    1.7 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.6 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.5.2 (03-Jul-2019)
        - Minor changes to code, has no affect and not required.
    
    1.5.1 (21-Jul-2018)
        - Flipped lines to avoid potential crash, correct order: TeleportEntity then DispatchSpawn.
    
    1.5 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_barrel_modes_tog" now supports L4D1.
    
    1.4 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_barrel_modes_tog" now supports L4D1.
    
    1.3 (21-Jul-2013)
        - Removed Sort_Random work-around. This was fixed in SourceMod 1.4.7, all should update or spawning issues will occur.
    
    1.2 (10-May-2012)
        - Added cvar "l4d_barrel_modes_off" to control which game modes the plugin works in.
        - Added cvar "l4d_barrel_modes_tog" same as above, but only works for L4D2.
        - Saves barrel angle to the config for auto spawning.
    
    1.1 (14-Jan-2012)
        - Removed useless code.
    
    1.0 (31-Dec-2011)
        - Initial release.


    Installation:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

    Updating from 1.1 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_explosive_barrel.sp - 404 views - 24.3 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 19:46.
    Silvers is offline
    onv
    Senior Member
    Join Date: Feb 2011
    Old 01-11-2012 , 07:19   Re: [L4D & L4D2] Explosive Barrel (1.0) [31-Dec-2011]
    Reply With Quote #2

    Nice job , Silvers ! But i think the radius of the explosion is a bit huge..
    onv is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-11-2012 , 09:08   Re: [L4D & L4D2] Explosive Barrel (1.0) [31-Dec-2011]
    Reply With Quote #3

    It's default...

    Code:
    fuel_barrel_damage_amount                : 25       : , "sv", "cheat"  : 
    fuel_barrel_damage_radius                : 400      : , "sv", "cheat"  : 
    fuel_barrel_debug                        : 0        : , "sv", "cheat"  : 
    fuel_barrel_flame_instances              : 8        : , "sv", "cheat"  : 
    fuel_barrel_health                       : 20       : , "sv", "cheat"  : 
    fuel_barrel_screen_shake_amplitude       : 20       : , "sv", "cheat"  : 
    fuel_barrel_screen_shake_duration        : 1.5      : , "sv", "cheat"  : 
    fuel_barrel_screen_shake_frequency       : 2.5      : , "sv", "cheat"  : 
    fuel_barrel_screen_shake_radius          : 1000     : , "sv", "cheat"  :
    __________________
    Silvers is offline
    xbladek10
    Junior Member
    Join Date: Jan 2012
    Old 01-11-2012 , 13:41   Re: [L4D & L4D2] Explosive Barrel (1.0) [31-Dec-2011]
    Reply With Quote #4

    please, can you explain me this?

    l4d_barrel_modes "???" // Which game modes to enable the plugin.

    regards
    __________________




    xbladek10 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-11-2012 , 14:29   Re: [L4D & L4D2] Explosive Barrel (1.0) [31-Dec-2011]
    Reply With Quote #5

    Quote:
    Originally Posted by xbladek10 View Post
    please, can you explain me this?

    l4d_barrel_modes "???" // Which game modes to enable the plugin.

    regards
    l4d_barrel_modes "coop,realism,mutation12"

    Put the game mode names in a string separated by commas (no spaces). This would enable the plugin only when coop, realism or realism versus is being played.
    __________________
    Silvers is offline
    xbladek10
    Junior Member
    Join Date: Jan 2012
    Old 01-12-2012 , 19:21   Re: [L4D & L4D2] Explosive Barrel (1.0) [31-Dec-2011]
    Reply With Quote #6

    thanks Silvers nice job.
    __________________





    Last edited by xbladek10; 01-12-2012 at 19:21.
    xbladek10 is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 01-15-2012 , 00:48   Re: [L4D & L4D2] Explosive Barrel (1.2) [14-Jan-2011]
    Reply With Quote #7

    l4d_barrel_random "-1"
    Does this command mean spawn barrels as many as possible in a map or all gas cans, oxygen tanks and propane tanks will be replaced with explosive barrels?
    __________________
    Kill all the son of a bitches, that's my official instructions.
    L4Dε Modified Talker
    bazrael is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-15-2012 , 15:04   Re: [L4D & L4D2] Explosive Barrel (1.2) [14-Jan-2011]
    Reply With Quote #8

    You save barrels to the map with sm_barrelsave. When the round starts l4d_barrel_random "-1" will spawn all the saved barrels. l4d_barrel_random "0" will spawn none and l4d_barrel_random "2" will randomly select only 2 from the config to spawn.
    __________________

    Last edited by Silvers; 01-15-2012 at 15:05. Reason: grammar
    Silvers is offline
    gilmon
    Senior Member
    Join Date: Feb 2011
    Location: China
    Old 01-15-2012 , 20:18   Re: [L4D & L4D2] Explosive Barrel (1.2) [14-Jan-2011]
    Reply With Quote #9

    Can you make the normal barrel can be explosive too?
    (like in game barrel looks very old)
    gilmon is offline
    Send a message via MSN to gilmon
    Herbie_06
    Junior Member
    Join Date: Aug 2011
    Old 02-22-2012 , 01:19   Re: [L4D & L4D2] Explosive Barrel (1.2) [14-Jan-2011]
    Reply With Quote #10

    It tried this plugin for L4D2 but it doesn't seem to work for me.
    I put the smx-file into the plugins directory and the server autogenerated the cfg-file.
    I played two games (Dead Center + Dark Carnival) but the game didn't spawn a single barrel the whole game.
    Is there something else I have to do to get the plugin working?
    Herbie_06 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 00:56.


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