DayZ 1.24
Loading...
Searching...
No Matches
Sound.c File Reference

Go to the source code of this file.

Classes

class  SoundObjectBuilder
 
class  SoundParams
 
class  AbstractWave
 

Enumerations

enum  WaveKind
 

Functions

enum WaveKind AbstractSoundScene ()
 
void ~AbstractSoundScene ()
 
proto native AbstractWave Play2D (SoundObject soundObject, SoundObjectBuilder soundBuilder)
 
proto native AbstractWave Play3D (SoundObject soundObject, SoundObjectBuilder soundBuilder)
 
proto native SoundObject BuildSoundObject (SoundObjectBuilder soundObjectbuilder)
 
proto native float GetRadioVolume ()
 
proto native void SetRadioVolume (float vol, float time)
 
proto native float GetSpeechExVolume ()
 
proto native void SetSpeechExVolume (float vol, float time)
 
proto native float GetMusicVolume ()
 
proto native void SetMusicVolume (float vol, float time)
 
proto native float GetSoundVolume ()
 
proto native void SetSoundVolume (float vol, float time)
 
proto native float GetVOIPVolume ()
 
proto native void SetVOIPVolume (float vol, float time)
 
proto native float GetSilenceThreshold ()
 
proto native float GetAudioLevel ()
 
class SoundObjectBuilder SoundObject (SoundParams soundParams)
 
void SoundObjectBuilder (SoundParams soundParams)
 
SoundObject BuildSoundObject ()
 
proto native void Initialize (SoundParams soundParams)
 
proto native void AddEnvSoundVariables (vector position)
 
proto native void AddVariable (string name, float value)
 
proto void AddVariables (notnull array< string > names, array< float > values=null)
 
void UpdateEnvSoundControllers (vector position)
 Deprecated - same functionality, just poor naming.
 
void SetVariable (string name, float value)
 Deprecated - same functionality, just poor naming.
 
proto void UpdateVariables (notnull array< float > values)
 
proto native void SetParent (IEntity parent, int pivot=-1)
 
proto native IEntity GetParent ()
 Get parent of the Effect.
 
proto native int GetHierarchyPivot ()
 
proto native void SetPosition (vector position)
 Note: Sets the position locally if parented, retrieves globally with the sound offset.
 
proto native vector GetPosition ()
 Get the world position of the Effect.
 
proto native void SetSpeed (vector speed)
 Note: Sets the speed locally if parented, retrieves globally with the parent speed.
 
proto native vector GetSpeed ()
 
proto native void SetOcclusionObstruction (float occlusion, float obstruction)
 
proto native void SetKind (WaveKind kind)
 

Variables

 WAVEEFFECT
 
 WAVEEFFECTEX
 
 WAVESPEECH
 
 WAVEMUSIC
 
 WAVESPEECHEX
 
 WAVEENVIRONMENT
 
 WAVEENVIRONMENTEX
 
 WAVEWEAPONS
 
 WAVEWEAPONSEX
 
 WAVEATTALWAYS
 
 WAVEUI
 
class SoundParams Event_OnSoundWaveStarted = new ScriptInvoker()
 
ref ScriptInvoker Event_OnSoundWaveStopped = new ScriptInvoker()
 
ref ScriptInvoker Event_OnSoundWaveLoaded = new ScriptInvoker()
 
ref ScriptInvoker Event_OnSoundWaveHeaderLoaded = new ScriptInvoker()
 
ref ScriptInvoker Event_OnSoundWaveEnded = new ScriptInvoker()
 

Enumeration Type Documentation

◆ WaveKind

Definition at line 1 of file Sound.c.

2{
13 WAVEUI
14}
WAVEENVIRONMENTEX
Definition Sound.c:25
WAVEENVIRONMENT
Definition Sound.c:24
WAVEWEAPONSEX
Definition Sound.c:27
WAVEWEAPONS
Definition Sound.c:26
WAVEEFFECT
Definition Sound.c:19
WAVEUI
Definition Sound.c:30
WAVEEFFECTEX
Definition Sound.c:20
WAVEATTALWAYS
Definition Sound.c:28
WAVESPEECHEX
Definition Sound.c:23
WAVESPEECH
Definition Sound.c:21
WAVEMUSIC
Definition Sound.c:22

Function Documentation

◆ AbstractSoundScene()

enum WaveKind AbstractSoundScene ( )

Definition at line 1 of file Sound.c.

18{}

◆ AddEnvSoundVariables()

proto native void SoundObject::AddEnvSoundVariables ( vector position)

◆ AddVariable()

proto native void SoundObject::AddVariable ( string name,
float value )

◆ AddVariables()

proto void SoundObject::AddVariables ( notnull array< string > names,
array< float > values = null )

◆ BuildSoundObject() [1/2]

SoundObject SoundObject::BuildSoundObject ( )

Definition at line 2 of file Sound.c.

References WAVEEFFECT, WAVEEFFECTEX, WAVEMUSIC, and WAVESPEECH.

◆ BuildSoundObject() [2/2]

proto native SoundObject BuildSoundObject ( SoundObjectBuilder soundObjectbuilder)
private

◆ GetAudioLevel()

proto native float GetAudioLevel ( )
private

◆ GetHierarchyPivot()

proto native int GetHierarchyPivot ( )
private

◆ GetMusicVolume()

proto native float GetMusicVolume ( )
private

◆ GetPosition()

proto native vector GetPosition ( )
private

Get the world position of the Effect.

Warning
Only gets the cached variable, for immediate effect use GetCurrent variant
Returns
vector The world position of the Effect

Definition at line 44 of file UndergroundAreaLoader.c.

10 {
11 return Vector(Position[0], Position[1], Position[2]);
12 }
ref array< float > Position
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

References m_AreaPosition, and m_Position.

Referenced by FireplaceBase::AfterStoreLoad(), UIScriptedMenu::CameraToolsMenu(), DayZInfected::ChaseAttackLogic(), CheckAllowUpdate(), DayZPlayer::CommandHandler(), ManBase::CommandHandler(), DayZInfected::ComputeHitDirectionAngle(), DayZCreatureAI::ComputeHitDirectionAngleDeg(), DayZInfected::ComputeHitDirectionAngleEx(), CreateLight(), Grenade_Base::CreateLight(), ItemBase::CreateRope(), CreateTrigger(), Entity::DeathUpdate(), KitBase::DisassembleKit(), ItemBase::DoMeasurement(), ScriptConsoleItemsTab::DrawItems(), ManBase::DropItem(), ContaminatedArea_Dynamic::EEInit(), House::EEInit(), ItemBase::EEItemAttached(), ItemBase::EEItemDetached(), FlammableBase::EEItemDetached(), Ammo_40mm_Explosive::EEKilled(), ContaminatedArea_Dynamic::EEOnCECreate(), Inventory_Base::EmptySeedPack(), InventoryItem::EOnContact(), DynamicArea_Flare::EOnFrame(), DayZSpectator::EOnFrame(), FireplaceBase::EOnTouch(), EOnTouch(), DayZInfected::EvaluateCrawlTransitionAnimation(), DayZPlayer::EvaluateDamageHitAnimation(), DayZPlayer::EvaluateDeathAnimation(), Hit_MeatBones::Event_OnStarted(), IEntity::Explode(), Explode(), CGame::ExplosionEffects(), ExplosivesBase(), DayZInfected::FightAttackLogic(), DayZInfected::FightLogic(), GenerateCarHornAINoise(), DayZInfected::GetAttackPitch(), GetCeilingHeight(), IEntity::GetCenter(), GetClosestCarWheel(), GetClosestDoor(), EffectSound::GetCurrentLocalPosition(), EffectSound::GetCurrentPosition(), GetEmptyingEndSoundset(), GetEmptyingLoopSoundset(), ItemBase::GetKitSpawnPosition(), BaseBuildingBase::GetKitSpawnPosition(), IEntity::GetSurfaceNoise(), Entity::GetUniversalTemperatureSourcePosition(), EntityLightSource::HandleDancingShadows(), HandleDoorsSound(), BaseBuildingBase::HandleRefreshers(), HandleSeatAdjustmentSound(), DayZPlayer::HandleView(), Heating(), BaseBuildingBase::InsertRefresherPosition(), BaseBuildingBase::IsFacingCamera(), BaseBuildingBase::IsFacingPlayer(), ManBase::IsFacingTarget(), BaseBuildingBase::IsPlayerInside(), TentBase::IsPlayerInside(), RemoteDetonatorTrigger::OnActivatedByItem(), CarScript::OnAnimationPhaseStarted(), OnCEUpdate(), RemoteDetonatorTrigger::OnCEUpdate(), BaseBuildingBase::OnCEUpdate(), ManBase::OnConnect(), Grenade_ChemGas::OnDamageDestroyed(), ClaymoreMine::OnDebugSpawn(), RifleSingleShot_Base::OnDebugSpawn(), KitBase::OnDebugSpawn(), OnDebugSpawn(), FishingRod_Base_New::OnDebugSpawn(), Crossbow_Base::OnDebugSpawnEx(), FireworksLauncher::OnEventServer(), Anniversary_FireworksLauncher::OnEventServer(), Grenade_ChemGas::OnExplode(), IEntity::OnExplodeClient(), Weapon::OnFireModeChange(), FireworksLauncher::OnFuseIgnitedClient(), PluginBase::OnGUITimer(), FireplaceBase::OnIgnitedThis(), GardenBase::OnPlacementComplete(), KitBase::OnPlacementComplete(), InventoryItem::OnRPC(), CGame::OnRPC(), DayZPlayer::OnStepEvent(), OnSteppedOn(), GardenBase::OnStoreLoad(), ItemBase::OnStoreLoad(), AlarmClock_ColorBase::OnUpdate(), KitchenTimer::OnUpdate(), BotStateBase::OnUpdate(), AnniversarySpotLight::OnVariablesSynchronized(), InventoryItemSuper::OnWasAttached(), InventoryItemSuper::OnWasDetached(), OnWork(), OnWorkStart(), ItemBase::ParticleTest(), BaseBuildingBase::PerformRoofCheckForBase(), ItemBase::PlaceOnGround(), InventoryItem::PlayAttachSound(), InventoryItem::PlayDeployFinishSound(), ItemBase::PlayDeployLoopSound(), Inventory_Base::PlayDeployLoopSound(), InventoryItem::PlayDeployLoopSoundEx(), InventoryItem::PlayDeploySound(), PlayDisarmingLoopSound(), EntityAI::PlayImpactSound(), InventoryItem::PlayPlaceSound(), PlayRepackingLoopSound(), Backpack_Base::PlayRepackingLoopSound(), DayZCreature::PlaySound(), EntityAI::PlaySound(), DayZPlayer::PlaySound(), PlaySoundActivate(), TrapBase::PlaySoundBiteEmpty(), TrapBase::PlaySoundBiteLeg(), PlaySoundEx(), TrapBase::PlaySoundOpen(), PlayVFX(), Environment::ProcessItemsDryness(), DayZCreature::ProcessSoundEvent(), DayZPlayer::ProcessSoundEvent(), DayZCreature::ProcessSoundVoiceEvent(), DayZInfected::ProcessSoundVoiceEvent(), DayZCreature::ProcessStepEvent(), RefreshFireplaceVisuals(), ItemBase::RemovePlant(), BaseBuildingBase::RemoveRefresherPosition(), House::RequestSoundEvent(), ManBase::SaySoundSet(), ManBase::SetContaminatedEffectEx(), SetParticlePosition(), BaseBuildingBase::SetRefresherActive(), Barrel_ColorBase::SoundBarrelClosePlay(), FireplaceBase::SoundBarrelClosePlay(), Barrel_ColorBase::SoundBarrelOpenPlay(), FireplaceBase::SoundBarrelOpenPlay(), Edible_Base::SoundCookingStart(), Entity::SoundHardBushFallingPlay(), Entity::SoundHardTreeFallingPlay(), EffectSound::SoundLoadEx(), EffectSound::SoundPlayEx(), Entity::SoundSoftBushFallingPlay(), Entity::SoundSoftTreeFallingPlay(), ItemBase::SoundTentClosePlay(), ItemBase::SoundTentCloseWindowPlay(), ItemBase::SoundTentOpenPlay(), ItemBase::SoundTentOpenWindowPlay(), ItemBase::SpawnCatch(), TrapSpawnBase::SpawnCatch(), ManBase::SpawnEntityOnGroundOnCursorDir(), TentBase::SpawnKit(), PluginBase::SpawnNewInfectedEntity(), CrashBase::SpawnRandomDeers(), UndergroundTriggerCarrierBase::SpawnTrigger(), FlammableBase::StandUp(), EffectParticle::Start(), StartActivate(), Particle::StopParticle(), TestOwnership(), EntityLightSource::TryShadowOptimization(), FlammableBase::TryTransformIntoStick(), AreaDamageTriggerBase::UpdateInsiders(), UpdateMusic(), ManBase::UpdatePlayerMeasures(), and ScriptedWidgetEventHandler::UpdatePos().

◆ GetRadioVolume()

proto native float GetRadioVolume ( )
private

◆ GetSilenceThreshold()

proto native float GetSilenceThreshold ( )
private

◆ GetSoundVolume()

proto native float GetSoundVolume ( )
private

◆ GetSpeechExVolume()

proto native float GetSpeechExVolume ( )
private

◆ GetSpeed()

proto native vector GetSpeed ( )
private

◆ GetVOIPVolume()

proto native float GetVOIPVolume ( )
private

◆ Initialize()

proto native void Initialize ( SoundParams soundParams)

◆ Play2D()

proto native AbstractWave Play2D ( SoundObject soundObject,
SoundObjectBuilder soundBuilder )
private

◆ Play3D()

proto native AbstractWave Play3D ( SoundObject soundObject,
SoundObjectBuilder soundBuilder )
private

◆ SetKind()

proto native void SetKind ( WaveKind kind)
private

◆ SetMusicVolume()

proto native void SetMusicVolume ( float vol,
float time )
private

◆ SetOcclusionObstruction()

proto native void SetOcclusionObstruction ( float occlusion,
float obstruction )
private

◆ SetParent()

proto native void SetParent ( IEntity parent,
int pivot = -1 )
private

Note: 'SoundObject' is not an Entity, and therefore can not be accessed by using 'IEntity.GetChildren', though internally 'SoundObject.SetParent' is similiar to 'IEntity.AddChild' by creating an 'EntityHierarchyComponent'

◆ SetRadioVolume()

proto native void SetRadioVolume ( float vol,
float time )
private

◆ SetSoundVolume()

proto native void SetSoundVolume ( float vol,
float time )
private

◆ SetSpeechExVolume()

proto native void SetSpeechExVolume ( float vol,
float time )
private

◆ SetSpeed()

proto native void SetSpeed ( vector speed)
private

Note: Sets the speed locally if parented, retrieves globally with the parent speed.

◆ SetVariable()

void SoundObject::SetVariable ( string name,
float value )

Deprecated - same functionality, just poor naming.

Definition at line 20 of file Sound.c.

◆ SetVOIPVolume()

proto native void SetVOIPVolume ( float vol,
float time )
private

◆ SoundObject()

◆ SoundObjectBuilder()

◆ UpdateEnvSoundControllers()

void SoundObject::UpdateEnvSoundControllers ( vector position)

Deprecated - same functionality, just poor naming.

Definition at line 14 of file Sound.c.

17{

◆ UpdateVariables()

proto void UpdateVariables ( notnull array< float > values)
private

◆ ~AbstractSoundScene()

void ~AbstractSoundScene ( )
private

Definition at line 19 of file Sound.c.

19{}

Variable Documentation

◆ Event_OnSoundWaveEnded

ref ScriptInvoker Event_OnSoundWaveEnded = new ScriptInvoker()
private

Definition at line 115 of file Sound.c.

◆ Event_OnSoundWaveHeaderLoaded

ref ScriptInvoker Event_OnSoundWaveHeaderLoaded = new ScriptInvoker()
private

Definition at line 114 of file Sound.c.

◆ Event_OnSoundWaveLoaded

ref ScriptInvoker Event_OnSoundWaveLoaded = new ScriptInvoker()
private

Definition at line 113 of file Sound.c.

◆ Event_OnSoundWaveStarted

class SoundParams Event_OnSoundWaveStarted = new ScriptInvoker()
private

◆ Event_OnSoundWaveStopped

ref ScriptInvoker Event_OnSoundWaveStopped = new ScriptInvoker()
private

Definition at line 112 of file Sound.c.

◆ WAVEATTALWAYS

WAVEATTALWAYS

Definition at line 28 of file Sound.c.

◆ WAVEEFFECT

WAVEEFFECT

Definition at line 19 of file Sound.c.

Referenced by BuildSoundObject().

◆ WAVEEFFECTEX

WAVEEFFECTEX

Definition at line 20 of file Sound.c.

Referenced by BuildSoundObject().

◆ WAVEENVIRONMENT

WAVEENVIRONMENT

Definition at line 24 of file Sound.c.

◆ WAVEENVIRONMENTEX

WAVEENVIRONMENTEX

Definition at line 25 of file Sound.c.

◆ WAVEMUSIC

WAVEMUSIC

Definition at line 22 of file Sound.c.

Referenced by BuildSoundObject().

◆ WAVESPEECH

WAVESPEECH

Definition at line 21 of file Sound.c.

Referenced by BuildSoundObject().

◆ WAVESPEECHEX

WAVESPEECHEX

Definition at line 23 of file Sound.c.

◆ WAVEUI

WAVEUI

Definition at line 29 of file Sound.c.

◆ WAVEWEAPONS

WAVEWEAPONS

Definition at line 26 of file Sound.c.

◆ WAVEWEAPONSEX

WAVEWEAPONSEX

Definition at line 27 of file Sound.c.