AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   (OLD) Bug Reports (https://forums.alliedmods.net/forumdisplay.php?f=24)
-   -   set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j] (https://forums.alliedmods.net/showthread.php?t=49376)

xenon35 01-02-2007 19:08

set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
 
Hi everybody,

I have a strange behaviour of set_user_hitzones.
In a plugin for headshot only, which use this function

{
set_user_hitzones(0 ,0, 2)
client_print(id, print_console, "Mode Headshot only ON")
client_print(0, print_chat, "Mode Headshot only ON")
}

the behavior is not exactly what I should expect :
the damage if I shot another player which is close in the foot, the damage are not zero although they are not so important that if the plugin is not running.
This rise the question, how the fun.cpp is programmed ?
In other words, if I shot a foot of a player which is close, does the dammage are only on the foot, or are on all the parts of the body, mainly on the foot, but also on the head ?

Thanks for the reply.

Orangutanz 01-17-2007 13:32

Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
 
Don't really understand what your on about but based on your setting:

set_user_hitzones(0, 0, 2)

1st parameter all users called
2nd parameter all targets called
3rd parameter head only called

Which means you can only damage the head for all clients on server.

vittu 01-17-2007 15:08

Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
 
Quote:

And generic bit must be included when setting hitzone to anything other then 0.
Code:

Sets hit zones for player.
Parts of body are as bits:
1 - generic
2 - head

Set it to 3 for headshots only.

xenon35 01-18-2007 13:32

Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
 
Quote:

Originally Posted by vittu
Set it to 3 for headshots only.

Ok, I go to try this. Thanks.

sawce 02-19-2007 03:21

Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
 
1 month and no reply, closed.


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

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