Raised This Month: $41 Target: $400
 10% 

[L4D] How to detect Is Tank Angry?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 04-08-2021 , 11:13   [L4D] How to detect Is Tank Angry?
Reply With Quote #1

Hi,

is there some prop or any other way?

Case: [Coop] Tank is spawned, but is not angry yet.
He becomes angry as soon as some survivor gets to him close enough, so he begins to chase survivor.

So, how to detect (yes / no) if Tank angry (chase anybody)?

PS. I tried to dump tank entity props with tEntDev,
but I don't see anything reliable in differences.

PPS. Previously, I used "m_zombieState", but it seems it's not reliable,
because it becomes 1 -> 0 as soon as m_lookatPlayer becomes X -> -1 (when tank losing the target, like player hides behind the wall).
Attached Files
File Type: txt tEntDev_Angry.txt (66.9 KB, 9 views)
File Type: txt tEntDev_NotAngry.txt (66.9 KB, 5 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch) (my New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 04-08-2021 , 22:20   Re: [L4D] How to detect Is Tank Angry?
Reply With Quote #2

You can check my “bIsTankIdle” function in Mutant Tanks. The Tank has the “TankIdle” action when he spawns in and it changes to “TankAttack” when a survivor triggers him. There’s a rare bug in both games where the Tank can lose his target and he just stands there. His action in that scenario would just be “TankBehavior” because his behavior == action (null).
__________________
AFK like JFK
Crasher_3637 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 04-09-2021 , 05:47   Re: [L4D] How to detect Is Tank Angry?
Reply With Quote #3

wow, very nice work on that! Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch) (my New server L4D2)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas 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 14:23.


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