Raised This Month: $ Target: $400
 0% 

How to get touched hitzone?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 11-24-2014 , 18:49   How to get touched hitzone?
Reply With Quote #1

Hi. How to get touched hit zone with a entity to player?
Entity = Hegrenade.
PHP Code:
public Ham_Touche_Grenade_Post(grenadevictim) { 
        
    if (!
pev_validgrenade ))
        return;
        
    if (!
is_user_alivevictim )) return;

FromTheFuture is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 11-25-2014 , 06:30   Re: How to get touched hitzone?
Reply With Quote #2

Try this: get grenade's origin and velocity, use traceline with (origin+velocity) is the end position, then check the result for the body part (TR_iHitgroup).
RateX 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 17:37.


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