mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-16 05:39:58 +03:00
v0.4
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user