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

◆ RefreshAnimationState()

void WeaponManager::RefreshAnimationState ( )
inlineprivate

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

1057 {
1058 if(m_WeaponInHand)
1059 {
1060 WeaponStableState state = WeaponStableState.Cast( m_WeaponInHand.GetCurrentState() );
1061
1062 if (state)
1063 {
1064 HumanCommandWeapons hcw = m_player.GetCommandModifier_Weapons();
1065 if (hcw)
1066 {
1067 hcw.SetInitState(state.m_animState);
1068 }
1069 }
1070 }
1071 }
void WeaponStableState(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int anim_state=-1)
Определения WeaponStableState.c:32
proto native void SetInitState(int pFrameIndex)
PlayerBase m_player
Определения WeaponManager.c:5
Weapon_Base m_WeaponInHand
Определения WeaponManager.c:23
void HumanCommandWeapons()
Определения human.c:1128

Перекрестные ссылки m_player, m_WeaponInHand и HumanCommandWeapons::SetInitState().

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