From 77a876c6ff9914eb12c4412fa9eb3b8081c082c6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-UH65DCE\\MusTanG" Date: Mon, 29 May 2017 16:41:15 -0500 Subject: [PATCH] Add BIS randomization false to Vehicles --- .../compile/epoch_vehicle/EPOCH_load_vehicles.sqf | 4 +++- .../compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf index 182fd4b1..e61582c7 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf @@ -72,9 +72,11 @@ for "_i" from 1 to _maxVehicleLimit do { // spawn vehicle at temp location. _vehicle = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"]; + // turn off BIS randomization + _vehicle setVariable ["BIS_enableRandomization", false]; if !(isNull _vehicle) then { // make vehicle immune from damage. - _vehicle allowDamage false; + _vehicle allowDamage false; // store spawned vehicles in array to make one call to remains handler _allVehicles pushBack _vehicle; // remove selected slot from array and set on vehicle diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf index b2df6039..c8b7412c 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf @@ -21,6 +21,8 @@ _serverSettingsConfig = configFile >> "CfgEpochServer"; _removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry; _removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry; _vehObj = createVehicle[_vehClass, _position, [], 0, _can_collide]; +// turn off BIS randomization +_vehObj setVariable ["BIS_enableRandomization", false]; if !(isNull _vehObj) then{ _vehObj call EPOCH_server_setVToken; // Set Direction and position