hunting for buggy scripts

This commit is contained in:
Eero af Heurlin 2016-07-25 00:01:49 +03:00
parent 1ad78d7446
commit 04d45b552d
2 changed files with 12 additions and 11 deletions

View File

@ -2,15 +2,16 @@
_lzCount = 86;
// Compile helpers
createDropoffLZ = compile preProcessfile "createDropoffLZ.sqf";
createPickupLZ = compile preProcessfile "createPickupLZ.sqf";
//createDropoffLZ = compile preProcessfile "createDropoffLZ.sqf";
//createPickupLZ = compile preProcessfile "createPickupLZ.sqf";
createSquad = compile preProcessfile "createSquad.sqf";
createEnemySquads = compile preProcessfile "createEnemySquads.sqf";
//createSquad = compile preProcessfile "createSquad.sqf";
//createEnemySquads = compile preProcessfile "createEnemySquads.sqf";
deleteSquads = compile preProcessfile "deleteSquads.sqf";
playerVehicleInList = compile preProcessfile "playerVehicleInList.sqf";
playerVehicleInListBool = compile preProcessfile "playerVehicleInListBool.sqf";
//playerVehicleInList = compile preProcessfile "playerVehicleInList.sqf";
//playerVehicleInListBool = compile preProcessfile "playerVehicleInListBool.sqf";
//getSideTasks = compile preProcessfile "getSideTasks.sqf";
execVM "briefing.sqf";
@ -66,5 +67,5 @@ publicVariable "missionInitComplete";
if (isServer) then
{
execVM "taskSpawner.sqf";
}
// execVM "taskSpawner.sqf";
};

View File

@ -1,10 +1,10 @@
diag_log format["taskSpawner called, _this: %1", _this];
diag_log "taskSpawner called";
scopeName "main";
while {true} do
{
scopeName "mainloop";
private _justPlayers = BIS_fnc_listPlayers - entities "HeadlessClient_F";
private _result = [(west BIS_fnc_tasksUnit), {[_this] call BIS_fnc_taskCompleted}] call CBA_fnc_reject;
_result = [_side_tasks, {_this call BIS_fnc_taskCompleted}] call CBA_fnc_reject;
diag_log format["taskSpawner: active tasks: %1 players: ", (count _result), (count _justPlayers)];
while (count _result != count _justPlayers) do
{
@ -20,7 +20,7 @@ while {true} do
breakTo "spawnloop";
}
} forEach _justPlayers;
[_newLZLocation, false] execVM "createPickupLZ.sqf";
[_newLZLocation, false] spawn createPickupLZ;
}
sleep 10;
};