Deprecated; simple input restrictions.
842 {
843 super.PlayerControlDisable(mode);
844
845 switch (mode)
846 {
848 {
850 break;
851 }
853 {
856 break;
857 }
859 {
862 break;
863 }
865 {
867 break;
868 }
870 {
872 break;
873 }
874 default:
875 {
876 Debug.Log(
"Unknown controls disable mode");
877 return;
878 }
879 }
880
882
884 if ( player )
885 {
886 ItemBase item = player.GetItemInHands();
887 if (item && item.IsWeapon())
888 player.RequestResetADSSync();
889 }
890 }
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