Hitzones bytes?
Anyone know the hitzone bytes? I found this list:
Quote:
Code:
//bonus exp for HITTING target |
The list you posted is for the bitmask, which I don't believe is used in this case. Try using these instead:
Code:
(already defined in amxconst.inc) |
Just add em up now.. (Sorry, no time to explain, gotta hit the Zzz's!)
|
if( HitZone & 2)
|
Quote:
|
I'm not sure but i think you add em up then.
|
I have zero knowledge on this but adding them makes no sense. If you put 3 it could be head and chest or stomach. This is not the standard 1, 2, 4, 8, 16, ...etc. I don't think it works like bitwise
|
Quote:
I'm not sure what the point of a bitmask for hitboxes is, because I don't believe you can shoot someone in two different hitboxes at once. |
Shooting someone in two different hit boxes at once? Now that would be some nice skills! lol
Thanks for the help, I will try that. I know that the bits work fine, but if you look it said head was 2 and not 1. I think that's the problem. Oh, and sort of off topic, but a nub question here; how are cvars used? And don't they make for some ugly coding instead of using internal vars? Because I want all the exp and stuff to be a cvar... |
Of course it said that the head was 2 and not 1, it's a different system! Maybe that's why yours wasn't working, perhaps? Hmm...
|
| All times are GMT -4. The time now is 09:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.