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

◆ PlayerControlEnable()

override void MissionBase::PlayerControlEnable ( bool bForceSupress)
inlineprotected

Deprecated; removes last input exclude and associated controls restrictions.

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

793 {
794 super.PlayerControlEnable(bForceSupress);
795
796 if (m_ControlDisabledMode != -1)
797 {
798 switch (m_ControlDisabledMode)
799 {
801 {
802 RemoveActiveInputExcludes({"menu"},bForceSupress);
803 break;
804 }
806 {
807 RemoveActiveInputExcludes({"inventory"},bForceSupress);
808 RemoveActiveInputRestriction(EInputRestrictors.INVENTORY);
809 break;
810 }
812 {
813 RemoveActiveInputExcludes({"loopedactions"},bForceSupress);
814 RemoveActiveInputRestriction(EInputRestrictors.MAP);
815 break;
816 }
818 {
819 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
820 break;
821 }
823 {
824 RemoveActiveInputExcludes({"radialmenu"},bForceSupress);
825 break;
826 }
827 }
828
830
831 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
832 if (player)
833 {
834 HumanInputController hic = player.GetInputController();
835 hic.LimitsDisableSprint(false);
836 }
837 }
838 }
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:893
override void RemoveActiveInputRestriction(int restrictor)
Removes one restriction (specific behaviour oudside regular excludes, defined below)
Определения missionGameplay.c:924
proto native CGame GetGame()
const int INPUT_EXCLUDE_MOUSE_RADIAL
Определения constants.c:655
const int INPUT_EXCLUDE_ALL
Определения constants.c:652
const int INPUT_EXCLUDE_INVENTORY
Определения constants.c:653
const int INPUT_EXCLUDE_MAP
Определения constants.c:656
const int INPUT_EXCLUDE_MOUSE_ALL
Определения constants.c:654

Перекрестные ссылки 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().