Just a heads up that I'm going to be releasing a 1.5.0 update with some new features. The code is essentially done but I haven't done much testing aside from basic functionality.
The big changes for 1.5.0 are:
1. sm_aiamenu- This new command will bring up a menu to choose what AIA features the target has access to. You can enable/disable clip/ammo/extrastuff/metal/sentryammo/cloak/spells per player.
Also cvars to globally disable them: sm_aia_clip, sm_aia_ammo, sm_aia_extrastuff, sm_aia_metal, sm_aia_sentryammo, sm_aia_cloak, sm_aia_spells
2. Forward/Natives- I added 3 natives(AIA_HasAIA, AIA_SetAIA, and AIA_GetAmmoFlags) and one forward(AIA_OnAIAChanged) for other plugins to use(see attached include file).
I also went through and did some code optimization here and there on existing stuff.
If you want to try out what I have thus far I've attached it below. Just keep in mind I haven't done extensive testing yet. Hopefully I'll be able to test and do final changes over the next week.
Code:
beta2
-small update to spellbook code
beta3
-Fixed sniper bow indexes
beta4
-Fixed booties/lochnload indexes being switched
-Added Native AIA_SetAmmoFlags