This commit is contained in:
A Clark
2013-01-12 20:59:54 -06:00
parent 7e52d6ee28
commit b893b72b72
2 changed files with 70 additions and 60 deletions

View File

@@ -3,7 +3,7 @@
dayz_versionNo = getText(configFile >> "CfgMods" >> "DayZ" >> "version");
dayz_hiveVersionNo = getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");
_serverVehicleCounter = [];
serverVehicleCounter = [];
if ((count playableUnits == 0) and !isDedicated) then {
isSinglePlayer = true;
@@ -169,7 +169,7 @@ diag_log "HIVE: Starting";
_totalvehicles = _totalvehicles + 1;
// total each vehicle
_serverVehicleCounter set [count _serverVehicleCounter,_type];
serverVehicleCounter set [count _serverVehicleCounter,_type];
};
@@ -226,13 +226,14 @@ _vehLimit = MaxVehicleLimit - _totalvehicles;
diag_log ("HIVE: Spawning # of Vehicles: " + str(_vehLimit));
if(_vehLimit > 0) then {
for "_x" from 1 to _vehLimit do {
_id = [_serverVehicleCounter] spawn spawn_vehicles; // Needs setup
_id = [] spawn spawn_vehicles; // Needs setup
waitUntil{scriptDone _id};
};
};
// spawn_roadblocks
diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
for "_x" from 1 to MaxDynamicDebris do {
_id = [] spawn spawn_roadblocks;
//waitUntil{scriptDone _id};