VE Lua Documentation

Press F to search!

initSounds

Definition


-- @/lua/vehicle/controller.lua:749

local function initSounds()
  for _, v in pairs(sortedControllers) do
    if v.initSounds then
      v.initSounds(controllerJbeamData[v.name])
    end
  end

  cacheAllControllerFunctions()
end

Callers

@/lua/vehicle/powertrain/nitrousOxideInjection.lua

local function initSounds(data)
  purgeEvent = data.purgeSoundEvent or "event:>Vehicle>Nitrous_Purging"
@/lua/vehicle/controller/pneumatics/lowAirPressureWarning.lua

local function initSounds(jbeamData)
  local warningSoundEventName = jbeamData.lowAirWarningSoundEvent
@/lua/vehicle/main.lua
  fire.init()
  wheels.initSounds()
  powertrain.initSounds()
  wheels.initSounds()
  powertrain.initSounds()
  controller.initSounds()
  powertrain.initSounds()
  controller.initSounds()
  guihooks.message("", 0, "^vehicle\\.") -- clear damage messages on vehicle restart
@/lua/vehicle/controller/advancedCouplerControl.lua

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

local function initSounds(jbeamData)
  local pressureBeamSoundData = v.data[jbeamData.groupSounds] or {}
@/lua/vehicle/powertrain/automaticGearbox.lua

local function initSounds(device, jbeamData)
  local gearWhineOutputSample = jbeamData.gearWhineOutputEvent or "event:>Vehicle>Transmission>helical_01>twine_out"
@/lua/vehicle/powertrain/hydraulicAccumulator.lua

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

local function initSounds(device, jbeamData)
  local exhaustEndNodes = device.thermals.exhaustEndNodes or {}

  device.turbocharger.initSounds(v.data[jbeamData.turbocharger])
  device.supercharger.initSounds(v.data[jbeamData.supercharger])
  device.turbocharger.initSounds(v.data[jbeamData.turbocharger])
  device.supercharger.initSounds(v.data[jbeamData.supercharger])
  device.nitrousOxideInjection.initSounds(v.data[jbeamData.nitrousOxideInjection])
  device.supercharger.initSounds(v.data[jbeamData.supercharger])
  device.nitrousOxideInjection.initSounds(v.data[jbeamData.nitrousOxideInjection])
  device.thermals.initSounds(jbeamData)
  device.nitrousOxideInjection.initSounds(v.data[jbeamData.nitrousOxideInjection])
  device.thermals.initSounds(jbeamData)
end
@/lua/vehicle/powertrain/sequentialGearbox.lua

local function initSounds(device, jbeamData)
  local gearWhineOutputSample = jbeamData.gearWhineOutputEvent or "event:>Vehicle>Transmission>straight_01>twine_out_race"
@/lua/vehicle/controller.lua
  if c.initSounds then
    c.initSounds(controllerJbeamData[controller.name])
  end
    if v.initSounds then
      v.initSounds(controllerJbeamData[v.name])
    end
@/lua/vehicle/powertrain.lua

local function initSounds()
  if not hasPowertrain then
    if device.initSounds then
      device:initSounds(deviceJbeamData[device.name])
    end
    log("W", "powertrain.resetSounds", "One or more powertrain devices do not support dedicated reset, using full init instead!")
    initSounds()
    return
@/lua/vehicle/powertrain/turbocharger.lua

local function initSounds(jbeamData)
  local turboHissLoopFilename = turbo.hissLoopEvent or "event:>Vehicle>Forced_Induction>Turbo_01>turbo_hiss"
@/lua/vehicle/powertrain/hydraulicCylinder.lua

local function initSounds(cylinder, cylinderData)
  local cylinderMovementEvent = cylinderData.movementLoopEvent
@/lua/vehicle/controller/sound/linearMovement.lua

local function initSounds(jbeamData)
  --base volume for both the noise part and the segment/endstop sounds
@/lua/vehicle/controller/hydraulicSuspension.lua

local function initSounds(jbeamData)
  local pumpSoundEvent = jbeamData.pumpSample or "event:>Vehicle>Hydraulics>Pump_01"
@/lua/vehicle/powertrain/hydraulicPump.lua

local function initSounds(device, jbeamData)
  local pumpLoopEvent = jbeamData.pumpLoopEvent or "event:>Vehicle>Hydraulics>Pump_Big"
    if consumer.initSounds then
      consumer:initSounds(device.consumerJbeamData[consumer.name])
    end
@/lua/vehicle/controller/sound/AVAS.lua

local function initSounds(jbeamData)
  local forwardEvent = jbeamData.forwardSoundEvent or "event:>Engine>Pedestrian Warning>Forward_01"
@/lua/vehicle/powertrain/supercharger.lua

local function initSounds(jbeamData)
  local whineSample = jbeamData.whineLoopEvent or "event:>Vehicle>Forced_Induction>Supercharger_01>supercharger"
@/lua/vehicle/controller/tirePressureControl.lua

-- local function initSounds(jbeamData)
-- end
@/lua/vehicle/powertrain/manualGearbox.lua

local function initSounds(device, jbeamData)
  device.gearGrindSoundFile = jbeamData.gearGrindSoundFile or "event:>Vehicle>Transmission>grind>transmissionGrind_01"
@/lua/vehicle/powertrain/compressor.lua

local function initSounds(device, jbeamData)
  local purgeSoundNode = jbeamData.purgeSoundNode and beamstate.nodeNameMap[jbeamData.purgeSoundNode]
@/lua/vehicle/wheels.lua

local function initSounds()
  for i = 0, initialWheelRotatorCountDec do
@/lua/vehicle/powertrain/combustionEngineThermals.lua

local function initSounds(jbeamData)
  if hasCoolantRadiator then
@/lua/vehicle/controller/bypassDampers.lua

local function initSounds(jbeamData)
  soundSettings = {
@/lua/vehicle/powertrain/dctGearbox.lua

local function initSounds(device, jbeamData)
  local gearWhineOutputSample = jbeamData.gearWhineOutputEvent or "event:>Vehicle>Transmission>helical_01>twine_out"
@/lua/vehicle/powertrain/electricMotor.lua

local function initSounds(device, jbeamData)
  if not sounds.usesOldCustomSounds then
@/lua/vehicle/controller/controllerTemplate.lua

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

local function initSounds(jbeamData)
  local pressureBeamSoundData = v.data[jbeamData.groupSounds] or {}
@/lua/vehicle/controller/couplings/fifthwheel.lua

local function initSounds(jbeamData)
  fithwheelAttachSoundEvent = jbeamData.attachSoundEvent or "event:>Vehicle>Latches>Special>tailgate_01_close"