Alright, I put out v.8, Vittu fixed it and put out v.9, and here is v1, with a complete rewrite of the core. (it's 55 lines shorter!!! wooh!!)
This plugin allows you to turn on and off any hitboxes in any combination.
------------------------------------------
Commands
------------------------------------------
amx_hitbox abcdefg0This takes any combination of the following flags (except 0 must be alone)0 - None (GodMode)
A - head
B - chest
C - stomach
D - left arm
E - right arm
F - left leg
G - right leg
example:
amx_hitbox defg
That would only allow arms and legs to be hit
------------------------------------------
CVARS
------------------------------------------
hitbox_bit 0-255It takes a number, 2^n. Refer to set_user_hitzone in the funcwiki
Don't even bother messing with this cvar, I'm probably going to take it out by the next version
If you want to have it activated automatically, put the amx_hitbox command in your amxx.cfg not your server.cfg
Issues for further releases:
*Do something about sanitationIt's set up to recognize any strange syntax the admins type in, but I'm not sure thats necessary. Perhaps I should take that out and have them deal with it, or perhaps have it notify them of what they did wrong. The comments refer to this
*Do something about confusing-ass cvarThis cvar is currently using a bit number, I want to change it to use flags just like amx_hitbox, but set_pcvar_string doesn't work yet hehe
*Do Something about knife/heI will make it so you are able to turn knife kills and nade kills on and off, since those aren't affected by hitboxes
*Make a "bit to english" converterThis would be so that you can actually read in English what is enabled and disabled. There is just no elegant way to do this, except case by case, and that annoys me
*Do something about insistence, turning off, etcI want an option in where you can have it only change the hitboxes for each player either a) when they connect or b) when the admin changes the flags. That way it wont interfere with god modes and the like. Also, when in normal mode, the plugin should just shut up and go away.
*MenuI'll install a menu because it is functionally proper and an easier-to-understand alternative to flags
Those will add up to V1.6.
V2 and you'll have options for individual players and suc etc. (It'll be a headshot only, godmode, and some extra goodies plugin all in one)