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

◆ OnUndergroundPresenceUpdate()

void OnUndergroundPresenceUpdate ( EUndergroundPresence newPresence,
EUndergroundPresence oldPresence )
protected

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

517 {
518 //Print("-----> On Undeground Presence update " + EnumTools.EnumToString(EUndergroundPresence, newPresence) + " " + EnumTools.EnumToString(EUndergroundPresence, oldPresence));
519 if (newPresence > EUndergroundPresence.NONE)
520 {
521 if (oldPresence == EUndergroundPresence.NONE)
522 {
523 EnableLights(true);
524 }
525 if (newPresence > EUndergroundPresence.OUTER && oldPresence <= EUndergroundPresence.OUTER)
526 {
529 }
530 if (newPresence == EUndergroundPresence.FULL)
531 {
533 m_AnimTimerLightBlend.Run(1, this, "OnUpdateTimerIn", "OnUpdateTimerEnd",0, false, LIGHT_BLEND_SPEED_IN);
534 }
535 }
536 if (newPresence < EUndergroundPresence.FULL && oldPresence == EUndergroundPresence.FULL)
537 {
539 m_AnimTimerLightBlend.Run(0, this, "OnUpdateTimerOut", "OnUpdateTimerEnd",m_LightingLerp, false, LIGHT_BLEND_SPEED_OUT);
540 }
541 if (newPresence <= EUndergroundPresence.OUTER && oldPresence > EUndergroundPresence.OUTER)
542 {
544 }
545 if (newPresence == EUndergroundPresence.NONE)
546 {
548
549 if (oldPresence >= EUndergroundPresence.OUTER)
550 {
552 EnableLights(false);
553 }
554 }
555 }
void StopAmbientSound()
Определения UndergroundHandlerClient.c:505
ref AnimationTimer m_AnimTimerLightBlend
Определения UndergroundHandlerClient.c:19
enum EUndergroundPresence LIGHT_BLEND_SPEED_IN
void EnableLights(bool enable)
Определения UndergroundHandlerClient.c:465
const float LIGHT_BLEND_SPEED_OUT
Определения UndergroundHandlerClient.c:12
float m_LightingLerp
Определения UndergroundHandlerClient.c:30
EUndergroundPresence
Определения UndergroundHandlerClient.c:2
void PlayAmbientSound()
Определения UndergroundHandlerClient.c:494
AnimationTimer class. This timer is for animating float value. usage:
Определения tools.c:653
proto native World GetWorld()
proto native Weather GetWeather()
Returns weather controller object.
proto native void SuppressLightningSimulation(bool state)
enables/disables thunderbolt simulation on client (together with sounds)
proto native void SetUserLightingLerp(float val)
proto native CGame GetGame()

Перекрестные ссылки EnableLights(), GetGame(), CGame::GetWeather(), CGame::GetWorld(), LIGHT_BLEND_SPEED_IN, LIGHT_BLEND_SPEED_OUT, m_AnimTimerLightBlend, m_LightingLerp, PlayAmbientSound(), World::SetUserLightingLerp(), StopAmbientSound() и Weather::SuppressLightningSimulation().

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