Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. Waituntil {(time > 180) || (!isMultiplayer)};
  2.  
  3. if (isNil "TF47_side_AAAactive") then { TF47_side_AAAactive = false; };
  4. if (isNil "TF47_side_Artiactive") then { TF47_side_Artiactive = false; };
  5.  
  6. private _sleep = 300;
  7. if (isMultiplayer)then{
  8. _sleep = 500;
  9. };
  10. Waituntil {sleep 10; count GRLIB_all_fobs > 0};
  11. [
  12. {
  13. if( ([] call F_opforCap < GRLIB_battlegroup_cap) )then{
  14. private _val = round random 2;
  15. if(!TF47_side_Artiactive && !TF47_side_AAAactive)then{
  16. IF(_val == 0) then {
  17. if (!TF47_side_Artiactive ) then {
  18. []spawn TF47_spawnSideMissionARTY;
  19. };
  20.  
  21. } else {
  22.  
  23. if ( !TF47_side_AAAactive ) then {
  24. []spawn TF47_spawnSideMissionAAA;
  25. };
  26. };
  27. };
  28. _allPlayercount = count (allPlayers - entities "HeadlessClient_F");
  29. if (!isMultiplayer) then {_allPlayercount = 99;};
  30.  
  31. switch(ceil (random 4))do{
  32. case(1):{
  33. if ( (resources_intel > 10) && (count TF47_Missionarray < 4)) then {
  34. []spawn fob_hunting;
  35. resources_intel = resources_intel -10;
  36. };
  37. };
  38. case(2):{
  39. if ( (resources_intel > 10) && (count TF47_Missionarray < 4) && _allPlayercount > 8) then {
  40. []spawn convoy_hijack;
  41. resources_intel = resources_intel -10;
  42. };
  43. };
  44. case(3):{
  45. if ( (resources_intel > 10) && (count TF47_Missionarray < 4) && _allPlayercount > 10) then {
  46. []spawn search_and_rescue;
  47. resources_intel = resources_intel -10;
  48. };
  49. };
  50. case(4):{
  51. if ( (resources_intel > 15) && (count TF47_Missionarray < 4)) then {
  52. []spawn TF47_SeaMines;
  53. resources_intel = resources_intel -15;
  54. };
  55. };
  56. };
  57. publicVariable "resources_intel";
  58. };
  59. },
  60. _sleep,
  61. []
  62. ] call CBA_fnc_addPerFrameHandler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement