Raised This Month: $32 Target: $400
 8% 

Solved [L4D2] Witch target override in better way?


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-10-2021 , 09:47   Re: [L4D2] Witch target override in better way?
Reply With Quote #11

Quote:
Originally Posted by cravenge View Post
You might improve the method on completely removing the fire from the Witch. You could take a look at the Bots Trigger Witch plugin by Silvers.
Nice, I have already added. thanks.
__________________
HarryPotter is offline
larrybrains
Senior Member
Join Date: May 2017
Old 03-13-2021 , 12:57   Re: [L4D2] Witch target override in better way?
Reply With Quote #12

Quote:
Originally Posted by HarryPotter View Post
Nice, I have already added. thanks.
Is there a way to do this while accounting for the witch burn time?

The way fire works on the witch is that she burns for a set amount of time (z_witch_burn_time 15 seconds = default) before she dies from the fire, regardless of how much health she has. If you light her on fire with full health, she will burn for 15 seconds, or if you light her on fire with 10% health, she will also burn for 15 seconds before she dies.

So when you extinguish her and then re-light her, the burn timer starts over, and you could have a witch burning for 30 or 45 seconds without her dying.

EDIT: You can of course still kill her by shooting/meleeing her while she is on fire before the burn timer runs out, but survivor players often assume that the witch will burn to death and will sometimes just run backwards and let her burn while she chases without trying to shoot/melee her.

Last edited by larrybrains; 03-13-2021 at 13:42. Reason: Added some info
larrybrains is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-22-2022 , 01:39   Re: [L4D2] Witch target override in better way?
Reply With Quote #13

some problem here...overriding witch wouldnt be knock back, like propane tank etc.
and they always spawn as standing, when turn to "unrelentless witch" problems gone
__________________

Last edited by NoroHime; 01-22-2022 at 02:25.
NoroHime is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-22-2022 , 14:36   Re: [L4D2] Witch target override in better way?
Reply With Quote #14

Quote:
Originally Posted by NoroHime View Post
some problem here...overriding witch wouldnt be knock back, like propane tank etc.
and they always spawn as standing, when turn to "unrelentless witch" problems gone
Really? I test this plugin alone and witch can be knock back by propane tank, awp, explosive ammo even if witch is following survivor.
Check v1.4 version and try again.

Quote:
Originally Posted by larrybrains View Post
Is there a way to do this while accounting for the witch burn time?
Witch target override Improved version 1.4 [2022/1/23]
-Improve and optimize code
-Witch will not follow survivor if there is a wall between witch and survivor.
-Witch will not follow survivor if survivor standing on the higher place.
-Witch burns for a set amount of time and die. (z_witch_burn_time 15 seconds = default)

PHP Code:
// If 1, the burning witch restarts and recalculates burning time if she is allowed to chased another target. (0=after witch burns for a set amount of time z_witch_burn_time, she dies from the fire)
witch_target_override_recalculate_burn_time "0" 
__________________

Last edited by HarryPotter; 01-22-2022 at 14:41.
HarryPotter is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 05-03-2022 , 01:13   Re: [L4D2] Witch target override in better way?
Reply With Quote #15

Quote:
Originally Posted by HarryPotter View Post
...
Hi Harry, nice plugin. I just have a question, what does
Code:
witch_target_override_incap_health_add "400"
and
witch_target_override_kill_health_add "1000"
actually do? Does those cvar "heal" the witch when they incap/kill a survivors or does it stand for value of the witch's health which where she allowed to chase another survivors?
__________________

Looking for some fun!
thewintersoldier97 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-03-2022 , 21:00   Re: [L4D2] Witch target override in better way?
Reply With Quote #16

Quote:
Originally Posted by thewintersoldier97 View Post
Hi Harry, nice plugin. I just have a question, what does
Code:
witch_target_override_incap_health_add "400"
and
witch_target_override_kill_health_add "1000"
actually do?
Heal Witch Health, witch hp > 1000 possible
__________________

Last edited by HarryPotter; 05-03-2022 at 21:00.
HarryPotter is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 05-04-2022 , 02:44   Re: [L4D2] Witch target override in better way?
Reply With Quote #17

Quote:
Originally Posted by HarryPotter View Post
Heal Witch Health, witch hp > 1000 possible
Got it, thank you
__________________

Looking for some fun!
thewintersoldier97 is offline
larrybrains
Senior Member
Join Date: May 2017
Old 06-01-2022 , 23:09   Re: [L4D2] Witch target override in better way?
Reply With Quote #18

Quote:
Originally Posted by HarryPotter View Post
Witch target override Improved version 1.5 [2022/2/13]

Latest version always here
I was looking at your code and it looks like this plugin also unsticks the witch when she gets stuck or am I mistaken?
larrybrains is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 06-01-2022 , 23:33   Re: [L4D2] Witch target override in better way?
Reply With Quote #19

Quote:
Originally Posted by larrybrains View Post
I was looking at your code and it looks like this plugin also unsticks the witch when she gets stuck or am I mistaken?
I did not unstick witch, just make her walk and move
__________________
HarryPotter 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 19:33.


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