4054 {
4056
4058 {
4060
4061 #ifdef SERVER
4063 #endif
4064 }
4065
4066 GameInventory inventory = GetInventory();
4067 if (inventory)
4069
4071
4073 EntityAI itemOnHead = FindAttachmentBySlotName(
"Headgear");
4074
4075 if (itemInHand && itemInHand.GetCompEM())
4076 itemInHand.GetCompEM().SwitchOff();
4077
4079
4080 if (itemOnHead && itemOnHead.GetCompEM())
4081 itemOnHead.GetCompEM().SwitchOff();
4082
4083 g_Game.GetMission().AddActiveInputExcludes({
"vehicledriving"});
4084 }
class GP5GasMask extends MaskBase ItemBase
proto native void LockInventory(int lockType)
void CloseInventoryMenu()
int m_AnimCommandStarting
ItemBase GetItemInHands()
void TryHideItemInHands(bool hide, bool force=false)
tries to hide item in player's hands, some exceptions for various movement states
ref EmoteManager m_EmoteManager