Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Waituntil {(time > 180) || (!isMultiplayer)};
- if (isNil "TF47_side_AAAactive") then { TF47_side_AAAactive = false; };
- if (isNil "TF47_side_Artiactive") then { TF47_side_Artiactive = false; };
- private _sleep = 300;
- if (isMultiplayer)then{
- _sleep = 500;
- };
- Waituntil {sleep 10; count GRLIB_all_fobs > 0};
- [
- {
- if( ([] call F_opforCap < GRLIB_battlegroup_cap) )then{
- private _val = round random 2;
- if(!TF47_side_Artiactive && !TF47_side_AAAactive)then{
- IF(_val == 0) then {
- if (!TF47_side_Artiactive ) then {
- []spawn TF47_spawnSideMissionARTY;
- };
- } else {
- if ( !TF47_side_AAAactive ) then {
- []spawn TF47_spawnSideMissionAAA;
- };
- };
- };
- _allPlayercount = count (allPlayers - entities "HeadlessClient_F");
- if (!isMultiplayer) then {_allPlayercount = 99;};
- switch(ceil (random 4))do{
- case(1):{
- if ( (resources_intel > 10) && (count TF47_Missionarray < 4)) then {
- []spawn fob_hunting;
- resources_intel = resources_intel -10;
- };
- };
- case(2):{
- if ( (resources_intel > 10) && (count TF47_Missionarray < 4) && _allPlayercount > 8) then {
- []spawn convoy_hijack;
- resources_intel = resources_intel -10;
- };
- };
- case(3):{
- if ( (resources_intel > 10) && (count TF47_Missionarray < 4) && _allPlayercount > 10) then {
- []spawn search_and_rescue;
- resources_intel = resources_intel -10;
- };
- };
- case(4):{
- if ( (resources_intel > 15) && (count TF47_Missionarray < 4)) then {
- []spawn TF47_SeaMines;
- resources_intel = resources_intel -15;
- };
- };
- };
- publicVariable "resources_intel";
- };
- },
- _sleep,
- []
- ] call CBA_fnc_addPerFrameHandler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement