View Single Post
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 01-12-2020 , 15:56   Re: [L4D2]Witch fixes[Left 4 Fix]
Reply With Quote #9

Quote:
Originally Posted by xZk View Post
Maybe it can be relatively fixed, if at the moment the player is idle, create damage to the witch (possibly ignite) from the player's bot and thus avoid for a moment unless he loses his target.
Something similar to what this does https://forums.alliedmods.net/showthread.php?p=1621505
I already thought about that but if the witch is on fire WitchBurn::WitchBurn behavior is already active and you can nolonger restartle her(even bile don't work), you would need to recreate the witch as a workaround
for this I accept no workarounds only fixes.

You can set the harasser in an offset for the witch and set rage to 100% and she will go after who ever is the target(if she is damaged by someone else they will take priority) but still not work for fire :c

Quote:
Originally Posted by Dragokas View Post
Is witch_harasser_set receive correct target?
If you use the target patch it should be always correct harasser event
The witch harasser is stored at offset 7628‬ as a EHandle.

so you can get with by reading
Code:
LoadEntityHandleFromAddress(GetEntityAddress(witch) + view_as<Address>(7628‬));


EDIT:
For anyone who don't know this the witch has a timeout timer for burning that deals 9999 damage on timeout of 30 sec by default
This is the cvar for it it only effects the witch, not anything else the game makes it seem like it effects common from the name.
Code:
z_burning_lifetime
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 01-12-2020 at 22:57.
Lux is offline