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

[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 on fire
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, 34 views)
File Type: txt tEntDev_NotAngry.txt (66.9 KB, 37 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
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).
__________________
Psyk0tik is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
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 & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 15:39.


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