fixes to typos, started removal of bandit / hero switching. New models
now can carry backbacks, removed dupe issue but regained ammo dupe
issue. DVS vehicle spawn limits introduced.
This commit is contained in:
A Clark
2012-12-27 11:33:58 -06:00
parent de7f3a17d0
commit 5208bc9719
12 changed files with 64 additions and 34 deletions

View File

@@ -3,6 +3,8 @@
dayz_versionNo = getText(configFile >> "CfgMods" >> "DayZ" >> "version");
dayz_hiveVersionNo = getNumber(configFile >> "CfgMods" >> "DayZ" >> "hiveVersion");
_serverVehicleCounter = [];
if ((count playableUnits == 0) and !isDedicated) then {
isSinglePlayer = true;
};
@@ -165,6 +167,10 @@ diag_log "HIVE: Starting";
};
_object call fnc_vehicleEventHandler;
_totalvehicles = _totalvehicles + 1;
// total each vehicle
_serverVehicleCounter set [count _serverVehicleCounter,_type];
};
//Monitor the object
@@ -220,11 +226,12 @@ _vehLimit = MaxVehicleLimit - _totalvehicles;
diag_log ("HIVE: Spawning # of Vehicles: " + str(_vehLimit));
if(_vehLimit > 0) then {
for "_x" from 1 to _vehLimit do {
_id = [] spawn spawn_vehicles; // Needs setup
_id = [_serverVehicleCounter] spawn spawn_vehicles; // Needs setup
waitUntil{scriptDone _id};
};
};
// spawn_roadblocks
for "_x" from 1 to MaxDynamicDebris do {
_id = [] spawn spawn_roadblocks;