From 292108715b2ffd32f2ba0eecc15c6af6a541ecc5 Mon Sep 17 00:00:00 2001 From: vbawol Date: Thu, 20 Jul 2017 11:07:24 -0500 Subject: [PATCH] fixed minor typo in vars --- .../compile/epoch_vehicle/EPOCH_load_vehicles.sqf | 10 +++++----- .../epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf | 12 ++++++------ .../compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) 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 e9237b5e..b3d79793 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_load_vehicles.sqf @@ -212,13 +212,13 @@ for "_i" from 1 to _maxVehicleLimit do { // vehicle simulation handler if (_simulationHandler) then{ - _vehicle enableSimulationGlobal false; + _vehicle enableSimulationGlobal false; }; - + // new Dynamicsimulation - _vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim - _vehObj enableDynamicSimulation true; - + _vehicle enableSimulationGlobal false; // turn it off until activated by dynamicSim + _vehicle enableDynamicSimulation true; + // turrets /* _mags = _vehicle magazinesTurret [0]; diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf index 3e4a9887..8f6625ca 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf @@ -43,7 +43,7 @@ _fuel = fuel _veh; deletevehicle _veh; waituntil {isnull _veh}; _pos set [2,(_pos select 2)+0.5]; -_newVeh = createVehicle [_UpgradeVeh, [random 500, random 500,500], [], 0, "CAN_COLLIDE"]; +_newVeh = createVehicle [_UpgradeVeh, [random 500, random 500,500], [], 0, "CAN_COLLIDE"]; _newVeh setVariable ["VEHICLE_SLOT", _slot, true]; if!(_baseVeh isEqualTo "")then { @@ -58,7 +58,7 @@ _newVeh setposasl _pos; // set fuel level _newVeh setFuel _fuel; - + // apply persistent textures _cfgEpochVehicles = 'CfgEpochVehicles' call EPOCH_returnConfig; _newbaseVeh = _veh getVariable ["VEHICLE_BASECLASS",""]; @@ -78,7 +78,7 @@ if (isArray(_availableColorsConfig)) then { } forEach _selections; _newVeh setVariable ["VEHICLE_TEXTURE", _color]; }; - + // disable thermal imaging equipment _newVeh disableTIEquipment true; @@ -99,12 +99,12 @@ if !(_allHitpoints isEqualTo []) then{ }; // new Dynamicsimulation -_vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim -_vehObj enableDynamicSimulation true; +_newveh enableSimulationGlobal false; // turn it off until activated by dynamicSim +_newveh enableDynamicSimulation true; // add back old inventory [_newveh,_cargo] call EPOCH_server_CargoFill; // save new vehicle to db -_newveh call EPOCH_Server_Save_Vehicle; \ No newline at end of file +_newveh call EPOCH_Server_Save_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 021566e3..78c8c99a 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf @@ -107,12 +107,12 @@ if !(isNull _vehObj) then{ _vehLockHiveKey = format["%1:%2", (call EPOCH_fn_InstanceID), _slot]; ["VehicleLock", _vehLockHiveKey] call EPOCH_fnc_server_hiveDEL; }; - + // new Dynamicsimulation _vehObj enableSimulationGlobal false; // turn it off until activated by dynamicSim _vehObj enableDynamicSimulation true; - + // SAVE VEHICLE _vehObj call EPOCH_server_save_vehicle;