Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 3.45 KB | None | 0 0
  1. if (isServer) then {
  2. private ["_HPpatrols","_HPgroupProbability","_CHgroupArray","_LVgroupArray","_HPgroupArray","_PAgroupArray","_CHgroupSize","_CHGroups","_SVehGroups","_AVgroupSize","_AVehGroups","_LVehGroups","_LVgroupSize","_PAgroupSize","_PApatrols","_HPpatrols","_HPgroupSize"];
  3.  
  4. _JIPmkr=(_this select 0);
  5. _HouseInfantry=(_this select 1);
  6. _HPpatrols=_HouseInfantry select 0;
  7. _HPgroupSize=_HouseInfantry select 1;
  8. _HPgroupProbability=if (count _HouseInfantry > 2) then {_HouseInfantry select 2} else {100};
  9.  
  10. _infantry=(_this select 2);
  11. _PApatrols=_infantry select 0;
  12. _PAgroupSize=_infantry select 1;
  13. _PAgroupProbability=if (count _infantry > 2) then {_infantry select 2} else {100};
  14.  
  15. _LVeh=(_this select 3);
  16. _LVehGroups=_LVeh select 0;
  17. _LVgroupSize=_LVeh select 1;
  18. _LVgroupProbability=if (count _LVeh > 2) then {_LVeh select 2} else {100};
  19.  
  20. _AVgrp=(_this select 4);
  21. _AVehGroups=_AVgrp select 0;
  22. _AVgroupProbability=if (count _AVgrp > 1) then {_AVgrp select 1} else {100};
  23.  
  24. _SVgrp=(_this select 5);
  25. _SVehGroups=_SVgrp select 0;
  26. _SVgroupProbability=if (count _SVgrp > 1) then {_SVgrp select 1} else {100};
  27.  
  28. _CHGrp=(_this select 6);
  29. _CHGroups=_CHGrp select 0;
  30. _CHgroupSize=_CHGrp select 1;
  31. _CHgroupProbability=if (count _CHGrp > 2) then {_CHGrp select 2} else {100};
  32.  
  33. _settings=(_this select 7);
  34.  
  35. if (_HPgroupProbability > floor random 100) then {
  36.     if (_HPgroupSize==0) then {_HPgroupArray=[1,1]};
  37.     if (_HPgroupSize==1) then {_HPgroupArray=[2,4]};
  38.     if (_HPgroupSize==2) then {_HPgroupArray=[4,8]};
  39.     if (_HPgroupSize==3) then {_HPgroupArray=[8,12]};
  40.     if (_HPgroupSize==4) then {_HPgroupArray=[12,16]};
  41.     if (_HPgroupSize==5) then {_HPgroupArray=[16,20]};
  42.     }else{_HPpatrols=0;_HPgroupArray=[1,1];};
  43.    
  44. if (_PAgroupProbability > floor random 100) then { 
  45.     if (_PAgroupSize==0) then {_PAgroupArray=[1,1]};
  46.     if (_PAgroupSize==1) then {_PAgroupArray=[2,4]};
  47.     if (_PAgroupSize==2) then {_PAgroupArray=[4,8]};
  48.     if (_PAgroupSize==3) then {_PAgroupArray=[8,12]};
  49.     if (_PAgroupSize==4) then {_PAgroupArray=[12,16]};
  50.     if (_PAgroupSize==5) then {_PAgroupArray=[16,20]};
  51.     }else{_PApatrols=0;_PAgroupArray=[1,1];};  
  52.  
  53. if (_LVgroupProbability > floor random 100) then { 
  54.     if (_LVgroupSize==0) then {_LVgroupArray=[0,0]};
  55.     if (_LVgroupSize==1) then {_LVgroupArray=[2,4]};
  56.     if (_LVgroupSize==2) then {_LVgroupArray=[4,8]};
  57.     if (_LVgroupSize==3) then {_LVgroupArray=[8,12]};
  58.     if (_LVgroupSize==4) then {_LVgroupArray=[12,16]};
  59.     if (_LVgroupSize==5) then {_LVgroupArray=[16,20]};
  60. }else{_LVehGroups=0;_LVgroupArray=[0,0];};
  61.  
  62. if (_AVgroupProbability > floor random 100) then {
  63. }else{_AVehGroups=0;};
  64.  
  65. if (_SVgroupProbability > floor random 100) then {
  66. }else{_SVehGroups=0;};
  67.  
  68. if (_CHgroupProbability > floor random 100) then {
  69.     if (_CHgroupSize==0) then {_CHgroupArray=[0,0]};
  70.     if (_CHgroupSize==1) then {_CHgroupArray=[2,4]};
  71.     if (_CHgroupSize==2) then {_CHgroupArray=[4,8]};
  72.     if (_CHgroupSize==3) then {_CHgroupArray=[8,12]};
  73.     if (_CHgroupSize==4) then {_CHgroupArray=[12,16]};
  74.     if (_CHgroupSize==5) then {_CHgroupArray=[16,20]};
  75. }else{_CHGroups=0;_CHgroupArray=[0,0]};
  76.  
  77. {
  78.     _eosMarkers=server getvariable "EOSmarkers";
  79.     if (isnil "_eosMarkers") then {_eosMarkers=[];};
  80.         _eosMarkers set [count _eosMarkers,_x];
  81.         server setvariable ["EOSmarkers",_eosMarkers,true];
  82.         null = [_x,[_HPpatrols,_HPgroupArray],[_PApatrols,_PAgroupArray],[_LVehGroups,_LVgroupArray],[_AVehGroups,_SVehGroups,_CHGroups,_CHgroupArray],_settings] execVM "eos\core\EOS_Core.sqf";
  83. }foreach _JIPmkr;
  84. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement