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

[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 10-04-2022 , 08:55   Re: [L4D & L4D2] Target Override (2.20) [03-Oct-2022]
Reply With Quote #111

Quote:
Originally Posted by morzlee View Post
Is there any way to add the upper limit of survivors being selected as targeted on top of the targeted option, because the option will be harder to use if the server SI are more than 4.
If can, can you add a Native to other plugins to get whether the survivor has exceeded the targeted limit and a native to set targeted limit.
I already wrote my own plugin to implement it, but I don't know if there will be any conflict with target_override.
It would be better if can implement in same plugins.
SI_Target_limit
To set something like "targeted" "2" to allow 2 Special Infected to attack the same person at once? or "3" for 3 etc? Can implement that when I have time.
__________________
Silvers is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 10-04-2022 , 19:19   Re: [L4D & L4D2] Target Override (2.20) [03-Oct-2022]
Reply With Quote #112

Quote:
Originally Posted by Silvers View Post
To set something like "targeted" "2" to allow 2 Special Infected to attack the same person at once? or "3" for 3 etc? Can implement that when I have time.
Yes, thanks Silvers.
morzlee is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 10-06-2022 , 19:03   Re: [L4D & L4D2] Target Override (2.20) [03-Oct-2022]
Reply With Quote #113

This looks very interesting. I want to try this one and I have several questions.

If I set it up this way
Code:
"smoker"
	{
		"order"		"13,11,12,14"
		"pinned"	"15"
		"incap"		"3"
		"voms"		"0"
		"voms2"		"1"
		"range"		"0.0"
		"dist"		"250.0"
		"wait"		"2.0"
		"last"		"0"
		"safe"		"1"
		"targeted"	"0"
	}
Does it means he will walk through other survivors trying to reach the one who's further ahead (and getting killed in the process)? Would it be possible to allow spawning near the desired target, if conditions are met?

Is there plans to support common infected targeting?

How hard would it be to support the following targets?
  • Survivor furthest behind
  • Survivor with flashlight on
  • Survivor running (ignore walking or crawling survivors, as in, using +duck or +speed)

(last two ones only if commons are supported)

Thanks for your hard work
__________________

Last edited by gabuch2; 10-06-2022 at 19:10.
gabuch2 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-06-2022 , 21:20   Re: [L4D & L4D2] Target Override (2.20) [03-Oct-2022]
Reply With Quote #114

Quote:
Originally Posted by gabuch2 View Post
Does it means he will walk through other survivors trying to reach the one who's further ahead (and getting killed in the process)?
Yes they will walk passed others.

Quote:
Originally Posted by gabuch2 View Post
Would it be possible to allow spawning near the desired target, if conditions are met?
No this is not about spawning, they have to be alive to trigger the targeting system.

Quote:
Originally Posted by gabuch2 View Post
Is there plans to support common infected targeting?
No, too different.

Quote:
Originally Posted by gabuch2 View Post
How hard would it be to support the following targets?
  • Survivor furthest behind
  • Survivor with flashlight on
  • Survivor running (ignore walking or crawling survivors, as in, using +duck or +speed)
They could all be added. If you only want the last 2 added for CI then I'll only add the 1st for SI. - I'll just add them all, simple enough.



New update soon.
__________________

Last edited by Silvers; 10-06-2022 at 21:36.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-08-2022 , 01:02   Re: [L4D & L4D2] Target Override (2.21) [08-Oct-2022]
Reply With Quote #115

Code:
2.21 (08-Oct-2022)
    - Added option "15" to target the Survivor furthest behind in flow distance. Requested by "gabuch2"
    - Added option "16" to target a Survivor with their flashlight on. Requested by "gabuch2"
    - Added option "17" to target a Survivor who is running (not crouched or walking). Requested by "gabuch2"

    - Added new include file for 3rd party plugins to use the forward and natives.
    - Added natives "L4D_TargetOverride_GetOption" and "L4D_TargetOverride_SetOption" for 3rd party plugins to get or set some option values. Requested by "morzlee".
    - Added native "L4D_TargetOverride_GetValue" for 3rd party plugins to get or set client values. Requested by "morzlee".
    - Added forward "L4D_OnTargetOverride" for 3rd party plugins to trigger every frame or whenever someone is being targeted. Requested by "morzlee".
    - Added cvar "l4d_target_override_forward" to enable or disabled the forward. Disabled by default to save CPU cycles.

    - Changed "targeted" option to use the set value as a maximum number of Special Infected allowed to target someone. Requested by "morzlee".
    - Fixed option "14" not working in L4D1. Thanks to "axelnieves2012" for fixing.
    - Increased string buffer and maximum orders in case all options are used in a single "order" data key value string.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2022 , 16:07   Re: [L4D & L4D2] Target Override (2.22) [20-Oct-2022]
Reply With Quote #116

Code:
2.22 (20-Oct-2022)
    - Fixed various issues with the "pinned" option breaking targeting. Thanks to "morzlee" for reporting and lots of help testing.
__________________
Silvers is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 10-21-2022 , 11:42   Re: [L4D & L4D2] Target Override (2.22) [20-Oct-2022]
Reply With Quote #117

Nice work
morzlee is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 10-21-2022 , 15:13   Re: [L4D & L4D2] Target Override (2.22) [20-Oct-2022]
Reply With Quote #118

For some reason tanks don't target other tanks that are vomited before attacking survivors first.

PHP Code:
"target_patch"
{
    
"tank"
    
{
        
"order"        "6,7,2,3,1,4,5" // Preference: Last attacker, Vomited Special Infected, then Vomited Survivors, then Incapped, then normal Survivors.
        
"pinned"    "15"
        "incap"        "1"
        "voms"        "1"
        "voms2"        "1"
        "range"        "0.0"
        "dist"        "250.0"
        "wait"        "2.0"
        "last"        "0"
        "time"        "2.0"
        "safe"        "1"
        "targeted"    "0"
    
}

Spoiler

Last edited by Tonblader; 10-21-2022 at 15:46.
Tonblader is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-21-2022 , 19:22   Re: [L4D & L4D2] Target Override (2.22) [20-Oct-2022]
Reply With Quote #119

Even when fixing the targeting problem they just stand there staring at each other without attacking. I guess something would have to be patched in the game to make it work. The tank will also not attack any other SI and just stands there, but when far enough away the Tank will throw rocks at them. I don't have time to look for what's preventing the Tank from attacking someone, one day maybe.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-28-2022 , 08:40   Re: [L4D & L4D2] Target Override (2.23) [28-Oct-2022]
Reply With Quote #120

Code:
2.23 (28-Oct-2022)
    - Fixed Special Infected not being able to target other SI. Tank vs SI is still not capable. Thanks to "Tonblader" for reporting.
    - Fixed the "voms" and "voms2" options not working correctly.
    - Plugin now prevents the Tank attempting to attack vomited Special Infected, since the Tank will just stand there.

If anyone knows how/where to patch the Tank to make them attack Special Infected that would be appreciated. Currently the Tank seems to just stand there not punching the SI when that's their victim.
__________________
Silvers is offline
Reply



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 05:15.


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