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

[L4D2] No headshot damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoGetSomeSleep
Senior Member
Join Date: Dec 2018
Location: Miami/Florida
Old 05-19-2021 , 16:59   [L4D2] No headshot damage
Reply With Quote #1

Is there a plugin that cancels damage to head hits?
i wanna headless commons and not damage to heads

Last edited by GoGetSomeSleep; 05-19-2021 at 18:46.
GoGetSomeSleep is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-20-2021 , 22:38   Re: [L4D2] No headshot damage
Reply With Quote #2

Try hooking the damage to commons with SDKHook_TraceAttack

I remember that it only work for bullet damage

With this hook you can trace the "hitgroup" (which can be "head") and cancel the attack.

I don't remember if it will work properly btw

check the infected_hurt event aswell
__________________

Last edited by Marttt; 05-20-2021 at 22:38.
Marttt is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-20-2021 , 22:55   Re: [L4D2] No headshot damage
Reply With Quote #3

Here's the hitgroup list:
Code:
// ---------------------------
//  Hit Group standards
// ---------------------------
#define HITGROUP_GENERIC     0
#define HITGROUP_HEAD        1
#define HITGROUP_CHEST       2
#define HITGROUP_STOMACH     3
#define HITGROUP_LEFTARM     4    
#define HITGROUP_RIGHTARM    5
#define HITGROUP_LEFTLEG     6
#define HITGROUP_RIGHTLEG    7
#define HITGROUP_GEAR        10            // alerts NPC, but doesn't do damage or bleed (1/100th damage)
__________________
Psyk0tik is offline
GoGetSomeSleep
Senior Member
Join Date: Dec 2018
Location: Miami/Florida
Old 05-21-2021 , 10:27   Re: [L4D2] No headshot damage
Reply With Quote #4

thanks
GoGetSomeSleep 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 10:00.


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