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

[L4D2] Restore L4D1 Tank/Hunter Behavior?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sev
Veteran Member
Join Date: May 2010
Old 11-21-2019 , 10:10   [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #1

Don't think I've seen this done yet. We have legs and ragdolls and pretty much everything else from L4D1 at this point.

In L4D2, the hunter and the tank only go for downed survivors if they are vomitted or if they are directly in front of them. Otherwise they ignore them. This was changed from their behavior in L4D1.

In L4D1, the hunter and the tank would prioritize incapped survivors at all times, regardless of vomit or if they were directly in front of them. What im looking for is a return of these features. The tank would continue to pound downed survivors to kill them and then go after other survivors and the hunters would pounce incapped survivors to finish them off and then go after other survivors.

With detours and whatnot, I'm thinking this could be doable now.

Last edited by Sev; 11-21-2019 at 10:12.
Sev is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 02:47   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #2

This is doable now that Left 4 Downtown 2 has that nifty "L4D2_OnChooseVictim" forward.

Last edited by cravenge; 11-22-2019 at 02:47.
cravenge is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 11-22-2019 , 08:27   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #3

Quote:
Originally Posted by cravenge View Post
This is doable now that Left 4 Downtown 2 has that nifty "L4D2_OnChooseVictim" forward.
If only left 4 downtown 2 actually worked and didn't have 20 different versions that nobody knows in what version of sourcemod they are supposed to run.
Alex101192 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 09:02   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #4

Quote:
Originally Posted by Alex101192 View Post
If only left 4 downtown 2 actually worked and didn't have 20 different versions that nobody knows in what version of sourcemod they are supposed to run.
The one I'm currently using is Accelerator's latest version and a different gamedata with all the working signatures for Windows.

Anyways, here you go Sev.
I think this should restore that behavior you're looking for:

Last edited by cravenge; 11-22-2019 at 19:24.
cravenge is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-22-2019 , 09:06   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #5

I think is possible to achieve that using something like in this link SI_Targeting.sp

PHP Code:
ScriptCommand("CommandABot({cmd=%i,bot=GetPlayerFromUserID(%i),target=GetPlayerFromUserID(%i)})"CMD_ATTACKbotIDtargetID); // attack 
If you search for "CommandABot" in the forum you will find other examples of plugins.
__________________

Last edited by Marttt; 11-22-2019 at 09:09.
Marttt is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 09:16   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #6

Quote:
Originally Posted by Marttt View Post
[...]
That would still be overridden by the default behavior in L4D2 cuz how a bot SI decides its target is determined every frame. That also explains why they change targets whenever someone is vomited.

Also, updated my post.

Last edited by cravenge; 11-22-2019 at 09:20.
cravenge is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-22-2019 , 14:17   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #7

Maybe checking if there is some player vomitted on and then run the command on every frame (can be slow) but maybe it work (didn't test)
__________________
Marttt is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 19:21   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #8

That could work but it might produce some other unexpected results like the SI moving back and forth between the vomited survivors and the one we're forcing it to attack.

Off-topic: I was able to use the Charger Chestbump Patch plugin for Windows with the use of the wildcarded signature for HandleCustomCollision since the one in the gamedata I have for L4DT2 to work is the original.

Last edited by cravenge; 11-22-2019 at 19:28.
cravenge is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-13-2020 , 06:43   Re: [L4D2] Restore L4D1 Tank/Hunter Behavior?
Reply With Quote #9

Done. Hunter + Tank target any nearest survivor. https://forums.alliedmods.net/showthread.php?t=320871
__________________
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 22:35.


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