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:
vbawol
2013-01-30 13:29:48 -06:00
parent e24e30b15c
commit 13ca69a8fc
17 changed files with 139 additions and 55 deletions

View File

@@ -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