Modified f_setAISkill:
- touches individual skill sets instead of total skill value (values might need tweaking)
- friendly AI for coop are defined in a single array in init.sqf
- removed code redundancy:
main file is now f_setAISkill and f_setAISkillAD or f_setAISkillCOOP are included depending on which parameters do exist (are !nil)
- new function: f_fnc_setAISkill
sets individual skill values for a unit.
adds variable "f_skillarray" to a unit, containing skill levels

- f_setAISkill can differentiate between units that it already modified thus can be run several times in a mission to affect newly spawned AI (alternative would be a loop checking so-and-so often)
- f_fnc_setAISkill can be called for individual units to override skill levels set by f_setAISkill
Added small backpacks for all factions. Backpacks are now standardized as such:
_bagsmall = "B_AssaultPack_dgtl";  // carries 120, weighs 20
_bagmedium = "B_FieldPack_oli";    // carries 240, weighs 30
_baglarge =  "B_Carryall_oli";     // carries 320, weighs 40

New backpacks for AAR, RAT, MMGAG, MATAG to allow better weight distribution
MATAG always gets a backpack (off = light)

Standarized gear loadout. Weight table: http://pastebin.com/923UF0ja
Distributed weight to give entire fireteam about the same load.
Engineers now have mine detectors

Attachments, Divers, Crews and Engineers are WIP.
Tweaked medic loadout. Differentiates between light and heavy now. (off = light).
Weight for all factions:
"WEST-BLU_F-m - 218/320"
"WEST-BLU_F-m - 314/360"
- added magazines to "no backpack" loadouts
- added chemlight class to all factions (not included in any loadout yet)
- added new classes to private array in fn_folk_assignGear
corrected accidental changes in nato gear
Added
new _mediumRig to all factions (Platecarrier Rig). Made medium rig default for all classes for now.

With the current version values for _lightRig/_mediumRig/_heavyRig are identical. With upcoming stable update they'll be different in mass and armor value.
made "default for" comment clearer
further tweaks to gear values.
"no backpack" param gives FTL, AAR and RAT now 10 mags, 3 HE grenades and 2 smokes.
Gave medics additional firstAid Kits (carried in rig)
Doubled # of smokegrenades in light medic backpack. (Medic now carries 8 smoke grenades total).
Made high skill default in description.ext (works better with new skill values).
Replaced f_var_units with allUnits
- looping through vehicles (f_var_units = allunits + vehicles) is unnecessary/wasteful
- by using allUnits (updated periodically by the game) it is easier for the script to affect dynamically generated units
- removes need for the script to wait for f_script_setLocalVars
tweaked values,
improved perfomance (no need to pass units, it will only loop through allUnits as far as necessary)
typofix
Typo fixes

Rewrite:
f_setAISkill is now run server-side (no more unnecessary looping on all clients).
skills are set for all clients using BIS_fnc_MP
updated comments
streamlined setAISkill function
make sure all global variables are made public
back to setVariable
fixed typo
added way to affect only specific units