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

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


  
 
 
Thread Tools Display Modes
Author Message
xenon35
New Member
Join Date: Jan 2007
Old 01-02-2007 , 19:08   set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
#1

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.
xenon35 is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 01-17-2007 , 13:32   Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
#2

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.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-17-2007 , 15:08   Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
#3

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.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
xenon35
New Member
Join Date: Jan 2007
Old 01-18-2007 , 13:32   Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
#4

Quote:
Originally Posted by vittu
Set it to 3 for headshots only.
Ok, I go to try this. Thanks.
xenon35 is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-19-2007 , 03:21   Re: set_user_hitzones(0 ,0, 2) & g_bodyhits[i][j]
#5

1 month and no reply, closed.
sawce is offline
 


Thread Tools
Display Modes

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 06:51.


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