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

◆ HandleDancingShadows()

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

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

464 {
466 {
467 for (int i = 0; i < 3; i++ )
468 {
470
473
476
477 }
478
479 if (m_Parent && !m_Parent.ToDelete())
480 {
481 // In order to move with the light, it must be detached from its parent first
482
483 m_Parent.RemoveChild(this);
485
486 m_Parent.AddChild(this, -1);
487 m_Parent.Update();
488 }
489
491 {
492 Particle p = ParticleManager.GetInstance().PlayInWorld( ParticleList.DEBUG_DOT, GetPosition() );
493 p.SetParticleParam( EmitorParam.SIZE, 0.01);
494 }
495 }
496 else
497 {
499 }
500 }
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:438
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EmitorParam
Определения EnVisual.c:114
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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

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