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

◆ UpdatePlayer()

void Backlit::UpdatePlayer ( bool bForce)
inlineprivate

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

346 {
347 if( !m_BacklitActive )
348 return; // always return when backlit not present!
349
350 // force update
351 if( bForce )
352 {
353 m_HealthBefore = -1;
354 m_BloodBefore = -1;
355 }
356
357 // do not update
359 return;
360
361 UAInputAPI api = GetUApi();
362 // remove previous layers
364
365 // set keys to layer CUSTOM
370
373
376
377 // health
379 // blood
381
382 // animation
383 api.Backlit_Background(0,0xff220000,0xff222222);
384
385 // save level
388 }
const int EUABLAYER_CUSTOM
Определения Backlit.c:19
const int EUABACKLIT_ON
Определения Backlit.c:27
const int EUABLAYER_ALL
Input layer type.
Определения Backlit.c:12
proto native UAInputAPI GetUApi()
int m_HealthBefore
Определения Backlit.c:327
void VisualiseBlood(int iLevel)
Определения Backlit.c:289
bool m_BacklitActive
Определения Backlit.c:108
int m_HealthNew
Определения Backlit.c:330
int m_BloodBefore
Определения Backlit.c:328
void VisualiseHealth(int iLevel)
Определения Backlit.c:251
int m_BloodNew
Определения Backlit.c:331
proto native void Backlit_Remove(int eLayer)
proto native void Backlit_Background(int eType, int iColor1, int iColor2)
proto native void Backlit_KeyByName(string strName, int eLayer, int eType, int iColor)

Перекрестные ссылки UAInputAPI::Backlit_Background(), UAInputAPI::Backlit_KeyByName(), UAInputAPI::Backlit_Remove(), EUABACKLIT_ON, EUABLAYER_ALL, EUABLAYER_CUSTOM, GetUApi(), m_BacklitActive, m_BloodBefore, m_BloodNew, m_HealthBefore, m_HealthNew, VisualiseBlood() и VisualiseHealth().

Используется в OnLeaveCar() и OnSwimmingStop().