AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Use Priority Patch (2.5) [22-Nov-2022] (https://forums.alliedmods.net/showthread.php?t=327511)

Silvers 09-23-2020 23:25

[L4D & L4D2] Use Priority Patch (2.5) [22-Nov-2022]
 
28 Attachment(s)
About:
  • This plugin stops entities attached to players blocking their +USE ability in all instances (not entirely sure).
  • This plugin was mostly written to fix Attachment_API viewmodel blocking +USE (used by Glare and Weapon Charms plugins).
  • Also fixes issues with Hats plugin and others attaching stuff to players.


Thanks:
  • ProdigySim, hmmmmm and maximsmol - For helping me try to read the memory address from another function in L4D1 instead of the current bad practice method (reading past short function end).


Changes:
Code:

2.5 (22-Nov-2022)
    - Fixed crash on L4D1 on Windows. Thanks to "ZBzibing" for testing.

2.4 (01-Jul-2022)
    - Plugin updated to restore Windows L4D1 functionality. Unable to replicate the crash.

2.3 (12-Sep-2021)
    - GameData and plugin updated to ignore Windows L4D1 due to crashing. Seems to be caused by last game update.

2.2b (26-Aug-2021)
    - GameData updated. Fixed possible rare instance of crashing the server.

2.2a (10-Aug-2021)
    - L4D1: GameData updated. Fixed breaking from 1.0.4.0 update.

2.2a (13-Jul-2021)
    - Fixed "Entity -1" errors. Thanks to "HarryPotter" for reporting.

2.1 (04-May-2021)
    - Fixed not being able to interact with objects attached to things other than clients. Thanks to "Proaxel" for reporting.

2.0 (12-Apr-2021)
    - Change from patch method to detour method. Should work completely now.
    - Now requires "DHooks (Experimental dynamic detour support)" extension.

1.0a (25-Feb-2020)
    - Fixed Linux gamedata.

1.0 (24-Feb-2020)
    - Initial release.


Requirements:

Installation:
  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.

Yuno Gasai 09-25-2020 09:30

Re: [L4D & L4D2] Use Priority Patch (1.0) [24-Sep-2020]
 
Hello there :) can you like bring out a plugin that allows you to use the new 2 meele weapons in every map? and that one plugin that allows you to spawn them with the sourcemod menu.
That would be really great :D

Silvers 09-25-2020 13:13

Re: [L4D & L4D2] Use Priority Patch (1.0) [24-Sep-2020]
 
Quote:

Originally Posted by Yuno Gasai (Post 2718837)
Hello there :) can you like bring out a plugin that allows you to use the new 2 meele weapons in every map? and that one plugin that allows you to spawn them with the sourcemod menu.
That would be really great :D

Totally offtopic and wrong place to request. I've already released a bunch of melee spawning plugins and they've been updated to support the new melee weapons. See my sig for plugins link.

Silvers 04-12-2021 11:49

Re: [L4D & L4D2] Use Priority Patch (2.0) [12-Apr-2021]
 
Finally updated. Should be good now, please let me know. Untested detour version in L4D1.

Code:

2.0 (12-Apr-2021)
    - Change from patch method to detour method. Should work completely now.
    - Now requires "DHooks (Experimental dynamic detour support)" extension.


Proaxel 05-03-2021 18:05

Re: [L4D & L4D2] Use Priority Patch (2.0) [12-Apr-2021]
 
This plugin seems to prevent use of certain interactables in some custom campaigns. A couple of examples include the explosives in the first map of Downtown Dine, and the second Red Gem in Resident Evil Side A. Pressing USE on the items has your character do the use animation but nothing else happens, and then you're unable to progress. When I unloaded the plugin I was immediately able to interact with the items like normal.

Is there a way to automatically unload certain plugins when a specific map is loaded without going into the source code?

(and yes I know the author of the RE2 campaign said it should not be played on dedicated servers but I tried it anyway and I was able to complete it with no problems aside from this one)

Silvers 05-04-2021 06:35

Re: [L4D & L4D2] Use Priority Patch (2.0) [12-Apr-2021]
 
Quote:

Originally Posted by Proaxel (Post 2745830)
This plugin seems to prevent use of certain interactables in some custom campaigns. A couple of examples include the explosives in the first map of Downtown Dine, and the second Red Gem in Resident Evil Side A. Pressing USE on the items has your character do the use animation but nothing else happens, and then you're unable to progress. When I unloaded the plugin I was immediately able to interact with the items like normal.

Is there a way to automatically unload certain plugins when a specific map is loaded without going into the source code?

(and yes I know the author of the RE2 campaign said it should not be played on dedicated servers but I tried it anyway and I was able to complete it with no problems aside from this one)

Thanks, should be fixed. Please let me know.

Code:

2.1 (04-May-2021)
    - Fixed not being able to interact with objects attached to things other than clients. Thanks to "Proaxel" for reporting.


Kid_Bandes 05-04-2021 09:43

Re: [L4D & L4D2] Use Priority Patch (2.1) [04-May-2021]
 
Ah, now I know why it was hard to open the saferoom door while using glare plugin, I will try this out.

Proaxel 06-08-2021 21:05

Re: [L4D & L4D2] Use Priority Patch (2.0) [12-Apr-2021]
 
Quote:

Originally Posted by Silvers (Post 2745870)
Thanks, should be fixed. Please let me know.

Excuse the late reply, it all seems to function properly now, thank you for the timely fix!

Silvers 06-18-2021 20:42

Re: [L4D & L4D2] Use Priority Patch (2.0) [12-Apr-2021]
 
Quote:

Originally Posted by Proaxel (Post 2749285)
Excuse the late reply, it all seems to function properly now, thank you for the timely fix!

Thanks.

Hoping more servers will use this since plenty are using Hats plugin which is blocking +USE on players in certain situations/angles.

HarryPotter 07-12-2021 16:31

Re: [L4D & L4D2] Use Priority Patch (2.1) [04-May-2021]
 
PHP Code:

L 07/12/2021 12:01:42: [SMException reportedEntity -(-1is invalid
L 07
/12/2021 12:01:42: [SMBlamingl4d_use_priority.smx
L 07
/12/2021 12:01:42: [SMCall stack trace:
L 07/12/2021 12:01:42: [SM]   [0GetEntPropEnt
L 07
/12/2021 12:01:42: [SM]   [1Line 125l4d_use_priority.sp::GetUsePriority 



All times are GMT -4. The time now is 02:28.

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