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

◆ OnUndergroundPresenceUpdate()

void OnUndergroundPresenceUpdate ( EUndergroundPresence newPresence,
EUndergroundPresence oldPresence )
protected

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

525 {
526 //Print("-----> On Undeground Presence update " + EnumTools.EnumToString(EUndergroundPresence, newPresence) + " " + EnumTools.EnumToString(EUndergroundPresence, oldPresence));
527 if (newPresence > EUndergroundPresence.NONE)
528 {
529 if (oldPresence == EUndergroundPresence.NONE)
530 {
531 EnableLights(true);
532 if (m_BestTrigger && m_BestTrigger.m_Data && m_BestTrigger.m_Data.AmbientSoundType != string.Empty)
534 }
535 if (newPresence > EUndergroundPresence.OUTER && oldPresence <= EUndergroundPresence.OUTER)
536 {
539 }
540 if (newPresence == EUndergroundPresence.FULL)
541 {
543 m_AnimTimerLightBlend.Run(1, this, "OnUpdateTimerIn", "OnUpdateTimerEnd",0, false, LIGHT_BLEND_SPEED_IN);
544 }
545 }
546 if (newPresence < EUndergroundPresence.FULL && oldPresence == EUndergroundPresence.FULL)
547 {
549 m_AnimTimerLightBlend.Run(0, this, "OnUpdateTimerOut", "OnUpdateTimerEnd",m_LightingLerp, false, LIGHT_BLEND_SPEED_OUT);
550 }
551 if (newPresence <= EUndergroundPresence.OUTER && oldPresence > EUndergroundPresence.OUTER)
552 {
554 }
555 if (newPresence == EUndergroundPresence.NONE)
556 {
558
559 if (oldPresence >= EUndergroundPresence.OUTER)
560 {
562 EnableLights(false);
563 }
564 }
565 }
void StopAmbientSound()
Определения UndergroundHandlerClient.c:513
ref AnimationTimer m_AnimTimerLightBlend
Определения UndergroundHandlerClient.c:19
enum EUndergroundPresence LIGHT_BLEND_SPEED_IN
UndergroundTrigger m_BestTrigger
Определения UndergroundHandlerClient.c:34
void EnableLights(bool enable)
Определения UndergroundHandlerClient.c:473
const float LIGHT_BLEND_SPEED_OUT
Определения UndergroundHandlerClient.c:12
float m_LightingLerp
Определения UndergroundHandlerClient.c:30
EUndergroundPresence
Определения UndergroundHandlerClient.c:2
void PlayAmbientSound()
Определения UndergroundHandlerClient.c:502
AnimationTimer class. This timer is for animating float value. usage:
Определения 3_Game/tools/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_BestTrigger, m_LightingLerp, PlayAmbientSound(), World::SetUserLightingLerp(), StopAmbientSound() и Weather::SuppressLightningSimulation().

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