Raised This Month: $230 Target: $400
 57% 

[L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7686
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks pouring gascans which are not using the Scavenge model, configurable types.
    Old 06-17-2021 , 15:22   [L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]
    Reply With Quote #1

    Fixes:
    • Blocks pouring non-scavenge models of gascans. Can configure which types to allow.
    • Some options to choose what happens when pouring is denied.


    Thanks:
    • Eärendil - For the idea and request
    • XeroX - For showing the function to detour
    • Lux - Discussion about the plugin and plugin title



    Related Plugins:


    CVars:

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

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

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

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

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

    // 0=Off. 1=Prevent dropping the gascan when denied pouring.
    l4d2_block_gascan_drop "1"

    // 0=Off. 1=Print a message to the client explaining they cannot use this gascan.
    l4d2_block_gascan_print "1"

    // 0=Off. 1=Stagger the client when denied pouring.
    l4d2_block_gascan_stagger "1"

    // Which models to block. 1=Standard, 2=Scavenge, 4=Green, 8=Green with Diesel text. Add numbers together.
    l4d2_block_gascan_types "9"

    // Scavenge Pouring - Unleaded Gas Only plugin version
    l4d2_block_gascan_version 


    Changes:
    Code:
    1.1 (17-Jun-2021)
        - Made compatible with the "Pour Gas" plugin.
    
    1.0 (17-Jun-2021)
        - Initial release.


    Requirements:
    1. DHooks (Experimental Dynamic Detour support) extension.


    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. Download the "l4d2_block_gascan.txt" gamedata and put the file into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_block_gascan.sp - 34 views - 11.6 KB)
    File Type: smx l4d2_block_gascan.smx (7.6 KB, 30 views)
    File Type: txt l4d2_block_gascan.txt (981 Bytes, 47 views)
    __________________

    Last edited by Silvers; 06-18-2021 at 20:34.
    Silvers is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 06-17-2021 , 16:13   Re: [L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]
    Reply With Quote #2

    Quote:
    Originally Posted by Silvers View Post
    CVars:

    Saved to l4d2_incapped_crawling.cfg in your servers \cfg\sourcemod\ folder.
    cfg file?

    Quote:
    Originally Posted by Silvers View Post
    [L4D2] Scavenge Pouring - Unleaded Gas Only
    There is a lot of difference with this plugin? (apart from cvars)
    [L4D2] Block Pour Gascan

    Last edited by Tonblader; 06-17-2021 at 16:18.
    Tonblader is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-17-2021 , 16:19   Re: [L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]
    Reply With Quote #3

    Quote:
    Originally Posted by Tonblader View Post
    cfg file?



    There is a lot of difference with this plugin? (apart from cvars)
    [L4D2] Block Pour Gascan
    Thanks, copy paste mistake.

    Didn't see about the other plugin. This has some more features I guess and by detouring avoids issues or workarounds other methods might have.
    __________________

    Last edited by Silvers; 06-17-2021 at 16:20.
    Silvers is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 08-01-2021 , 03:55   Re: [L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]
    Reply With Quote #4

    There is a problem with this plugin:
    [L4D2] ScavengeBotsDS of Mart

    The bots grab the red gascans and try to fill the motor automatically, but the plugin blocks/pushes them and then they repeat the process infinitely.
    the bots couldn't take these kinds of red gascans.
    Tonblader is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-01-2021 , 04:59   Re: [L4D2] Scavenge Pouring - Unleaded Gas Only (1.1) [17-Jun-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by Tonblader View Post
    There is a problem with this plugin:
    [L4D2] ScavengeBotsDS of Mart

    The bots grab the red gascans and try to fill the motor automatically, but the plugin blocks/pushes them and then they repeat the process infinitely.
    the bots couldn't take these kinds of red gascans.
    The other plugin needs to detect this one and then force bots to only pickup scavenge skin gascans not stock ones.
    __________________
    Silvers 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:39.


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