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

L4D2 Calculate Witch fire damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
3ipKa
Member
Join Date: Jul 2013
Old 09-22-2022 , 03:02   L4D2 Calculate Witch fire damage
Reply With Quote #1

Greetings ) I'm faced with problem I can't correctly calculate fire damege to witch. I used infected_hurt, OnTakeDamageAlive and OnTakeDamagePost and got strange results: for examle only 75HP from fire in total. I tried even witch_damage_announce from SirPleas for test, gunfire seems to be correct, but not fire damage. Tried on almost clean server. IDK, maybe I miss something and problem is on my side...

Last edited by 3ipKa; 09-22-2022 at 06:10.
3ipKa is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-22-2022 , 10:53   Re: L4D2 Calculate Witch fire damage
Reply With Quote #2

I guess there is some kind special behaviour of this.
- Fire give 1 damage per hit (and maybe not every time)
- After fire damage 75 hit -> insta kill 9999 dmg
Attached Files
File Type: log witch.log (69.4 KB, 42 views)
File Type: log shoot.log (25.6 KB, 43 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 09-22-2022 at 10:59. Reason: 75 hit ?
Bacardi is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-24-2022 , 03:32   Re: L4D2 Calculate Witch fire damage
Reply With Quote #3

Witch die in 15 seconds 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.

PHP Code:
z_witch_burn_time                        15       : , "sv""cheat"  
__________________
HarryPotter is offline
3ipKa
Member
Join Date: Jul 2013
Old 09-24-2022 , 08:28   Re: L4D2 Calculate Witch fire damage
Reply With Quote #4

Well ok, m_checkpointDamageToWitch gives ~75 damage too. So it turns out that witch realy has own damage behaviour, because at the same time you make more damage to tank from fire... For some reason i thought the same applies to witch )
Thank you guys for help.
3ipKa is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-24-2022 , 09:23   Re: L4D2 Calculate Witch fire damage
Reply With Quote #5

it has too
https://github.com/ambaca/Bacardi-Du...xt#L5928-L5944
__________________
Do not Private Message @me
Bacardi is offline
3ipKa
Member
Join Date: Jul 2013
Old 09-24-2022 , 10:06   Re: L4D2 Calculate Witch fire damage
Reply With Quote #6

Yeah, but if you ignite Tank, you got all 8000(default value) of damage in total. I didn't test, but I guess it will be all 8000 even if tank_burn_duration_expert was set to 10. Witch has 1000 hp on default, so 76 hp from fire (considering she burned to death from your fire) looks in my opinion some strange logic.

Last edited by 3ipKa; 09-24-2022 at 10:20.
3ipKa 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 21:24.


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