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

◆ RefreshState()

void RefreshState ( )
protected

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

322 {
324 {
325 return;
326 }
327
328 if ( g_Game.IsServer() )
329 {
330 // item is owned by player
331 if ( GetHierarchyRootPlayer() != NULL && m_AnimationPhaseGrounded != "" )
332 {
333 SetAnimationPhase( m_AnimationPhaseSet, 1 );
335 {
336 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
337 }
338 SetAnimationPhase( m_AnimationPhaseGrounded, 0 );
339 }
340 // item is set active
341 else if ( IsActive() )
342 {
343 if ( m_AnimationPhaseGrounded != "" )
344 {
345 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
346 }
348 {
349 SetAnimationPhase( m_AnimationPhaseTriggered, 1 );
350 SetAnimationPhase( m_AnimationPhaseSet, 0 );
351 }
352 }
353 // item is inactive and not owned by player (on the ground)
354 else if ( IsInactive() )
355 {
357 {
358 SetAnimationPhase( m_AnimationPhaseGrounded, 1 );
359 }
361 {
362 SetAnimationPhase( m_AnimationPhaseSet, 1 );
363 SetAnimationPhase( m_AnimationPhaseTriggered, 0 );
364 }
365 }
366 }
367 }
DayZGame g_Game
Определения DayZGame.c:3942
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:151
bool IsActive()
Определения TrapBase.c:146

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

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