AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Scavenge Score Fix - Gascan Pouring (2.5) [11-Dec-2022] (https://forums.alliedmods.net/showthread.php?t=187686)

Silvers 06-16-2012 16:00

[L4D2] Scavenge Score Fix - Gascan Pouring (2.5) [11-Dec-2022]
 
17 Attachment(s)
About:
  • This prevents the score / gascan poured count / remaining scavenge time from increasing.
  • Problem occurs when plugins use the point_prop_use_target entity.
  • Bug affects all gamemodes with Scavenge style crescendos not only the Scavenge gamemode. For example: c1m4_atrium or c6m3_port.


Affected Plugins:

Related Plugins:

Thanks:
  • irogue - Reporting the problem and lots of help testing.
  • Don't Fear The Reaper - Lots of help testing.
  • Lux - Helping with version 2.0 method.


CVars:

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

PHP Code:

// 0.0=Off. Any other value is number of seconds until respawning a gascan when used for something other than a Scavenge pour event.
l4d2_scavenge_score_respawn "20.0" 


Changes:
Code:

2.5 (11-Dec-2022)
    - Changes to fix compile warnings on SourceMod 1.11.

2.4a (19-Oct-2021)
    - Wildcarded the .txt GameData signature for compatibility with "Left4DHooks" plugin version 1.64+.

2.4 (07-Oct-2021)
    - Fixed not detecting Scavenge gascans the game respawns. Thanks to "a2121858" for reporting.

2.3 (06-Oct-2021)
    - Added cvar "l4d2_scavenge_score_respawn" to set the timer until a Scavenge gascan is respawned.
    - Now creates a cvar config saved as "l4d2_scavenge_score".
    - Now respawns Scavenge event gascans when poured for something other than the Scavenge event.
    - GameData file updated.

2.2 (03-Oct-2021)
    - Added a delay to detect "point_prop_use_target" entities. Thanks to "a2121858" for reporting.

2.1 (25-Feb-2021)
    - Fixed a mistake that would have broken the plugin if multiple 'point_prop_use_target' entities existed on the map.

2.0 (25-Feb-2021)
    - Completely changed the blocking method. Now requires DHooks to properly block the call and prevent score bugs.
    - Thanks to "Lux" for help with this method.

1.3 (10-May-2020)
    - Various changes to tidy up code.

1.2 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.1 (10-Aug-2013)
    - Fixed a rare bug which could crash the server.

1.0 (16-Jun-2012)
    - Initial release.


Requirements:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

Silvers 08-10-2013 04:54

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (1.1) [10-Aug-2013]
 
Plugin updated, I highly suggest all who need this plugin to update:

1.1 (10-Aug-2013)
- Fixed a rare bug which could crash the server.

Xada 02-23-2021 08:24

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (1.3) [10-May-2020]
 
Recently this mod has stopped working properly (at least on newest beta Sourcemod revisions.)

It appears to prevent the display ticker up top from counting cans poured (most of the time, anyway) but in conjunction with mods like freelance Gascan Pouring and Chainsaw Refuel it won't display the count yet it still registers.
On c1m4_atrium for instance if you refill your chainsaw or pour gas on the floor it'll still count towards the goal, but won't 'show' on the UI. This way if you pour gas or refill chainsaw the escape vehicle will still activate after a number of these actions. In my tests the counter was 8/13 or 5/13 for example and the vehicle was already ready due to doing the other actions with gascans.

I never noticed the issue until recent so I figured I'd report my findings as when this mod works properly it's a must.

Silvers 02-25-2021 04:01

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
 
Thanks. Had to completely change the method how this plugin works. Now requires DHooks. Please let me know of any issues.

kalmas77 09-02-2021 03:30

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
 
Quote:

Originally Posted by Silvers (Post 2738213)
Thanks. Had to completely change the method how this plugin works. Now requires DHooks. Please let me know of any issues.

Now, the plugin has an issue in all game modes when your team dies completely the gas cans doesn't count anymore. Thanks for your amazing plug-ins, I'm a fan of you.

Silvers 09-02-2021 07:33

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.0) [25-Feb-2021]
 
Quote:

Originally Posted by kalmas77 (Post 2756745)
Now, the plugin has an issue in all game modes when your team dies completely the gas cans doesn't count anymore. Thanks for your amazing plug-ins, I'm a fan of you.

Thank you!

Can you please tell me which map/mode so I can replicate the issue? Windows or Linux server? Listen server or dedicated server?

a2121858 10-03-2021 04:15

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.1) [25-Feb-2021]
 
HI, Mr. Silvers. :)

This plugin blocked the gascan score of the map ‘c14m2_lighthouse’. Could you please fix it?I am a windows server.

Also, can I make a request?

Is it possible to add a cvar, the gascan that is not counted in the score, and restore it in place after use, just like being destroyed.

On some maps, for example: c6m3_port, after refueling for Extinguishers, the number of gascans is insufficient and the ending cannot be reached.

sorry, my English is not well.

Silvers 10-03-2021 12:50

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.2) [03-Oct-2021]
 
Quote:

Originally Posted by a2121858 (Post 2759479)
HI, Mr. Silvers. :)

This plugin blocked the gascan score of the map ‘c14m2_lighthouse’. Could you please fix it?I am a windows server.

Code:

2.2 (03-Oct-2021)
    - Added a delay to detect "point_prop_use_target" entities. Thanks to "a2121858" for reporting.



Quote:

Originally Posted by a2121858 (Post 2759479)
Is it possible to add a cvar, the gascan that is not counted in the score, and restore it in place after use, just like being destroyed.

On some maps, for example: c6m3_port, after refueling for Extinguishers, the number of gascans is insufficient and the ending cannot be reached.

sorry, my English is not well.

This is something I should write as a separate plugin. I have the code ready to go, will post soon.

Also recommend viewing: [L4D2] Scavenge Pouring - Unleaded Gas Only to block pouring with specific models so you have enough gascans for the finale/event. Btw the cvar "l4d2_block_gascan_types" for that plugin should be set to "1" or it blocks pouring and completing c14m2. Will update that at some point.

Edit: Maybe it makes sense to respawn from this plugin when detecting non-game event pouring.

Edit2: Sent PM with new version that respawns if you could test please and report back... Thanks.

a2121858 10-05-2021 08:35

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.2) [03-Oct-2021]
 
There is no problem after the update and it works very well.

I used the "l4d2_block_gascan_types" method to determine the objects that the fire extinguisher can use, and it's good now.

Thank you, Mr. Silvers. :)

Silvers 10-06-2021 06:18

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.3) [06-Oct-2021]
 
Code:

2.3 (06-Oct-2021)
    - Added cvar "l4d2_scavenge_score_respawn" to set the timer until a Scavenge gascan is respawned.
    - Now creates a cvar config saved as "l4d2_scavenge_score".
    - Now respawns Scavenge event gascans when poured for something other than the Scavenge event.
    - GameData file updated.

So now it's possible to allow pouring, this plugin will respawn the gascan in such a case. Should work for all cases and all the time.

a2121858 10-07-2021 00:53

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.3) [06-Oct-2021]
 
HI, Mr. Silvers. :)

I found a problem.

If I ignite and destroy the gascan once, after it regenerates, it is used to refuel the fire extinguisher, and it will not be able to regenerate again.

If it is the beginning of the map, the first time it is generated, there is no damage, it is used to refuel the fire extinguisher, it is no problem, and it can be regenerated.

It seems that the gascan that has destroyed the automatic rebirth has not been tracked.

Silvers 10-07-2021 05:12

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.3) [06-Oct-2021]
 
Makes sense, I know what's wrong. Will try to fix soon.

Code:

2.4 (07-Oct-2021)
    - Fixed not detecting Scavenge gascans the game respawns. Thanks to "a2121858" for reporting.


Marttt 10-07-2021 09:58

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4) [07-Oct-2021]
 
I think you already fixed it, but just as a note, the gascan skin property (which we usually use to detect if is "scavenge" or not) has a delay of 1 frame after spawn post (noticed on my tests).

Silvers 10-07-2021 10:13

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4) [07-Oct-2021]
 
Quote:

Originally Posted by Marttt (Post 2759872)
I think you already fixed it, but just as a note, the gascan skin property (which we usually use to detect if is "scavenge" or not) has a delay of 1 frame after spawn post (noticed on my tests).

Yeah uses 0.1 delay.

Darkwob 10-31-2022 21:40

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]
 
Hello silver, I don't know if it will be fixed with this plugin, but in maps with elevators, in maps where we need to run the genarator with gascan, the glow of gascans is not lit and we cannot find where they are. Can you fix this in this plugin?

Briefly; The finale of The Passing map, when we descend by elevator in the finale of the Dead center map, there is no glow from the gascans and we cannot find it.

Silvers 10-31-2022 21:53

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]
 
That's not what this plugin is about.

Darkwob 11-01-2022 11:48

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]
 
So do you have time to make a plugin that can fix this error? I would be grateful if you can make such a plugin.

a2121858 11-01-2022 12:55

Re: [L4D2] Scavenge Score Fix - Gascan Pouring (2.4a) [07-Oct-2021]
 
Try it

[L4D2] Weapon Drop Glow Fix

or

[L4D2] Random Glow Item


All times are GMT -4. The time now is 22:05.

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