AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020] (https://forums.alliedmods.net/showthread.php?t=320883)

Silvers 01-13-2020 17:20

[L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
4 Attachment(s)
THIS PLUGIN IS OBSOLETE. USE THIS INSTEAD: [L4D & L4D2] Target Override



Related Plugins:

About:
  • Blocks specified Special Infected from targeting incapacitated players.
  • Does not account for line of sight which would need constant inefficient trace rays.
  • Trace rays could be fired every half a second or so. Only request if really needed.


Cvars:

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

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_target_patch_allow "1"

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

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

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

// Block these Special Infected from targeting incapped players: 1=Smoker, 2=Boomer, 4=Hunter, 8=Tank, 15=All. Add numbers together.
l4d_target_patch_targets "12"

// Target Patch plugin version.
l4d_target_patch_version 



Changes:
Code:

1.1 (14-Jan-2020)
    - Fixed invalid entity. Thanks to "Venom1777" for reporting.

1.0 (13-Jan-2020)
    - Initial release.



Requirements:

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 .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

Venom1777 01-14-2020 00:29

Re: [L4D] Target Patch - Ignore Incapped (1.0) [13-Jan-2020]
 
nfo (map "l4d_airport01_greenhouse") (file "errors_20200113.log")
L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx
L 01/13/2020 - 22:55:43: [SM] Call stack trace:
L 01/13/2020 - 22:55:43: [SM] [0] GetEntProp
L 01/13/2020 - 22:55:43: [SM] [1] Line 251, C:\Servers\L4D\left4dead\addons\sourcemod\scr ipting\l4d_target_patch.sp::ChooseVictimPost
L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx
L 01/13/2020 - 22:55:43: [SM] Call stack trace:
L 01/13/2020 - 22:55:43: [SM] [0] GetEntProp
L 01/13/2020 - 22:55:43: [SM] [1] Line 251, C:\Servers\L4D\left4dead\addons\sourcemod\scr ipting\l4d_target_patch.sp::ChooseVictimPost
L 01/13/2020 - 22:55:43: [SM] Exception reported: Entity -1 (-1) is invalid
L 01/13/2020 - 22:55:43: [SM] Blaming: l4d_target_patch.smx

Silvers 01-14-2020 07:22

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Thanks, fixed. I often intentionally avoid fully validating things, so I can see exactly what values the game is chucking out and where a stricter check is required.

ReCreator 01-16-2020 16:29

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Could you force Tank attack incapped player when he get vomited

HarryPotter 01-20-2020 04:26

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Quote:

Originally Posted by ReCreator (Post 2680547)
Could you force Tank attack incapped player when he get vomited

In l4d1, if a player get vomited, Tank would only attack him no matter incapped or not

HarryPotter 01-20-2020 05:00

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Nice plugin, I always want this.
works in l4d1 windows and linux


I downloaded and modified function, here is my thought.
In l4d1, Tank would still target survivor no matter he is pinned by smoker & hunter, which is very annoying in versus mode.
so I add some codes below, tank will now ignore incapped or pinned players.:D
Spoiler


well. not perfect for me, tank would still change target if someone(non-incapped && non-pinned) get vomited.
Does anyone know how to tell player is on vomited effect?

Silvers 01-20-2020 08:38

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Quote:

Originally Posted by fbef0102 (Post 2680971)
Does anyone know how to tell player is on vomited effect?

"m_isIT"

Dragokas 01-20-2020 13:53

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Nice plugin, works well.

Just first deceitful feeling about wrong functionality when tank is attacking incapped player because he is lies too close to the tank's way to another player.

HarryPotter 01-21-2020 06:39

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
Quote:

Originally Posted by Silvers (Post 2680991)
"m_isIT"

Got it!
I already make special infected only target the nearest survivor who is not incapped,pinned, or hanging from ledge.
Ignore vomit effect, meaning tank finally won't change target to someone who get vomited.

Spoiler

jamalsheref2 02-17-2020 20:35

Re: [L4D] Target Patch - Ignore Incapped (1.1) [14-Jan-2020]
 
what about fixing the ai hunters from targeting a pounce or smoked survivor in l4d1.


All times are GMT -4. The time now is 16:40.

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