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

[L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7481
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Allow multiple gascans and colas to be filled at the same time
    Old 01-30-2021 , 12:21   [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #1

    L4D2 ONLY

    Description

    By default you have to wait before someone pour a gascan or deliver a cola bottles.

    This plugin allow multiple gascans and colas to be filled at the same time.

    Currently, supports:
    • Gascan
    • Cola Bottles

    Features
    • Allow multiple gascans and colas to be filled at the same time.
    • Allow configuring which type (gascan/cola) should be affected by the plugin.

    Cvars

    A configuration file named "l4d2_multiple_gascan_fill.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_multiple_gascan_fill_enable "1"

    // Which types should be affected by the plugin.
    // 0 = NONE, 1 = GASCAN, 2 = COLA.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for GASCAN and COLA.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    l4d2_multiple_gascan_fill_type "3" 
    Admin Commands
    • sm_print_cvars_l4d2_multiple_gascan_fill => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • This was achieved by resetting (-1) the "m_useActionOwner" netprop on "point_prop_use_target" entity, every time someone starts using it.

    Thank you!

    Conflicting Plugins

    Related Plugins

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

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

    Last edited by Marttt; 01-15-2023 at 12:19.
    Marttt is offline
    Krufftys Killers
    Senior Member
    Join Date: Jan 2014
    Old 01-30-2021 , 22:53   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.0 | 30-January-2021]
    Reply With Quote #2

    Getting this error
    Code:
    L 01/30/2021 - 18:53:58: Error log file session closed.
    L 01/30/2021 - 20:06:42: SourceMod error session started
    L 01/30/2021 - 20:06:42: Info (map "c10m3_ranchhouse") (file "C:\servers\kruffty\left4dead2\addons\sourcemod\logs\errors_20210130.log")
    L 01/30/2021 - 20:06:42: [SM] Exception reported: Property "m_spawnflags" not found (entity 158/point_prop_use_target)
    L 01/30/2021 - 20:06:42: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 20:06:42: [SM] Call stack trace:
    L 01/30/2021 - 20:06:42: [SM]   [0] GetEntProp
    L 01/30/2021 - 20:06:42: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 20:06:45: [SM] Exception reported: Property "m_spawnflags" not found (entity 252/point_prop_use_target)
    L 01/30/2021 - 20:06:45: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 20:06:45: [SM] Call stack trace:
    L 01/30/2021 - 20:06:45: [SM]   [0] GetEntProp
    L 01/30/2021 - 20:06:45: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 20:06:50: [SM] Exception reported: Property "m_spawnflags" not found (entity 624/point_prop_use_target)
    L 01/30/2021 - 20:06:50: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 20:06:50: [SM] Call stack trace:
    L 01/30/2021 - 20:06:50: [SM]   [0] GetEntProp
    L 01/30/2021 - 20:06:50: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 20:06:56: [SM] Exception reported: Property "m_spawnflags" not found (entity 194/point_prop_use_target)
    L 01/30/2021 - 20:06:56: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 20:06:56: [SM] Call stack trace:
    L 01/30/2021 - 20:06:56: [SM]   [0] GetEntProp
    L 01/30/2021 - 20:06:56: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 20:07:17: Error log file session closed.
    L 01/30/2021 - 21:15:06: SourceMod error session started
    L 01/30/2021 - 21:15:06: Info (map "village_beta408") (file "C:\servers\kruffty\left4dead2\addons\sourcemod\logs\errors_20210130.log")
    L 01/30/2021 - 21:15:06: [SM] Exception reported: Property "m_spawnflags" not found (entity 1093/point_prop_use_target)
    L 01/30/2021 - 21:15:06: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 21:15:06: [SM] Call stack trace:
    L 01/30/2021 - 21:15:06: [SM]   [0] GetEntProp
    L 01/30/2021 - 21:15:06: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 21:18:25: Error log file session closed.
    L 01/30/2021 - 21:21:31: SourceMod error session started
    L 01/30/2021 - 21:21:31: Info (map "forest_beta407") (file "C:\servers\kruffty\left4dead2\addons\sourcemod\logs\errors_20210130.log")
    L 01/30/2021 - 21:21:31: [SM] Exception reported: Property "m_spawnflags" not found (entity 330/point_prop_use_target)
    L 01/30/2021 - 21:21:31: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 21:21:31: [SM] Call stack trace:
    L 01/30/2021 - 21:21:31: [SM]   [0] GetEntProp
    L 01/30/2021 - 21:21:31: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 21:21:33: [SM] Exception reported: Property "m_spawnflags" not found (entity 358/point_prop_use_target)
    L 01/30/2021 - 21:21:33: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 21:21:33: [SM] Call stack trace:
    L 01/30/2021 - 21:21:33: [SM]   [0] GetEntProp
    L 01/30/2021 - 21:21:33: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 21:21:36: [SM] Exception reported: Property "m_spawnflags" not found (entity 134/point_prop_use_target)
    L 01/30/2021 - 21:21:36: [SM] Blaming: l4d2_multiple_gascan_fill.smx
    L 01/30/2021 - 21:21:36: [SM] Call stack trace:
    L 01/30/2021 - 21:21:36: [SM]   [0] GetEntProp
    L 01/30/2021 - 21:21:36: [SM]   [1] Line 181, /home/forums/content/files/2/9/0/3/2/7/186909.attach::OnUseStarted
    L 01/30/2021 - 21:36:58: Error log file session closed.

    Last edited by DarkDeviL; 01-31-2021 at 00:41. Reason: Added CODE tags
    Krufftys Killers is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 01-30-2021 , 23:22   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.0 | 30-January-2021]
    Reply With Quote #3

    Quote:
    Originally Posted by Krufftys Killers View Post
    Getting this error
    To me, the errorlog, does not throw any error on this map c10m3_ranchhouse.
    I assume you have these maps modified in some way to have gascan.

    Last edited by Tonblader; 01-30-2021 at 23:26.
    Tonblader is offline
    foxhound27
    AlliedModders Donor
    Join Date: Sep 2019
    Location: Argentina
    Old 01-31-2021 , 09:35   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #4

    Nice plugin bro <3
    foxhound27 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 01-31-2021 , 09:39   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #5

    Thank you for this plugin along with your recent modification of Scavenge Bots DS. Now I can watch bots go through scavenge finales a lot quicker.
    __________________
    Psyk0tik is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 04-11-2021 , 18:47   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #6

    Is there a way to disable the collision between players?
    because it turns out that when they are filling several, example: one finishes filling and two others are filling, the person who finished filling is pushed by the collision of other players and cannot take/fill another can correctly.
    Tonblader is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-11-2021 , 20:27   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #7

    May have but I don't know how to do it.
    I already searched in the forum, seems not that easy (without detouring/extension/gamedata).
    If someone is able to do it, I can include it in the plugin as a cvar.
    __________________

    Last edited by Marttt; 04-12-2021 at 09:11.
    Marttt is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 04-12-2021 , 11:21   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #8

    Quote:
    Originally Posted by Marttt View Post
    May have but I don't know how to do it.
    I already searched in the forum, seems not that easy (without detouring/extension/gamedata).
    If someone is able to do it, I can include it in the plugin as a cvar.
    maybe try changing the players collision group when pouring.
    SetEntProp(client, Prop_Data, "m_CollisionGroup", 2); //Debris
    SetEntProp(client, Prop_Data, "m_CollisionGroup", 5); //Player

    Set it to 2 while pouring, then back to 5 for normal collision. May have to set it on the players colliding as well, so the pourer and anyone nearby wanting to pour. Haven't really messed with collision groups on players in l4d though, it may not work.
    MasterMind420 is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-12-2021 , 11:51   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #9

    Maybe. I thought about that but the problem is that (didn't test) may glitch SI attacks (e.g: hunter)
    and can be used as an exploit (don't approve).
    In my plugin I don't mess with players only with the nozzle entity.
    Probably would lead to a lot of others bugs.
    Btw I won't do it by myself.
    I use this plugin very often and never had problems with players colliding.
    (too much effort because of *less* than 2 seconds, better set gas_can_use_duration cvar to 0 then)
    If you are trying to fill 100 gascans at same time then is a problem at your end.
    __________________

    Last edited by Marttt; 04-12-2021 at 11:57.
    Marttt is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 04-12-2021 , 11:59   Re: [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
    Reply With Quote #10

    Quote:
    Originally Posted by Marttt View Post
    Maybe. I thought about that but the problem is that (didn't test) may glitch SI attacks (e.g: hunter)
    and can be used as an exploit (don't approve).
    In my plugin I don't mess with players only with the nozzle entity.
    Probably would lead to a lot of others bugs.
    Btw I won't do it by myself.
    I use this plugin very often and never had problems with players colliding.
    (too much effort because of *less* than 2 seconds, better set gas_can_use_duration cvar to 0)
    If you are trying to fill 100 gascans at same time then is a problem at your end.
    yah i can see it being an issue, you'd have to detect the SI attacking the player and prob set the collision group back to default. Don't know though...Imo more work than its worth. There is m_MoveCollide...not sure what its for but may be of some use. could've sworn there was an entprop or cvar you could set that makes players not push other players, so u could walk through them, if i find it i'll let you know.
    MasterMind420 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:19.


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