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

◆ DisplayStance() [2/2]

override void Hud::DisplayStance ( int stance)
inlineprotected

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

732 {
733 PlayerBase player;
734 Class.CastTo(player, GetGame().GetPlayer() );
735 Car car;
736 if ( !Class.CastTo(car, player.GetDrivingVehicle()) )
737 {
738 if( stance == 1 )
739 {
740 bool is_walking;
741 m_StanceStand.Show(!is_walking);
742 m_StanceStandWalk.Show(is_walking);
743 m_StanceCrouch.Show(false);
744 m_StanceProne.Show(false);
745 m_StanceCar.Show( false );
746 }
747 if( stance == 2 )
748 {
749 m_StanceStand.Show(false);
750 m_StanceStandWalk.Show(false);
751 m_StanceCrouch.Show(true);
752 m_StanceProne.Show(false);
753 m_StanceCar.Show( false );
754 }
755 if( stance == 3 )
756 {
757 m_StanceStand.Show(false);
758 m_StanceStandWalk.Show(false);
759 m_StanceCrouch.Show(false);
760 m_StanceProne.Show(true);
761 m_StanceCar.Show( false );
762 }
763 }
764 else
765 {
766 m_StanceStand.Show(false);
767 m_StanceCrouch.Show(false);
768 m_StanceProne.Show(false);
769 m_StanceCar.Show( true );
770 }
771 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
Widget m_StanceStandWalk
Определения IngameHud.c:64
Widget m_StanceStand
Определения IngameHud.c:63
Widget m_StanceCar
Определения IngameHud.c:66
Widget m_StanceProne
Определения IngameHud.c:62
Widget m_StanceCrouch
Определения IngameHud.c:65
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer(), m_StanceCar, m_StanceCrouch, m_StanceProne, m_StanceStand и m_StanceStandWalk.