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

◆ RefreshState()

void RefreshState ( )
protected

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

331 {
333 {
334 return;
335 }
336
337 if ( g_Game.IsServer() )
338 {
339 // item is owned by player
340 if ( GetHierarchyRootPlayer() != NULL && m_AnimationPhaseGrounded != "" )
341 {
342 SetAnimationPhase( m_AnimationPhaseSet, 1 );
344 {
345 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
346 }
347 SetAnimationPhase( m_AnimationPhaseGrounded, 0 );
348 }
349 // item is set active
350 else if ( IsActive() )
351 {
352 if ( m_AnimationPhaseGrounded != "" )
353 {
354 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
355 }
357 {
358 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
359 SetAnimationPhase( m_AnimationPhaseSet, 0 );
360 }
361 }
362 // item is inactive and not owned by player (on the ground)
363 else if ( IsInactive() )
364 {
366 {
367 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
368 }
370 {
371 SetAnimationPhase( m_AnimationPhaseSet, 1 );
372 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
373 }
374 }
375 }
376 }
DayZGame g_Game
Определения DayZGame.c:4074
string m_AnimationPhaseTriggered
Определения TrapBase.c:34
bool m_WasActivatedOrDeactivated
DEPRECATED Used for explosive traps to prevent detonation after destroying through disarm action.
Определения TrapBase.c:30
string m_AnimationPhaseGrounded
Определения TrapBase.c:32
string m_AnimationPhaseSet
Определения TrapBase.c:33
bool IsInactive()
Определения TrapBase.c:160
bool IsActive()
Определения TrapBase.c:155

Перекрестные ссылки g_Game, IsActive(), IsInactive(), m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered и m_WasActivatedOrDeactivated.

Используется в Disarm(), EEHealthLevelChanged(), EEItemAttached(), EEItemDetached(), EEItemLocationChanged(), OnItemLocationChanged(), OnStoreLoad(), SetActive(), SetInactive() и SnapOnObject().