Headshot Mode Script (set_user_hitzones problem)
Ok, basically I want to write a plugin that will set a mode where only headshots count that works with CSDM and amx_respawn.
Here's what I have so far Code:
#pragma tabsize 0By the way, this is my first plugin, so please be patient if I don't understand a reply. I've some programming background, but not much :oops: Thanks in advance! |
Code:
Change Player2[j] to 1 and you have to set the hitzones of all the other body parts to inactive by doing something like Code:
So now players[i] can't be hit in the...generic...bodypart -.-. |
1 Attachment(s)
Between 0.16 and 0.20 set_user_hitzones reverted to how it was (and probably still is) from OLO's AMX Mod. I created a small plugin to test this. It's getting popular. :-)
Set HS only mode :arrow: "amx_hitzones 3" Display help :arrow: "amx_hitzoneshelp" The difference is you now can specify bodyparts "inter-individually", ie you could set it up to allow player A to hit everyone anywhere but only hit player B in head, and player B could only hit people in their legs. This test plugin just sets the same hitzones on everyone though. The generic hitzone should always (?) be used, dunno really what it is used for. Head is 2 and generic is 1, so for a HS only mode you use 3. |
This is odd..
amx_hitzones 2 did not work for me. Body hitzones were still enabled. Does TP4 have anything to do with it? |
ahem
"The generic hitzone should always (?) be used, dunno really what it is used for. Head is 2 and generic is 1, so for a HS only mode you use 3." |
Oops, forgot to add that I tried 3 also.
3 didn't work. |
| All times are GMT -4. The time now is 17:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.