Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. _grp=(_this select 0);
  2.  
  3. _skillset = server getvariable (_this select 1);
  4. {
  5. _unit = _x;
  6. {
  7. _skillvalue = (_skillset select _forEachIndex) + (random 0.2) - (random 0.2);
  8. _unit setSkill [_x,_skillvalue];
  9. } forEach ['aimingAccuracy','aimingShake','aimingSpeed','spotDistance','spotTime','courage','reloadSpeed','commanding','general'];
  10.  
  11. if !(AIdamMod isEqualTo 100) then {_unit removeAllEventHandlers "HandleDamage";_unit addEventHandler ["HandleDamage",{_damage = (_this select 2)*AIdamMod;_damage}];};
  12. //if (EOS_KILLCOUNTER) then {_unit addEventHandler ["killed", "null=[] execVM ""eos\functions\EOS_KillCounter.sqf"""]};
  13.  
  14.  
  15. if (faction _unit == "OPF_G_F") then {_unit exec "scripts\random_gear.sqf"};
  16. // Bosh adding random weapons for FIA units
  17.  
  18. //Jig adding
  19. if (side _unit == east) then {
  20. _unit unlinkItem "NVGoggles_OPFOR";
  21. if ((_this select 2) in eosFacNVG) then {
  22. _unit linkItem "NVGoggles_OPFOR";
  23. };
  24. }else{
  25. if (side _unit == resistance) then {
  26. _unit unlinkItem "NVGoggles_INDEP";
  27. if ((_this select 2) in eosFacNVG) then {
  28. _unit linkItem "NVGoggles_INDEP";
  29. };
  30. };
  31. };
  32. _unit addPrimaryWeaponItem "acc_flashlight";
  33. _unit enableGunLights "forceOn";//"AUTO"
  34. _unit addeventhandler ["killed","[(_this select 0)] spawn remove_carcass_fnc"];
  35. if (Fatigue_ability isEqualTo 0) then {_unit enableStamina false;};
  36. if (INS_op_faction isEqualTo 16) then {[_unit] call Trade_Biofoam_fnc};
  37.  
  38. } forEach (units _grp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement