Raised This Month: $ Target: $400
 0% 

Each shot in the body is an HS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 12-28-2011 , 15:05   Each shot in the body is an HS
Reply With Quote #1

How can I use the forwards of TakeDamage to change the part it hit at the body to be set to the head? Like, if I shoot to the leg it's a head shot.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 12-28-2011 , 15:08   Re: Each shot in the body is an HS
Reply With Quote #2

Quote:
Originally Posted by Diegorkable View Post
How can I use the forwards of TakeDamage to change the part it hit at the body to be set to the head? Like, if I shoot to the leg it's a head shot.
Use the forwards of Ham_TraceAttack instead.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 12-28-2011 , 15:12   Re: Each shot in the body is an HS
Reply With Quote #3

how do I use it to change the part that was shot?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-28-2011 , 16:03   Re: Each shot in the body is an HS
Reply With Quote #4

Code:
if( get_tr2( traceresult , TR_iHitgroup ) == HIT_HEAD )

That is to check if the hit is in the head.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2011 , 16:09   Re: Each shot in the body is an HS
Reply With Quote #5

set_tr2( traceresult , TR_iHitgroup, HIT_HEAD )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 12-28-2011 , 16:50   Re: Each shot in the body is an HS
Reply With Quote #6

yeah did already what Connor posted, thanks
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2011 , 17:54   Re: Each shot in the body is an HS
Reply With Quote #7

Quote:
Originally Posted by Diegorkable View Post
yeah did already what Connor posted, thanks
LoLoLoLoL
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 12-29-2011 , 11:33   Re: Each shot in the body is an HS
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
LoLoLoLoL
Yeah I decided not to wait and google that Ham_TraceAttack and saw a code example of you in some thread, so eventually you did help me
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-29-2011 , 14:47   Re: Each shot in the body is an HS
Reply With Quote #9

Quote:
Originally Posted by Diegorkable View Post
Yeah I decided not to wait and google that Ham_TraceAttack and saw a code example of you in some thread, so eventually you did help me
Chyea i believe connor is the one that helped me with my head shot modes... one of the settings in there does what you asked..

I've never done anything with the trace attack and in my servers humans & bots... so I block head shots for bots because....... THEY HURT
Doc-Holiday 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:30.


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