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

[L4D & L4D2] Target Override (2.29) [25-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-16-2021 , 00:18   Re: [L4D & L4D2] Target Override (2.10) [15-Feb-2021]
Reply With Quote #51

Quote:
Originally Posted by axelnieves2012 View Post
Hi, I love this plugin!! I would like to request a new feature so Special Infecteds dont target survivors on end-saferoom.
Many people make Tanks follow them to saferoom and them close the door, then Tank keeps hitting the door, and people inside keep shooting him till death.

I would like Special Infecteds target outside survivors.
What do you think about this idea for future releases?
Code:
2.10 (15-Feb-2021)
    - Added option "safe" to control if Survivors can be attacked when in a saferoom. Requested by "axelnieves2012".
Added.
__________________
Silvers is offline
kooper990
Member
Join Date: Jan 2021
Old 02-28-2021 , 22:18   Re: [L4D & L4D2] Target Override (2.10) [15-Feb-2021]
Reply With Quote #52

Is it possible to force the tank to switch to another living target after attacking the incapped survivor for certain amount of time? I tried to tinker with the wait value if it does anything, but nothing as far as I see. My priority number order: "3,7,1,2,4,5,6,8,9"
kooper990 is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 03-01-2021 , 02:36   Re: [L4D & L4D2] Target Override (2.10) [15-Feb-2021]
Reply With Quote #53

Can you show a small example of how to easily rewrite a target for a particularly infected one without: DHooks Extension using the BossZombiePlayerBot :: ChooseVictim function?
Gold Fish is offline
tRololo312312
Senior Member
Join Date: Apr 2015
Old 04-12-2021 , 13:12   Re: [L4D & L4D2] Target Override (2.8) [17-May-2020]
Reply With Quote #54

Quote:
Originally Posted by BHaType View Post
L4D2 only

Spoiler
It seems tank rocks still fly towards minigun users despite tank itself does not.
tRololo312312 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-12-2021 , 15:02   Re: [L4D & L4D2] Target Override (2.11) [12-Apr-2021]
Reply With Quote #55

Quote:
Originally Posted by kooper990 View Post
Is it possible to force the tank to switch to another living target after attacking the incapped survivor for certain amount of time? I tried to tinker with the wait value if it does anything, but nothing as far as I see. My priority number order: "3,7,1,2,4,5,6,8,9"
Not something I really want to add. Wait value means something different.


Quote:
Originally Posted by Gold Fish View Post
Can you show a small example of how to easily rewrite a target for a particularly infected one without: DHooks Extension using the BossZombiePlayerBot :: ChooseVictim function?
Not easily done if possible at all, needs to be detoured. Just use the plugin, it's fast enough.


Quote:
Originally Posted by tRololo312312 View Post
It seems tank rocks still fly towards minigun users despite tank itself does not.
New update to specify when to attack players on minigun so you can avoid them completely.


Code:
2.11 (12-Apr-2021)
    - Added priority order option "11" to target players using a Mini Gun.
__________________

Last edited by Silvers; 04-12-2021 at 15:03.
Silvers is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 04-12-2021 , 22:31   Re: [L4D & L4D2] Target Override (2.10) [15-Feb-2021]
Reply With Quote #56

Quote:
Originally Posted by Gold Fish View Post
Can you show a small example of how to easily rewrite a target for a particularly infected one without: DHooks Extension using the BossZombiePlayerBot :: ChooseVictim function?
This is pointless because the function will rewrite the target anyway so detour is the best option.
__________________
cry

Last edited by BHaType; 04-12-2021 at 22:32.
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 04-13-2021 , 06:27   Re: [L4D & L4D2] Target Override (2.11) [12-Apr-2021]
Reply With Quote #57

Quote:
Originally Posted by Silvers View Post
Code:
2.11 (12-Apr-2021)
    - Added priority order option "11" to target players using a Mini Gun.
Hell yes, thanks silvers
__________________
HarryPotter is offline
larrybrains
Senior Member
Join Date: May 2017
Old 04-15-2021 , 20:58   Re: [L4D & L4D2] Target Override (2.11) [12-Apr-2021]
Reply With Quote #58

I've got the following settings and tanks are still attacking incapped boomed survivors.

Code:
"target_patch"
{
	"tank"
	{
		"order"		"9,2,7,1,8" // Preference: lowest health survivor, vomited survivor, last attacker, normal survivor, highest health survivor.
		"pinned"	"15"
		"incap"		"0"
		"voms"		"0"
		"voms2"		"0"
		"range"		"0.0"
		"wait"		"2.0"
		"last"		"1"
	}
}
Although tank does stop attacking a downed boomed survivor shortly after another survivor shoots the tank, I would prefer the tank to not attack incapped survivors or to have incapped survivors be the absolute lowest priority for tank and for it to only target them if all players are incapped.

How do I set something like that up?

Last edited by larrybrains; 04-15-2021 at 21:11. Reason: clarified a thing
larrybrains is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-16-2021 , 10:37   Re: [L4D & L4D2] Target Override (2.11) [12-Apr-2021]
Reply With Quote #59

Quote:
Originally Posted by larrybrains View Post
I've got the following settings and tanks are still attacking incapped boomed survivors.

Code:
"target_patch"
{
	"tank"
	{
		"order"		"9,2,7,1,8" // Preference: lowest health survivor, vomited survivor, last attacker, normal survivor, highest health survivor.
		"pinned"	"15"
		"incap"		"0"
		"voms"		"0"
		"voms2"		"0"
		"range"		"0.0"
		"wait"		"2.0"
		"last"		"1"
	}
}
Although tank does stop attacking a downed boomed survivor shortly after another survivor shoots the tank, I would prefer the tank to not attack incapped survivors or to have incapped survivors be the absolute lowest priority for tank and for it to only target them if all players are incapped.

How do I set something like that up?
Thanks, sounds like a bug in the plugin. I noticed this might be an issue with some strange logic stuff when I was reviewing the code last update but didn't follow the logic or look into it. Will test and fix when I can.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-20-2021 , 08:29   Re: [L4D & L4D2] Target Override (2.12) [20-Apr-2021]
Reply With Quote #60

It's fixed from my testing, was an issue with highest/lowest health not evaluating the rest of the options.

Code:
2.12 (20-Apr-2021)
    - Changed cvar "l4d_target_override_type" adding type "3" to order range by nav flow distance.
    - This requires the "Left4DHooks" plugin and used only when the plugin is detected. Maybe unreliable due to unreachable flow areas.

    - Fixed "Highest Health" and "Highest Health" orders not validating the clients correctly, Thanks to "larrybrains" for reporting.
    - Fixed "Highest Health" and "Highest Health" config orders description being flipped.
__________________
Silvers 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 12:39.


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