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

◆ Simulate()

void FlareSimulation::Simulate ( Entity flare)
inlineprotected

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

71 {
72 DayZPlayer player = g_Game.GetPlayer();
73 if ( player )
74 vector playerPos = player.GetPosition();
75
76 float dist = vector.DistanceSq(flare.GetPosition(), playerPos);
77
79 m_ParMainFire.SetParameter( 0, EmitorParam.SIZE, MiscGameplayFunctions.Normalize(dist, MAX_FARLIGHT_DIST * MAX_FARLIGHT_DIST) );
80
83
84 //CastFlareAINoise( flare.GetPosition() );
86 }
DayZGame g_Game
Определения DayZGame.c:3942
Particle m_ParMainFire
Определения FlareSimulation.c:3
static const float MAX_FARLIGHT_DIST
Определения FlareSimulation.c:6
void TurnOffDistantLight()
Определения FlareSimulation.c:144
void FlareParticleUpdate()
Определения FlareSimulation.c:89
static const float MIN_FARLIGHT_DIST
Определения FlareSimulation.c:7
EmitorParam
Определения EnVisual.c:114

Перекрестные ссылки vector::DistanceSq(), FlareParticleUpdate(), g_Game, m_ParMainFire, MAX_FARLIGHT_DIST, MIN_FARLIGHT_DIST и TurnOffDistantLight().