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

◆ RemoveActiveInputRestriction() [2/2]

override void MissionBase::RemoveActiveInputRestriction ( int restrictor)
inlineprotected

Removes one restriction (specific behaviour oudside regular excludes, defined below)

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

879 {
880 //unique behaviour outside regular excludes
881 if (restrictor > -1)
882 {
883 switch (restrictor)
884 {
885 case EInputRestrictors.INVENTORY:
886 {
887 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
888 break;
889 }
890 case EInputRestrictors.MAP:
891 {
892 GetUApi().GetInputByID(UAWalkRunForced).ForceEnable(false); // force walk off!
893 break;
894 }
895 case EInputRestrictors.SURRENDER_TRANSITION:
896 {
897 GetUApi().GetInputByID(UATempRaiseWeapon).ForceDisable(false); //
898 break;
899 }
900 }
901
902 if (m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restrictor) != -1)
903 {
904 m_ActiveInputRestrictions.RemoveItem(restrictor);
905 }
906 }
907 }
proto native UAInputAPI GetUApi()
ref array< int > m_ActiveInputRestrictions
Определения missionGameplay.c:40
proto native void ForceEnable(bool bEnable)
proto native void ForceDisable(bool bEnable)
proto native UAInput GetInputByID(int iID)
returns list of all bindable (i.e. visible) inputs from the active group ('core' by default)

Перекрестные ссылки UAInput::ForceDisable(), UAInput::ForceEnable(), UAInputAPI::GetInputByID(), GetUApi() и m_ActiveInputRestrictions.