Merge pull request #758 from ravmustang/Vehicle-Upgrades

Add BIS randomization false to Vehicles
This commit is contained in:
vbawol 2017-05-29 16:45:33 -05:00 committed by GitHub
commit b2a43d1ecc
2 changed files with 5 additions and 1 deletions

View File

@ -72,6 +72,8 @@ for "_i" from 1 to _maxVehicleLimit do {
// spawn vehicle at temp location. // spawn vehicle at temp location.
_vehicle = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"]; _vehicle = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
// turn off BIS randomization
_vehicle setVariable ["BIS_enableRandomization", false];
if !(isNull _vehicle) then { if !(isNull _vehicle) then {
// make vehicle immune from damage. // make vehicle immune from damage.
_vehicle allowDamage false; _vehicle allowDamage false;

View File

@ -21,6 +21,8 @@ _serverSettingsConfig = configFile >> "CfgEpochServer";
_removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry; _removeweapons = [_serverSettingsConfig, "removevehweapons", []] call EPOCH_fnc_returnConfigEntry;
_removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry; _removemagazinesturret = [_serverSettingsConfig, "removevehmagazinesturret", []] call EPOCH_fnc_returnConfigEntry;
_vehObj = createVehicle[_vehClass, _position, [], 0, _can_collide]; _vehObj = createVehicle[_vehClass, _position, [], 0, _can_collide];
// turn off BIS randomization
_vehObj setVariable ["BIS_enableRandomization", false];
if !(isNull _vehObj) then{ if !(isNull _vehObj) then{
_vehObj call EPOCH_server_setVToken; _vehObj call EPOCH_server_setVToken;
// Set Direction and position // Set Direction and position