Raised This Month: $51 Target: $400
 12% 

[L4D2] Block Pour Gascan [v1.0.1 | 08-March-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7545
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Block clients from pouring with normal gascans
    Old 03-07-2021 , 22:04   [L4D2] Block Pour Gascan [v1.0.1 | 08-March-2021]
    Reply With Quote #1

    L4D2 ONLY

    Description

    Block clients from pouring with normal gascans. Only scavenge gascans will be allowed.

    I recommend you using [L4D2] Scavenge Pouring - Unleaded Gas Only by Silvers, instead, since it does pretty the same but with better ways (detour/no workarounds).

    Features
    • Block clients from pouring with normal gascans.

    Cvars

    A configuration file named "l4d2_block_pour_gascan.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_block_pour_gascan_enable "1" 
    Related Game Cvars
    • gascan_use_range => Maximum distance that a client can be from a gas nozzle to be able to fill. (default: 65)

    Admin Commands
    • sm_print_cvars_l4d2_block_pour_gascan => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • When switching from a normal gascan to a scavenge one, a message will be displayed saying that someone is already pouring.
    • Throwing the gascan is blocked near the gas nozzle.
    • Gascan fill (pour/interrupt) sounds are blocked near the gas nozzle.

    To Do
    • Add warning message.

    Thank you!
    • ur5efj - for requesting.
    • PEK727 - for reporting a bug blocking gascans to be thrown.

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d2_block_pour_gascan.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_block_pour_gascan.sp - 118 views - 14.3 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:20.
    Marttt is offline
    PEK727
    Junior Member
    Join Date: Aug 2020
    Location: United States
    Old 03-08-2021 , 13:47   Re: [L4D2] Block Pour Gascan [v1.0.0 | 08-March-2021]
    Reply With Quote #2

    Prevents being able to throw gascans with mouse1, I assume this is a bug.
    PEK727 is offline
    Tank Rush
    Senior Member
    Join Date: May 2019
    Location: Argentina
    Old 03-08-2021 , 19:38   Re: [L4D2] Block Pour Gascan [v1.0.0 | 08-March-2021]
    Reply With Quote #3

    I tried this on my server and it works fine with scavenge events created with Stripper Source
    __________________
    Sorry i don't speak english very well

    --->My name is Source and I'm on Steam<---
    Discord: Source#9382
    Tank Rush is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 03-08-2021 , 19:55   Re: [L4D2] Block Pour Gascan [v1.0.1 | 08-March-2021]
    Reply With Quote #4

    Updated (1.0.1)

    Code:
    1.0.1 (08-March-2021)
        - Fixed gascans being blocked to throw with M1 anywhere. (thanks "PEK727" for reporting)
        - Now gascans actions and pour sounds are only blocked near the gas nozzle.
    __________________

    Last edited by Marttt; 03-08-2021 at 19:55.
    Marttt is offline
    Reply



    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 18:36.


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