initSounds
Definition
-- @/lua/vehicle/powertrain.lua:706
local function initSounds()
if not hasPowertrain then
return
end
for _, device in pairs(powertrainDevices) do
if device.initSounds then
device:initSounds(deviceJbeamData[device.name])
end
end
end
Callers
@/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/combustionEngineThermals.lua
local function initSounds(jbeamData)
if hasCoolantRadiator then
@/lua/vehicle/controller/pneumatics/lowAirPressureWarning.lua
local function initSounds(jbeamData)
local warningSoundEventName = jbeamData.lowAirWarningSoundEvent
@/lua/vehicle/controller/bypassDampers.lua
local function initSounds(jbeamData)
soundSettings = {
@/lua/vehicle/powertrain/turbocharger.lua
local function initSounds(jbeamData)
local turboHissLoopFilename = turbo.hissLoopEvent or "event:>Vehicle>Forced_Induction>Turbo_01>turbo_hiss"
@/lua/vehicle/controller/advancedCouplerControl.lua
local function initSounds(jbeamData)
end
@/lua/vehicle/powertrain.lua
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/controller/tirePressureControl.lua
-- local function initSounds(jbeamData)
-- end
@/lua/vehicle/controller/couplings/fifthwheel.lua
local function initSounds(jbeamData)
fithwheelAttachSoundEvent = jbeamData.attachSoundEvent or "event:>Vehicle>Latches>Special>tailgate_01_close"
@/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/hydraulicCylinder.lua
local function initSounds(cylinder, cylinderData)
local cylinderMovementEvent = cylinderData.movementLoopEvent
@/lua/vehicle/controller.lua
if c.initSounds then
c.initSounds(controllerJbeamData[controller.name])
end
local function initSounds()
for _, v in pairs(sortedControllers) do
if v.initSounds then
v.initSounds(controllerJbeamData[v.name])
end
@/lua/vehicle/wheels.lua
local function initSounds()
for i = 0, initialWheelRotatorCountDec do
@/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/controller/controllerTemplate.lua
-- local function initSounds(jbeamData)
-- end
@/lua/vehicle/powertrain/compressor.lua
local function initSounds(device, jbeamData)
local purgeSoundNode = jbeamData.purgeSoundNode and beamstate.nodeNameMap[jbeamData.purgeSoundNode]
@/lua/vehicle/controller/pneumatics.lua
local function initSounds(jbeamData)
local pressureBeamSoundData = v.data[jbeamData.groupSounds] or {}
@/lua/vehicle/powertrain/supercharger.lua
local function initSounds(jbeamData)
local whineSample = jbeamData.whineLoopEvent or "event:>Vehicle>Forced_Induction>Supercharger_01>supercharger"
@/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/powertrain/nitrousOxideInjection.lua
local function initSounds(data)
purgeEvent = data.purgeSoundEvent or "event:>Vehicle>Nitrous_Purging"
@/lua/vehicle/controller/sound/AVAS.lua
local function initSounds(jbeamData)
local forwardEvent = jbeamData.forwardSoundEvent or "event:>Engine>Pedestrian Warning>Forward_01"
@/lua/vehicle/controller/pneumatics/actuators.lua
local function initSounds(jbeamData)
local pressureBeamSoundData = v.data[jbeamData.groupSounds] or {}
@/lua/vehicle/powertrain/electricMotor.lua
local function initSounds(device, jbeamData)
if not sounds.usesOldCustomSounds then
@/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/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/powertrain/manualGearbox.lua
local function initSounds(device, jbeamData)
device.gearGrindSoundFile = jbeamData.gearGrindSoundFile or "event:>Vehicle>Transmission>grind>transmissionGrind_01"
@/lua/vehicle/powertrain/automaticGearbox.lua
local function initSounds(device, jbeamData)
local gearWhineOutputSample = jbeamData.gearWhineOutputEvent or "event:>Vehicle>Transmission>helical_01>twine_out"