VE Lua Documentation

Press F to search!

resetSounds

Definition


-- @/lua/vehicle/powertrain.lua:761

local function resetSounds()
  if not hasPowertrain then
    return
  end

  if not canResetDevices then
    log("W", "powertrain.resetSounds", "One or more powertrain devices do not support dedicated reset, using full init instead!")
    initSounds()
    return
  end

  for _, device in pairs(powertrainDevices) do
    if device.resetSounds then
      device:resetSounds(deviceJbeamData[device.name])
    end
  end
end

Callers

@/lua/vehicle/powertrain/manualGearbox.lua

local function resetSounds(device)
  device.gearWhineInputTorqueSmoother:reset()
@/lua/vehicle/powertrain/sequentialGearbox.lua

local function resetSounds(device)
  device.gearWhineInputTorqueSmoother:reset()
@/lua/vehicle/powertrain/combustionEngine.lua

local function resetSounds(device, jbeamData)
  if not sounds.usesOldCustomSounds then

  device.turbocharger.resetSounds(v.data[jbeamData.turbocharger])
  device.supercharger.resetSounds(v.data[jbeamData.supercharger])
  device.turbocharger.resetSounds(v.data[jbeamData.turbocharger])
  device.supercharger.resetSounds(v.data[jbeamData.supercharger])
  device.nitrousOxideInjection.resetSounds(v.data[jbeamData.nitrousOxideInjection])
  device.supercharger.resetSounds(v.data[jbeamData.supercharger])
  device.nitrousOxideInjection.resetSounds(v.data[jbeamData.nitrousOxideInjection])
  device.thermals.resetSounds(jbeamData)
  device.nitrousOxideInjection.resetSounds(v.data[jbeamData.nitrousOxideInjection])
  device.thermals.resetSounds(jbeamData)
end
@/lua/vehicle/controller/sound/linearMovement.lua

local function resetSounds(jbeamData)
  if movementSound then
@/lua/vehicle/controller/pneumatics/lowAirPressureWarning.lua

local function resetSounds(jbeamData)
  if lowAirWarningSoundEvent then
@/lua/vehicle/powertrain/supercharger.lua

local function resetSounds(jbeamData)
end
@/lua/vehicle/powertrain/compressor.lua

local function resetSounds(device, jbeamData)
end
@/lua/vehicle/controller/couplings/fifthwheel.lua

-- local function resetSounds(jbeamData)
-- end
@/lua/vehicle/controller/pneumatics.lua

local function resetSounds()
  for _, g in pairs(beamGroups) do
@/lua/vehicle/controller/advancedCouplerControl.lua

local function resetSounds(jbeamData)
end
@/lua/vehicle/controller/pneumatics/actuators.lua

local function resetSounds()
  for _, g in pairs(beamGroups) do
@/lua/vehicle/powertrain/hydraulicCylinder.lua

local function resetSounds(cylinder, cylinderData)
  cylinder.movementVelocitySmoothing:reset()
@/lua/vehicle/powertrain/electricMotor.lua

local function resetSounds(device, jbeamData)
  if not sounds.usesOldCustomSounds then
@/lua/vehicle/powertrain/dctGearbox.lua

local function resetSounds(device)
  device.gearWhineInputTorqueSmoother:reset()
@/lua/vehicle/powertrain/automaticGearbox.lua

local function resetSounds(device)
  device.gearWhineInputTorqueSmoother:reset()
@/lua/vehicle/powertrain/nitrousOxideInjection.lua

local function resetSounds()
  for k, _ in ipairs(purgeValveNodes) do
@/lua/vehicle/controller/controllerTemplate.lua

-- local function resetSounds(jbeamData)
-- end
@/lua/vehicle/main.lua
  fire.reset()
  powertrain.resetSounds()
  controller.resetSounds()
  powertrain.resetSounds()
  controller.resetSounds()
  sounds.reset()
@/lua/vehicle/controller.lua

local function resetSounds()
  for _, v in pairs(sortedControllers) do
    if v.resetSounds then
      v.resetSounds()
    end
@/lua/vehicle/powertrain/hydraulicAccumulator.lua

local function resetSounds(device, jbeamData)
  for _, consumer in ipairs(device.connectedConsumers) do
    if consumer.resetSounds then
      consumer:resetSounds(device.consumerJbeamData[consumer.name])
    end
@/lua/vehicle/powertrain/turbocharger.lua

local function resetSounds(jbeamData)
end
@/lua/vehicle/powertrain.lua
    if device.resetSounds then
      device:resetSounds(deviceJbeamData[device.name])
    end
@/lua/vehicle/powertrain/combustionEngineThermals.lua

local function resetSounds()
  if radiatorHissSound then
@/lua/vehicle/powertrain/hydraulicPump.lua

local function resetSounds(device, jbeamData)
  device.volumeSmoothing:reset()
    if consumer.resetSounds then
      consumer:resetSounds(device.consumerJbeamData[consumer.name])
    end
@/lua/vehicle/controller/hydraulicSuspension.lua

local function resetSounds()
  lastPumpFlow = 0