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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-06-2020 , 02:03   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #11

Can you add the possibility to focus on the Survivor with More / Less life (normal HP + temporary [aka pills/adrenenaline])?
__________________
Marttt is offline
tRololo312312
Senior Member
Join Date: Apr 2015
Old 04-07-2020 , 03:11   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #12

Quote:
L 04/07/2020 - 05:23:48: [SM] Exception reported: Invalid index 0 (count: 0)
L 04/07/2020 - 05:23:48: [SM] Blaming: l4d_target_override.smx
L 04/07/2020 - 05:23:48: [SM] Call stack trace:
L 04/07/2020 - 05:23:48: [SM] [0] ArrayList.Get
L 04/07/2020 - 05:23:48: [SM] [1] Line 879, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_target_override.sp::ChooseVictim
L 04/07/2020 - 05:23:49: [SM] Exception reported: Invalid index 0 (count: 0)
L 04/07/2020 - 05:23:49: [SM] Blaming: l4d_target_override.smx
L 04/07/2020 - 05:23:49: [SM] Call stack trace:
L 04/07/2020 - 05:23:49: [SM] [0] ArrayList.Get
L 04/07/2020 - 05:23:49: [SM] [1] Line 879, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_target_override.sp::ChooseVictim
L 04/07/2020 - 05:23:49: [SM] Exception reported: Invalid index 0 (count: 0)
L 04/07/2020 - 05:23:49: [SM] Blaming: l4d_target_override.smx
L 04/07/2020 - 05:23:49: [SM] Call stack trace:
L 04/07/2020 - 05:23:49: [SM] [0] ArrayList.Get
L 04/07/2020 - 05:23:49: [SM] [1] Line 879, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_target_override.sp::ChooseVictim
L 04/07/2020 - 05:23:49: [SM] Exception reported: Invalid index 0 (count: 0)
L 04/07/2020 - 05:23:49: [SM] Blaming: l4d_target_override.smx
L 04/07/2020 - 05:23:49: [SM] Call stack trace:
L 04/07/2020 - 05:23:49: [SM] [0] ArrayList.Get
L 04/07/2020 - 05:23:49: [SM] [1] Line 879, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\l4d_target_override.sp::ChooseVictim
Whats wrong?
tRololo312312 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-07-2020 , 03:39   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #13

Quote:
Originally Posted by tRololo312312 View Post
Whats wrong?
Code:
2.5 (07-Apr-2020)
    - Added cvar "l4d_target_override_type" to select which method to search for survivors.
    - Fixed "Invalid index 0" when no valid targets are available. Thanks to "tRololo312312".

I haven't actually tested with "l4d_target_override_type" (previous versions used method "1") but I think it should be fine. @sxslmk let me know if option "2" fixes the problem you showed.

@Marttt can you describe more? You want something like for example order option "8" to target survivors with the least health, "9" to target ones with the most health? Combining main and temporary health for the calculation?
__________________

Last edited by Silvers; 04-07-2020 at 03:40.
Silvers is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-07-2020 , 06:34   Re: [L4D & L4D2] Target Override (2.5) [07-Apr-2020]
Reply With Quote #14

Yes, that's exactly what I meant.

Also a pummeled survivor priority would be nice for the spitter class [L4D2 only], usually in versus is very common to combo (Charger + Spitter)

Anyway, it is just a suggestion, thanks for this plugin, it opens a lot of possibilities and improves the AI.
__________________
Marttt is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-07-2020 , 07:06   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #15

Quote:
Originally Posted by Silvers View Post
This plugin checks for nearby (supposed to be nearby visible but seems it might catch those also not visible) survivors, then sets the target according to the preferences specified. If none of those criteria match it defaults to the games own choose victim system. If that bug occurs without the plugin then theres nothing wrong on my end. Maybe I can add an option to search through all survivors from the nearest and not just visible ones.

Edit: sent PM with link to test version with above mentioned option.
Sorry for the late reply, but it doesn't seem to be fixed:


The two jockeys in the upper left corner don't move. After I appeared in front of them through the wall and they started to move and attack me. I think it should be the problem of the game itself.
sxslmk is offline
tRololo312312
Senior Member
Join Date: Apr 2015
Old 04-07-2020 , 10:21   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #16

Quote:
Originally Posted by sxslmk View Post
The two jockeys in the upper left corner don't move. After I appeared in front of them through the wall and they started to move and attack me. I think it should be the problem of the game itself.
FYI, that backroom where jockeys are has unconnected NAV, so any AI cant leave that room, tanks suicide there aswell, its a mistake by Valve.
tRololo312312 is offline
tRololo312312
Senior Member
Join Date: Apr 2015
Old 04-07-2020 , 10:48   Re: [L4D & L4D2] Target Override (2.5) [07-Apr-2020]
Reply With Quote #17

Does last attacker exclude burn damage or not?
tRololo312312 is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-07-2020 , 11:03   Re: [L4D & L4D2] Target Override (2.4) [01-Apr-2020]
Reply With Quote #18

Quote:
Originally Posted by tRololo312312 View Post
FYI, that backroom where jockeys are has unconnected NAV, so any AI cant leave that room, tanks suicide there aswell, its a mistake by Valve.
So when I spawn a lot of SI(12+), it becomes like this:



The stuck SI will slowly increase until all SI get stuck...

I know Tank anti-stuck (anti-block)
can teleport tank to survivors when they get stuck, hope someone could make one like that...

And I also tried to change z_spawn_old to z_spawn, and set "sm_cvar z_spawn_const_distance" to positive numbers, this way could change the spawn point by z_spawn_old but it brings another problem that it will spawn SI in the wall or underground. The results did not change.

EDIT: Fixed by removing NAV areas.

Last edited by sxslmk; 04-12-2020 at 23:06.
sxslmk is offline
tRololo312312
Senior Member
Join Date: Apr 2015
Old 04-07-2020 , 11:12   Re: [L4D & L4D2] Target Override (2.5) [07-Apr-2020]
Reply With Quote #19

Ok i noticed a bug when playing Tanks Playground. Bots died and i defibbed one of them, Tanks ignored the bot despite being right next to the bot, until i got incapped.
tRololo312312 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-07-2020 , 11:22   Re: [L4D & L4D2] Target Override (2.5) [07-Apr-2020]
Reply With Quote #20

Depends on the priority order you set, switching delay etc. I blame user error, you're on your own to configure it.
__________________
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 06:33.


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