Deprecated; simple input restrictions.
852 {
853 super.PlayerControlDisable(mode);
854
855 switch (mode)
856 {
858 {
860 break;
861 }
863 {
866 break;
867 }
869 {
872 break;
873 }
875 {
877 break;
878 }
880 {
882 break;
883 }
884 default:
885 {
886 Debug.Log(
"Unknown controls disable mode");
887 return;
888 }
889 }
890
892
894 if ( player )
895 {
896 ItemBase item = player.GetItemInHands();
897 if (item && item.IsWeapon())
898 player.RequestResetADSSync();
899 }
900 }
class GP5GasMask extends MaskBase ItemBase
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
int m_ControlDisabledMode
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
proto native CGame GetGame()
const int INPUT_EXCLUDE_MOUSE_RADIAL
const int INPUT_EXCLUDE_ALL
const int INPUT_EXCLUDE_INVENTORY
const int INPUT_EXCLUDE_MAP
const int INPUT_EXCLUDE_MOUSE_ALL