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

◆ HandleDancingShadows()

void EntityLightSource::HandleDancingShadows ( float time,
float timeSlice )
inlineprivate

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

467 {
469 {
470 for (int i = 0; i < 3; i++ )
471 {
473
476
479
480 }
481
482 if (m_Parent && !m_Parent.ToDelete())
483 {
484 // In order to move with the light, it must be detached from its parent first
485
486 m_Parent.RemoveChild(this);
488
489 m_Parent.AddChild(this, -1);
490 m_Parent.Update();
491 }
492
494 {
495 Particle p = ParticleManager.GetInstance().PlayInWorld( ParticleList.DEBUG_DOT, GetPosition() );
496 p.SetParticleParam( EmitorParam.SIZE, 0.01);
497 }
498 }
499 else
500 {
502 }
503 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
vector m_LocalPos
Определения ScriptedLightBase.c:37
bool m_IsDebugEnabled
Определения ScriptedLightBase.c:34
Object m_Parent
Определения ScriptedLightBase.c:36
vector m_DancingShadowsLocalPos
Определения ScriptedLightBase.c:39
float m_DancingShadowsSpeed
Определения ScriptedLightBase.c:29
float m_DancingShadowsAmplitude
Определения ScriptedLightBase.c:28
void SetParticleParam(int parameter_id, float value)
Set the value of a parameter of all emitors in the particle.
Определения Particle.c:611
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:463
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EmitorParam
Определения EnVisual.c:114
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки ParticleList::DEBUG_DOT, GetPosition(), m_DancingShadowsAmplitude, m_DancingShadowsLocalPos, m_DancingShadowsSpeed, m_IsDebugEnabled, m_LocalPos, m_Parent, ParticleManager(), Math::RandomFloat(), Particle::SetParticleParam(), SetPosition() и Vector().

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