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

Detect wall penetration on player_hurt event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
switz213
Junior Member
Join Date: Jun 2015
Old 05-28-2016 , 13:55   Detect wall penetration on player_hurt event
Reply With Quote #1

I presume this is not possible as there is a penetrated flag on player_death, but not player_hurt. https://wiki.alliedmods.net/Counter-...s#player_death

Is there any way to detect if a player was hit through a wall on player_hurt?
switz213 is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 05-28-2016 , 14:57   Re: Detect wall penetration on player_hurt event
Reply With Quote #2

You can use SDKHook_OnTakeDamage forward and use TR_TraceRayFilter to detect if a wall was between client and target.
__________________
Chaosxk 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 08:23.


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