Raised This Month: $ Target: $400
 0% 

[question] how to get hit zones


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 12-23-2015 , 05:52   [question] how to get hit zones
Reply With Quote #1

i want to know how to detect hit zone

chest zone
stomach zone
arm zone
leg zone

example:
PHP Code:
if(chest zone)
do 
stuff
else if (stomach zone)
do 
stuff
else if (arm zone)
do 
stuff
else 
do 
stuff 
Thanks

Last edited by indraraj striker; 12-23-2015 at 06:04.
indraraj striker is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-23-2015 , 06:37   Re: [question] how to get hit zones
Reply With Quote #2

you have to hook TraceAttack. Than you can retrieve the hitgroup by using TR_iHitgroup.

Code:
new hitgroup = get_tr2(trace, TR_iHitgroup)

switch (hitgroup)
{
          case HIT_HEAD:             //headshot
          case HIT_CHEST:           //
          //etc.  
}
__________________


Last edited by NiHiLaNTh; 12-23-2015 at 06:37.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
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:55.


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