AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hit everything but the head (https://forums.alliedmods.net/showthread.php?t=40856)

atambo 07-04-2006 20:57

hit everything but the head
 
Anyone know a way to make it so you can shoot everything except the head?

L0neW0lf 07-05-2006 00:06

Re: hit everything but the head
 
set_user_hitzones(0,0,2)

L0neW0lf 07-05-2006 02:47

Re: hit everything but the head
 
My previous post was hs only, sorry my bad....

my guess would be:
Code:
set_user_hitzones(0,0,255-hitzone)

The hitzones is like this:

Parts of body are as bits:
1 - generic
2 - head
4 - chest
8 - stomach
16 - left arm
32 - right arm
64 - left leg
128 - right leg

So it would be 253 because head is 2 and 255-2=253
So it goes like this:
Code:
set_user_hitzones(0,0,253)

/Lone Wolf

atambo 07-05-2006 02:55

Re: hit everything but the head
 
thanx lonewolf

Hawk552 07-05-2006 11:07

Re: hit everything but the head
 
set_user_hitzones doesn't work, you have to use trace_line (not totally sure about this, I'm just guessing this won't work for you)

Fat D 07-05-2006 15:15

Re: hit everything but the head
 
the metamod plugin "HeadShot" by OLO (developer of original AMX) can be set to allow/disallow any hitzones, including "all but head".

shino 07-05-2006 16:17

Re: hit everything but the head
 
you can do it via Damage event, too. quite enjoyable method(for me).


All times are GMT -4. The time now is 07:57.

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