Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл Sound.c

См. исходные тексты.

Структуры данных

class  SoundObjectBuilder
 
class  SoundParams
 
class  AbstractWave
 

Перечисления

enum  WaveKind
 

Функции

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)
 

Переменные

 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()
 

Перечисления

◆ WaveKind

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

Функции

◆ AbstractSoundScene()

enum WaveKind AbstractSoundScene ( )
18{}

◆ AddEnvSoundVariables()

proto native void AddEnvSoundVariables ( vector position)

◆ AddVariable()

proto native void AddVariable ( string name,
float value )

◆ AddVariables()

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

◆ BuildSoundObject() [1/2]

SoundObject BuildSoundObject ( )

Перекрестные ссылки WAVEEFFECT, WAVEEFFECTEX, WAVEMUSIC и WAVESPEECH.

◆ BuildSoundObject() [2/2]

proto native SoundObject BuildSoundObject ( SoundObjectBuilder soundObjectbuilder)
private

◆ GetAudioLevel()

proto native float GetAudioLevel ( )
private

Используется в ScriptedWidgetEventHandler::UpdateAudioLevel().

◆ 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.

Предупреждения
Only gets the cached variable, for immediate effect use GetCurrent variant
Возвращает
vector The world position of the Effect
10 {
11 return Vector(Position[0],Position[1],Position[2]);
12 }
ref array< float > Position
Definition UndergroundAreaLoader.c:14
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки m_AreaPosition и m_Position.

Используется в 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() и 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 SetVariable ( string name,
float value )

Deprecated - same functionality, just poor naming.

◆ SetVOIPVolume()

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

◆ SoundObject()

◆ SoundObjectBuilder()

◆ UpdateEnvSoundControllers()

void UpdateEnvSoundControllers ( vector position)

Deprecated - same functionality, just poor naming.

17{

◆ UpdateVariables()

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

◆ ~AbstractSoundScene()

void ~AbstractSoundScene ( )
private
19{}

Переменные

◆ Event_OnSoundWaveEnded

ref ScriptInvoker Event_OnSoundWaveEnded = new ScriptInvoker()
private

◆ Event_OnSoundWaveHeaderLoaded

ref ScriptInvoker Event_OnSoundWaveHeaderLoaded = new ScriptInvoker()
private

◆ Event_OnSoundWaveLoaded

ref ScriptInvoker Event_OnSoundWaveLoaded = new ScriptInvoker()
private

◆ Event_OnSoundWaveStarted

class SoundParams Event_OnSoundWaveStarted = new ScriptInvoker()
private

◆ Event_OnSoundWaveStopped

ref ScriptInvoker Event_OnSoundWaveStopped = new ScriptInvoker()
private

◆ WAVEATTALWAYS

WAVEATTALWAYS

◆ WAVEEFFECT

WAVEEFFECT

Используется в BuildSoundObject().

◆ WAVEEFFECTEX

WAVEEFFECTEX

Используется в BuildSoundObject().

◆ WAVEENVIRONMENT

WAVEENVIRONMENT

◆ WAVEENVIRONMENTEX

WAVEENVIRONMENTEX

◆ WAVEMUSIC

WAVEMUSIC

Используется в BuildSoundObject().

◆ WAVESPEECH

WAVESPEECH

Используется в BuildSoundObject().

◆ WAVESPEECHEX

WAVESPEECHEX

◆ WAVEUI

WAVEUI

◆ WAVEWEAPONS

WAVEWEAPONS

◆ WAVEWEAPONSEX

WAVEWEAPONSEX