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

◆ UpdateInterval()

override void PlayerPreview::UpdateInterval ( )
inlineprotected

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

84 {
85 // item in hands update
86 m_CharacterPanelWidget.UpdateItemInHands(GetGame().GetPlayer().GetHumanInventory().GetEntityInHands());
87
88 PlayerBase realPlayer = PlayerBase.Cast(GetGame().GetPlayer());
89 DayZPlayer dummyPlayer = m_CharacterPanelWidget.GetDummyPlayer();
90 if ( realPlayer && dummyPlayer )
91 {
92 // injury animation update
93 HumanCommandAdditives hca = dummyPlayer.GetCommandModifier_Additives();
94 //dummyPlayer.UpdateDummyPlayerProxyVisibility(realPlayer.FindAttachmentBySlotName("Shoulder"), realPlayer.FindAttachmentBySlotName("Melee"));
95 if ( hca && realPlayer.m_InjuryHandler )
96 hca.SetInjured(realPlayer.m_InjuryHandler.GetInjuryAnimValue(), realPlayer.m_InjuryHandler.IsInjuryAnimEnabled());
97 }
98
99 if ( m_IsHolding )
100 {
101 int mouse_x;
102 int mouse_y;
103
104 GetMousePos(mouse_x, mouse_y);
105
106 if ( GetMouseState(MouseState.LEFT) & 0x80000000 )
107 {
108 UpdateRotation( mouse_x, mouse_y, true );
109 }
110 else
111 {
112 UpdateRotation( mouse_x, mouse_y, false );
113 m_IsHolding = false;
114 }
115 }
116 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
void UpdateRotation(int mouse_x, int mouse_y, bool is_dragging)
Определения PlayerPreview.c:30
ref PlayerPreviewWidget m_CharacterPanelWidget
Определения PlayerPreview.c:3
bool m_IsHolding
Определения PlayerPreview.c:9
proto native CGame GetGame()
MouseState
Определения EnSystem.c:311
proto native int GetMouseState(MouseState index)
proto void GetMousePos(out int x, out int y)
class HumanCommandWeapons HumanCommandAdditives()
Определения human.c:1112

Перекрестные ссылки GetGame(), GetMousePos(), GetMouseState(), GetPlayer(), HumanCommandAdditives(), m_CharacterPanelWidget, m_IsHolding и UpdateRotation().