4343 {
4345
4347 {
4349
4350 #ifdef SERVER
4352 #endif
4353 }
4354
4355 GameInventory inventory = GetInventory();
4356 if (inventory)
4358
4360
4362 EntityAI itemOnHead = FindAttachmentBySlotName(
"Headgear");
4363
4364 if (itemInHand && itemInHand.GetCompEM())
4365 itemInHand.GetCompEM().SwitchOff();
4366
4368
4369 if (itemOnHead && itemOnHead.GetCompEM())
4370 itemOnHead.GetCompEM().SwitchOff();
4371
4372 g_Game.GetMission().AddActiveInputExcludes({
"vehicledriving"});
4373 }
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