mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
0.81
new vault texture, out of stock messaged added back, lowered armor on vault added damage handeler, Potential fix for for tag friendly option on vehicles w/ player. New custom death screen, bulk trades with custom supply crate model. Simlified dynamic vehicle system.
This commit is contained in:
@@ -147,19 +147,16 @@ spawn_vehicles = {
|
||||
if (isDedicated) then {
|
||||
waituntil {!isnil "fnc_buildWeightedArray"};
|
||||
|
||||
_weights = [];
|
||||
_weights = [AllowedVehiclesList,AllowedVehiclesChance] call fnc_buildWeightedArray;
|
||||
|
||||
_isOverLimit = true;
|
||||
_isAbort = false;
|
||||
_counter = 0;
|
||||
while {_isOverLimit} do {
|
||||
|
||||
waitUntil{!isNil "BIS_fnc_selectRandom"};
|
||||
_index = _weights call BIS_fnc_selectRandom;
|
||||
_index = AllowedVehiclesList call BIS_fnc_selectRandom;
|
||||
|
||||
_vehicle = AllowedVehiclesList select _index;
|
||||
_velimit = AllowedVehiclesLimit select _index;
|
||||
_vehicle = _index select 0;
|
||||
_velimit = _index select 1;
|
||||
|
||||
_qty = {_x == _vehicle} count serverVehicleCounter;
|
||||
|
||||
@@ -178,7 +175,7 @@ spawn_vehicles = {
|
||||
};
|
||||
|
||||
if (_isAbort) then {
|
||||
diag_log("DEBUG: unable to find sutable vehicle");
|
||||
diag_log("DEBUG: unable to find sutable vehicle to spawn");
|
||||
} else {
|
||||
|
||||
// add vehicle to counter for next pass
|
||||
|
||||
Reference in New Issue
Block a user