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

[L4D2] Pour Gas (1.10) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
3014
Plugin Version:
1.10
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    30 
    Plugin Description:
    Players can pour gascans onto the ground, which can be ignited.
    Old 06-15-2012 , 01:11   [L4D2] Pour Gas (1.10) [10-May-2020]
    Reply With Quote #1



    About:
    • Players can press/hold RELOAD or ZOOM keys to pour gascans onto the ground.
    • The oil left on the ground can be ignited by bullets, explosions and fires.
    • The oil puddles can be set to stay forever or a limited time with the l4d2_pourgas_delete cvar.
    • Number of pours can be limited, forcing the gascan to be dropped after pouring.
    • The dropped gascan will explode when damaged. See the l4d2_pourgas_limit_* cvars.
    • You can set how long the fires burn for with the l4d2_pourgas_burn cvar.
    • The fire particles disappear after 15 seconds but extra fire particles are created and stay for the amount of time you set.


    Thanks:
    • Don't Fear The Reaper - Lots of help with the idea, suggestions and testing.
    • disawar1 - Helped testing, translation idea and Russian translation.
    • Herbie - Asked for infinite fire/puddles and lots of help testing 1.7.
    • worminater - Helped test 1.7.


    Cvars:

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

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

    // 0=Forever? How long do the fires burn once ignited. The oil will fade out after ignition regardless of how long this is.
    l4d2_pourgas_burn "15"

    // Chain reaction time. When a puddle is hurt by fire, create it's own fire after this many seconds.
    l4d2_pourgas_chain "0.5"

    // How much a player is hurt in the fire. Happens multiple times per second.
    l4d2_pourgas_damage "0.1"

    // 0=Infinite, stays forever. Remove puddles after this many seconds.
    l4d2_pourgas_delete "360"

    // Display hint when picking up gascans? 0=Off, 1=Chat text, 2=Hint box.
    l4d2_pourgas_hint "2"

    // How many times to display hints, count is reset each map/chapter.
    l4d2_pourgas_hints "2"

    // 0=No, 1=Yes. Should players hold down the RELOAD|ZOOM key to pour?
    l4d2_pourgas_hold "0"

    // 0=Infinite. Drop the gascan after this number of pours.
    l4d2_pourgas_limit "4"

    // 0=Explosion Off. The dropped gascan explosion distance to hurt players.
    l4d2_pourgas_limit_dist "200"

    // 0=Explosion Off. When using the l4d2_pourgas_limit cvar, the dropped gascan will explode causing this much damage at the center.
    l4d2_pourgas_limit_hurt "50"

    // 0=Off, The range to stumble players from dropped gascan explosions.
    l4d2_pourgas_limit_stum "1"

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

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

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

    // Prevent pouring for this many seconds after completing a pour.
    l4d2_pourgas_timeout "0.4"

    // Pour Gas plugin version.
    l4d2_pourgas_version 


    Changes:
    Code:
    1.10 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.9 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.8.5 (23-Oct-2019)
        - Small clean up and optimization.
    
    1.8.4 (03-Jul-2019)
        - Fixed minor memory leak when creating the puddles.
    
    1.8.3 (28-Jun-2019)
        - Changed PrecacheParticle method.
    
    1.8.2 (03-Jun-2019)
        - Removed gamedata signature/SDKCall dependency for stagger.
        - Now uses native VScript API for stagger function thanks to "Timocop"'s function and "Lux" reporting.
    
    1.8.1 (14-Aug-2018)
        - Fixed invalid entity error. - Thanks to "Ja-Forces" for reporting.
        - Changed Windows "OnStaggered" gamedata to be compatible with Left4Downtown detouring that function. - Thanks to "Spirit_12".
    
    1.8 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Removed instructor hints due to Valve: FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameinstructor_enable.
    
    1.7.4 (20-Jul-2017)
        - Fixed bug when "l4d2_pourgas_hold" is set to "0". - Thanks to "yeahya" for reporting.
    
    1.7.3 (01-Jul-2017)
        - Fixed random crashes when pouring the gascan. - Thanks to "PepeZukas" for reporting and testing.
    
    1.7.2 (21-Aug-2013)
        - Fixed invalid entity error. - Thanks to "Electr000999" for reporting.
    
    1.7.1 (14-Aug-2013)
        - Fixed index out of bounds error. - Thanks to "Electr000999" for reporting.
    
    1.7 (10-Aug-2013)
        - Oil puddles are no longer time limited and stay until shot.
        - Added cvar "l4d2_pourgas_delete" to delete oil puddles after a specified time. 0 = stay forever.
        - Added cvar "l4d2_pourgas_burn" to set how long the fires burn for.
        - Fire particles added when "l4d2_pourgas_burn" is set higher than 15 seconds.
    
    1.6 (06-Jul-2013)
        - Gamedata signatures file updated. No other changes.
    
    1.6 (11-Jul-2012)
        - Fixed players spinning around when pouring.
        - Fixed the first explosion making the server freeze for a second.
        - Fixed not being able to pour if you were holding a gascan before a map change.
    
    1.5 (30-Jun-2012)
        - Added some checks to prevent errors being logged - Thanks to "disawar1" for reporting.
    
    1.4 (20-Jun-2012)
        - Added some checks to prevent errors being logged - Thanks to "gajo0650" for reporting.
        - Fixed a bug when players were pouring their last can and being hurt.
    
    1.3 (16-Jun-2012)
        - Added some checks to prevent errors being logged - Thanks to disawar1 for reporting.
    
    1.2 (16-Jun-2012)
        - Blocked scavenge gascans from being used to pour gas. Causes too many bugs.
        - Stops pouring when players are hurt and "l4d2_pourgas_hold" is 0. Prevents endlessly pouring.
    
    1.1 (16-Jun-2012)
        - Fixed the plugin not fully resetting, which prevented players from pouring.
    
    1.0 (15-Jun-2012)
        - Initial release.


    Installation:
    • Scavenge Score Fix - Gascan Pouring - Get this plugin to prevent bugs when pouring the gascan on certain maps/gamemodes.
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    • Download "translations.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.

    Updating from 1.6 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

    Current Translations: English (en), German (de), Russian (ru).
    Attached Files
    File Type: zip translations.zip (1.4 KB, 338 views)
    File Type: sp Get Plugin or Get Source (l4d2_pourgas.sp - 113 views - 44.5 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 08:10.
    Silvers is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 06-15-2012 , 01:13   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #2

    I love this plugin a lot
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Ghast0529
    New Member
    Join Date: Jun 2012
    Old 06-15-2012 , 04:33   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #3

    I installed SDKHooks and did everything it need, but plugin doesn't work
    Ghast0529 is offline
    Send a message via Skype™ to Ghast0529
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-15-2012 , 04:36   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #4

    Quote:
    Originally Posted by Ghast0529 View Post
    I installed SDKHooks and did everything it need, but plugin doesn't work
    I too installed SDKHooks and did everything it need, but plugin work.

    So explain... if you're not going to be helpful you might as well not post.
    __________________
    Silvers is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 06-15-2012 , 05:35   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #5

    Ty, ppl like it
    __________________
    disawar1 aka raziEiL on: Sourcemod, GitHub, Bitbucket, DeviantArt
    > Grokking Algorithms!
    disawar1 is offline
    JackieChan
    AlliedModders Donor
    Join Date: Nov 2009
    Old 06-15-2012 , 05:46   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #6

    lolwut????

    That's awesome!
    __________________
    JackieChan is offline
    runkeballe
    Member
    Join Date: Jul 2011
    Old 06-15-2012 , 11:34   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #7

    another good plugin..only it spams this error in console and you get lag: L 06/15/2012 - 170:18: [SM] [0] Line 987, C:\SRCDS\left4dead2\left4dead2\addons\sourcem od\scripting\l4d2_pourgas.sp::OnPostThink()
    L 06/15/2012 - 170:18: [SM] Native "SetEntProp" reported: SendProp m_fireXDelta is not an integer ([6,0] != 0)
    L 06/15/2012 - 170:18: [SM] Displaying call stack trace for plugin "l4d2_pourgas.smx":
    L 06/15/2012 - 170:18: [SM] [0] Line 987, C:\SRCDS\left4dead2\left4dead2\addons\sourcem od\scripting\l4d2_pourgas.sp::OnPostThink()
    runkeballe is offline
    chatyak
    Senior Member
    Join Date: Aug 2011
    Old 06-15-2012 , 17:54   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    [IMG]http://img15.**************/img15/2462/pourgas.jpg[/IMG]


    About:
    • Players can press/hold RELOAD or ZOOM keys to pour gascans onto the ground.
    • The oil left on the ground can be ignited by bullets, explosions and fires.
    • Number of pours can be limited, forcing the gascan to be dropped after pouring.
    • The dropped gascan will explode when damaged. See the l4d2_pourgas_limit_* cvars.
    • The oil starts to fade after 1 minute and takes 20 seconds to disappear.
    • Any unexploded gascans will be removed after 1min 20sec.
    • The games cvar inferno_flame_lifetime sets how long Molotovs, Gascans and Firework Crates burn for.
    • If you want to change, save sm_cvar inferno_flame_lifetime 15 to your servers cfgs\server.cfg.
    • 15 is the default value, but you can change. This plugin uses the Molotov/Gascan inferno entity, causing the burn time to be decided by this cvar.
    • Game Bug: Fire particles disappear after 15 seconds regardless of the cvar inferno_flame_lifetime. Damage still occurs until the time ends.


    Thanks:
    • Dont Fear The Reaper - Lots of help with the idea, suggestions and testing.
    • disawar1 - Helped testing, translation idea and Russian translation.


    Cvars:

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

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

    // Chain reaction time. When a puddle is hurt by fire, create it's own fire after this many seconds.
    l4d2_pourgas_chain "0.5"

    // How much a player is hurt in the fire. Happens multiple times per second.
    l4d2_pourgas_damage "0.1"

    // Display hint when picking up gascans? 0=Off, 1=Chat text, 2=Hint box, 3=Instructor hint (Prints to Chat if clients have instructor hints off), 4=Instructor hint (Hint Box).
    l4d2_pourgas_hint "2"

    // How many times to display hints, count is reset each map/chapter.
    l4d2_pourgas_hints "2"

    // 0=No, 1=Yes. Should players hold down the RELOAD|ZOOM key to pour?
    l4d2_pourgas_hold "0"

    // 0=Infinite. Drop the gascan after this number of pours.
    l4d2_pourgas_limit "4"

    // 0=Explosion Off. The dropped gascan explosion distance to hurt players.
    l4d2_pourgas_limit_dist "200"

    // 0=Explosion Off. When using the l4d2_pourgas_limit cvar, the dropped gascan will explode causing this much damage at the center.
    l4d2_pourgas_limit_hurt "50"

    // 0=Off, The range to stumble players from dropped gascan explosions.
    l4d2_pourgas_limit_stum "1"

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

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

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

    // Prevent pouring for this many seconds after completing a pour.
    l4d2_pourgas_timeout "0.4"

    // pourgas plugin version.
    l4d2_pourgas_version 
    Compiling:
    1. Put the SDKHooks include into your \addons\sourcemod\scripting\include\ folder.
    2. Put the plugins .sp file into your scripting folder and compile the plugin.


    Requirements:
    • This plugin requires the SDKHooks extension.


    Installation:
    • Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.
    • This plugin was compiled with SDKHooks version 2.1.

    Current Translations: English (en), German (de), Russian (ru).

    Are you able to save gas cans around the map or add more - or does this only work with existing gas cans?

    Take Care silvers!
    chatyak is offline
    JackieChan
    AlliedModders Donor
    Join Date: Nov 2009
    Old 06-15-2012 , 18:58   Re: [L4D2] Pour Gas (1.0) [15-Jun-2012]
    Reply With Quote #9

    Quote:
    Originally Posted by chatyak View Post
    Are you able to save gas cans around the map or add more - or does this only work with existing gas cans?
    I assume it would work with any gas can. Map spawned, or through the "give" command.
    __________________
    JackieChan is offline
    XDglory
    Junior Member
    Join Date: May 2012
    Old 06-16-2012 , 03:13   Re: [L4D2] Pour Gas (1.1) [16-Jun-2012]
    Reply With Quote #10

    The plugin just makes it realistic!!

    (but the color of the poured gas makes me so uncomfortable...)
    XDglory 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 08:19.


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