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

[ Solved ] set_user_hitzones -> fm?


Post New Thread Reply   
 
Thread Tools Display Modes
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-01-2008 , 15:11   Re: set_user_hitzones -> fm?
Reply With Quote #11

Quote:
Originally Posted by AcidoX View Post
connorr: Thx man! I will test it. Only 1 question. In my plugin (fun version) i set value 3, 1 = head, 2 = head+neck, 3 = chest. Does your plugin work with neck if i set #define HITGROUP_HEAD 2?
get_tr2([index], TR_iHitgroup) returns the hit zones by the HITGROUP_... prefix. It may return HITGROUP_NECK I assume if you want to check if hit the neck. What I do know, is that it might return HITGROUP_LEFTLEG, HITGROUP_RIGHTARM, etc.
You can't get hitzones just by setting a value like in fun (I think ). I think this requires a special stock.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-01-2008 , 16:00   Re: set_user_hitzones -> fm?
Reply With Quote #12

Hi Acid.
__________________
hleV is offline
Old 10-01-2008, 17:59
VulturEMaN
This message has been deleted by VulturEMaN.
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 18:37   Re: set_user_hitzones -> fm?
Reply With Quote #13

Quote:
Originally Posted by dor123 View Post
get_tr2([index], TR_iHitgroup) returns the hit zones by the HITGROUP_... prefix. It may return HITGROUP_NECK I assume if you want to check if hit the neck. What I do know, is that it might return HITGROUP_LEFTLEG, HITGROUP_RIGHTARM, etc.
You can't get hitzones just by setting a value like in fun (I think ). I think this requires a special stock.
Hm... So how must i set Neck & HS? Help edit pls
hleV: Hi
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-01-2008 , 23:39   Re: set_user_hitzones -> fm?
Reply With Quote #14

Quote:
Originally Posted by AcidoX View Post
Hm... So how must i set Neck & HS? Help edit pls
hleV: Hi
Sorry, there's no HITGROUP_NECK, but there's HITGROUP_CHEST which I think is pretty close.

To set to Chest, try to use:
PHP Code:
public traceline_fw(float:start[3], float:end[3], noMonstersidtrace){

      static 
hitgroup;
      
hitgroup get_tr2(traceTR_iHitgroup)
      if(
hitgroup != HITGROUP_GENERIC){ // if hit someone
            
set_tr2(traceTR_iHitgroupHITGROUP_CHEST); // re-aim the hit to the chest. 
And for head - try the same and switch CHEST with HEAD.
Again, I'm not saying it would work, but try it.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-02-2008 , 06:48   Re: set_user_hitzones -> fm?
Reply With Quote #15

Yes there is. Go http://www.amxmodx.org/funcwiki.php?...zone&go=search And try to make plugin with set_user_hitzones(id, 0, 3) with fun. My HSDM server where runing with it. But i wanna convert it from fun.
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-02-2008 , 08:41   Re: set_user_hitzones -> fm?
Reply With Quote #16

Quote:
Originally Posted by AcidoX View Post
Yes there is. Go http://www.amxmodx.org/funcwiki.php?...zone&go=search And try to make plugin with set_user_hitzones(id, 0, 3) with fun. My HSDM server where runing with it. But i wanna convert it from fun.
Do you want a headshot only plugin? Or headshot and chest only? Both exist at the metamod headshot mode (headshot_mm.dll).
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-02-2008 , 10:06   Re: [ Solved ] set_user_hitzones -> fm?
Reply With Quote #17

LOL. Make a plugin Whith set_user_hitzones(id, 0, 2) go test IT, then make it with set_user_hitzones(id, 0, 3) and finaly make it with set_user_hitzones(id, 0, 1) and you will see what im talking about.

connorr: Thx man! Plugin works perfect, just answer my question, if its hard to remake it my way?
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
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:25.


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