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

◆ PlayerControlEnable()

override void MissionBase::PlayerControlEnable ( bool bForceSupress)
inlineprivate

Deprecated; removes last input exclude and associated controls restrictions.

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

811 {
812 super.PlayerControlEnable(bForceSupress);
813
814 if (m_ControlDisabledMode != -1)
815 {
816 switch (m_ControlDisabledMode)
817 {
819 {
820 RemoveActiveInputExcludes({"menu"},bForceSupress);
821 break;
822 }
824 {
825 RemoveActiveInputExcludes({"inventory"},bForceSupress);
826 RemoveActiveInputRestriction(EInputRestrictors.INVENTORY);
827 break;
828 }
830 {
831 RemoveActiveInputExcludes({"loopedactions"},bForceSupress);
832 RemoveActiveInputRestriction(EInputRestrictors.MAP);
833 break;
834 }
836 {
837 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
838 break;
839 }
841 {
842 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
843 break;
844 }
845 }
846
848
849 PlayerBase player = PlayerBase.Cast( g_Game.GetPlayer() );
850 if (player)
851 {
852 HumanInputController hic = player.GetInputController();
853 hic.LimitsDisableSprint(false);
854 }
855 }
856 }
DayZGame g_Game
Определения DayZGame.c:3942
proto native void LimitsDisableSprint(bool pDisable)
this disables sprint
int m_ControlDisabledMode
Определения missionGameplay.c:38
override void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
Removes one or more exclude groups and refreshes excludes.
Определения missionGameplay.c:911
override void RemoveActiveInputRestriction(int restrictor)
Removes one restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:942
const int INPUT_EXCLUDE_MOUSE_RADIAL
Определения 3_Game/DayZ/constants.c:660
const int INPUT_EXCLUDE_ALL
Определения 3_Game/DayZ/constants.c:657
const int INPUT_EXCLUDE_INVENTORY
Определения 3_Game/DayZ/constants.c:658
const int INPUT_EXCLUDE_MAP
Определения 3_Game/DayZ/constants.c:661
const int INPUT_EXCLUDE_MOUSE_ALL
Определения 3_Game/DayZ/constants.c:659

Перекрестные ссылки g_Game, INPUT_EXCLUDE_ALL, INPUT_EXCLUDE_INVENTORY, INPUT_EXCLUDE_MAP, INPUT_EXCLUDE_MOUSE_ALL, INPUT_EXCLUDE_MOUSE_RADIAL, HumanInputController::LimitsDisableSprint(), m_ControlDisabledMode, RemoveActiveInputExcludes() и RemoveActiveInputRestriction().