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

Solved [L4D2] Blocking 300 damage gain from charger instant kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-28-2022 , 10:28   [L4D2] Blocking 300 damage gain from charger instant kill
Reply With Quote #1

It sounds easy, as the 300 damage you get into score ( and tank tickets ) is a damage calculator, but I tried: award_earned, player_hurt, player_hurt_concise, player_falldamage, SDKHook_OnTakeDamage, SDKHook_TraceAttack. None of them point to a charger, at best they will point to the trigger_hurt / the world.

Reason is I want to replace the instant kill system Valve uses with my karma plugin that not only uses literally every single type of instant kill, but also on karma charges is more accurate, as on Blood Harvest's first chapter you never get score ( probably because you must die for it to count )

Additional resources that didn't help:

net_showevents 2 --> Does not point to a charger in any way.

z_max_survivor_damage : 300 : , "sv", "launcher" : --> Indicates an instant kill charge does the fall damage ( over 500 damage usually ) and gets capped to 300 but that's not the case.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_456.png
Views:	58
Size:	63.3 KB
ID:	194860  
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 05-24-2022 at 13:43.
eyal282 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 05-24-2022 , 13:44   Re: [L4D2] Blocking 300 damage gain from charger instant kill
Reply With Quote #2

https://github.com/eyal282/l4d2-karm...ystem.sp#L1492

Note, I have no clue whether or not this special assign of damage accounts for tank tickets.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 23:07.


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