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

◆ RefreshAnimationState()

void WeaponManager::RefreshAnimationState ( )
inlineprivate

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

1053 {
1054 if(m_WeaponInHand)
1055 {
1056 WeaponStableState state = WeaponStableState.Cast( m_WeaponInHand.GetCurrentState() );
1057
1058 if (state)
1059 {
1060 HumanCommandWeapons hcw = m_player.GetCommandModifier_Weapons();
1061 if (hcw)
1062 {
1063 hcw.SetInitState(state.m_animState);
1064 }
1065 }
1066 }
1067 }
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:1113

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

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