DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateSoundForAnimationSource()

EffectSound CreateSoundForAnimationSource ( string animSource)
protected

См. определение в файле MotorbikeScript.c строка 277

278 {
280 int pivotIndex = -1;
281
282 string selectionName = GetSelectionFromAnimSource(animSource);
283 if (selectionName != "")
284 {
285 position = GetSelectionBasePositionLS(selectionName);
286
287 int level = GetViewGeometryLevel();
288
289 array<int> pivots = new array<int>();
290
291 pivots.Clear();
292 GetBonePivotsForAnimationSource(level, animSource, pivots);
293
294 if (pivots.Count())
295 {
296 pivotIndex = pivots[0];
297 }
298 }
299
300 WaveKind waveKind = WaveKind.WAVEEFFECTEX;
301 EffectSound sound = new EffectSound();
302
303 sound.SetAutodestroy(true);
304 sound.SetParent(this, pivotIndex);
305 sound.SetPosition(ModelToWorld(position));
306 sound.SetLocalPosition(position);
307 sound.SetSoundWaveKind(waveKind);
308
309 return sound;
310 }
vector position
Определения DustKickupEffects.c:20
WaveKind
Определения Sound.c:2
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:607
void SetSoundWaveKind(WaveKind wave_kind)
Set WaveKind for the sound.
Определения EffectSound.c:788
override void SetParent(Object parent_obj, int pivot)
Set parent for the sound to follow.
Определения EffectSound.c:658
Wrapper class for managing sound through SEffectManager.
Определения EffectSound.c:5
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static const vector Zero
Определения EnConvert.c:123
Определения EnConvert.c:119

Перекрестные ссылки position, EffectSound::SetAutodestroy(), EffectSound::SetParent(), EffectSound::SetSoundWaveKind() и vector::Zero.

Используется в Car::HandleDoorsSound(), Car::HandleSeatAdjustmentSound(), Motorbike_01_ColorBase::OnAnimationPhaseStarted() и Truck_01_Base::OnAnimationPhaseStarted().