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

◆ PlayerControlEnable()

override void MissionBase::PlayerControlEnable ( bool bForceSupress)
inlineprotected

Deprecated; removes last input exclude and associated controls restrictions.

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

803 {
804 super.PlayerControlEnable(bForceSupress);
805
806 if (m_ControlDisabledMode != -1)
807 {
808 switch (m_ControlDisabledMode)
809 {
811 {
812 RemoveActiveInputExcludes({"menu"},bForceSupress);
813 break;
814 }
816 {
817 RemoveActiveInputExcludes({"inventory"},bForceSupress);
818 RemoveActiveInputRestriction(EInputRestrictors.INVENTORY);
819 break;
820 }
822 {
823 RemoveActiveInputExcludes({"loopedactions"},bForceSupress);
824 RemoveActiveInputRestriction(EInputRestrictors.MAP);
825 break;
826 }
828 {
829 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
830 break;
831 }
833 {
834 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
835 break;
836 }
837 }
838
840
841 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
842 if (player)
843 {
844 HumanInputController hic = player.GetInputController();
845 hic.LimitsDisableSprint(false);
846 }
847 }
848 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
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:903
override void RemoveActiveInputRestriction(int restrictor)
Removes one restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:934
proto native CGame GetGame()
const int INPUT_EXCLUDE_MOUSE_RADIAL
Определения 3_Game/constants.c:657
const int INPUT_EXCLUDE_ALL
Определения 3_Game/constants.c:654
const int INPUT_EXCLUDE_INVENTORY
Определения 3_Game/constants.c:655
const int INPUT_EXCLUDE_MAP
Определения 3_Game/constants.c:658
const int INPUT_EXCLUDE_MOUSE_ALL
Определения 3_Game/constants.c:656

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