Skip to content

Commit

Permalink
Extra option for a difference between first run and time between miss…
Browse files Browse the repository at this point in the history
…iosn
  • Loading branch information
Jonas Windmolders committed Apr 4, 2016
1 parent 5b26ca4 commit 94f8161
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions server_addon_code/a3_zcp_exile/fn_startZCP.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ if !(isServer) exitWith
};
};

diag_log text format ["[ZCP]: Giving server some time to boot."];

ZCP_MapCenterPos = [8500,8500];
ZCP_MapRadius = 8500;

Expand Down Expand Up @@ -83,5 +81,6 @@ ZCP_RandomReward = [];
}count ZCP_RewardWeightForRandomChoice;

diag_log text format ["[ZCP]: Capture Points is fully running."];
diag_log text format ["[ZCP]: Waiting %1s for first mission.", ZCP_ServerStartWaitTime];
uiSleep ZCP_ServerStartWaitTime;
[] spawn ZCP_fnc_missionLooper;
2 changes: 1 addition & 1 deletion server_addon_code/a3_zcp_exile/functions/fn_initCPData.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
private["_nil"];
{
_nil = ZCP_Data pushBack [false,0,[-99999,0,0]];
_nil = ZCP_Data pushBack [false,0,[-99999,0,0],true];
}count ZCP_CapPoints;
5 changes: 4 additions & 1 deletion server_addon_code/a3_zcp_exile/functions/fn_start.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ _capturePosition = [0,0,0];
_ZCP_name = _this select 0;
_ZCP_index = _this select 4;

uiSleep _randomTime;
if(!((ZCP_Data select _ZCP_index) select 3)) then {
uiSleep _randomTime;
};

diag_log text format ["[ZCP]: Waiting for %1 players to be online.",ZCP_Minimum_Online_Players];
waitUntil { uiSleep 60; count( playableUnits ) > ( ZCP_Minimum_Online_Players - 1 ) };
Expand Down Expand Up @@ -281,6 +283,7 @@ if(count _ZCP_baseObjects != 0)then{
(ZCP_Data select _ZCP_index) set[0,false];
(ZCP_Data select _ZCP_index) set[1,0];
(ZCP_Data select _ZCP_index) set[2,[-99999,0,0]];
(ZCP_Data select _ZCP_index) set[3,false];
ZCP_MissionCounter = ZCP_MissionCounter - 1;
diag_log format["[ZCP]: %1 will be cleaned up in %2s and ended.",_ZCP_name, ZCP_BaseCleanupDelay];
[] spawn ZCP_fnc_missionLooper;
Expand Down

0 comments on commit 94f8161

Please sign in to comment.