6 override bool IsClothing()
17 int GetGlassesEffectID()
30 override bool CanPutInCargo(
EntityAI parent )
32 if ( !super.CanPutInCargo( parent ) )
35 return !parent || CanPutInCargoClothingConditions( parent );
38 bool CanPutInCargoClothingConditions(
EntityAI parent )
40 bool is_hidden_stash_exception =
false;
42 if ( parent.IsInherited( UndergroundStash ) )
43 is_hidden_stash_exception =
true;
45 if (
GetNumberOfItems() == 0 || !parent || parent.IsMan() || is_hidden_stash_exception )
47 EntityAI cargoParent = parent.GetHierarchyParent();
50 return !(parent.IsClothing() && cargoParent.IsClothing()) || ( parentClothing && parentClothing.SmershException(cargoParent) );
60 if (!super.CanReceiveItemIntoCargo(item))
63 return CanReceiveItemIntoCargoClothingConditions( item );
66 bool CanReceiveItemIntoCargoClothingConditions(
EntityAI item )
68 EntityAI hierarchyParent = GetHierarchyParent();
69 return !hierarchyParent || hierarchyParent.IsMan() || SmershException(hierarchyParent);
73 bool SmershException(
EntityAI hierarchyParent)
75 EntityAI hp = hierarchyParent.GetHierarchyParent();
82 return IsInherited(SmershBag) && hierarchyParent.IsInherited(SmershVest);
87 if (!super.CanLoadItemIntoCargo(item))
90 return CanLoadItemIntoCargoClothingConditions(item);
93 bool CanLoadItemIntoCargoClothingConditions(
EntityAI item)
95 EntityAI parent = GetHierarchyParent();
97 if ( parent && parent.IsInherited( UndergroundStash ) )
100 return !parent || parent.IsMan() || SmershException(parent);
105 bool CanWearUnderMask(
EntityAI parent)
113 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
114 if ( !
GetGame().IsDedicatedServer() )
120 if( player_owner.m_CorpseState != 0 )
128 override void SwitchItemSelectionTextureEx(EItemManipulationContext context,
Param par =
null)
130 super.SwitchItemSelectionTextureEx(context, par);
132 Param1<PlayerBase> data = Param1<PlayerBase>.Cast(par);
140 int personality = GetHiddenSelectionIndex(
"personality");
141 if (personality >= 0)
143 string tone_mat = player.m_EmptyGloves.GetHiddenSelectionsMaterials().Get(0);
148 tone_texture = player.m_DecayedTexture;
152 tone_texture = player.m_EmptyGloves.GetHiddenSelectionsTextures().Get(0);
155 SetObjectMaterial( personality, tone_mat );
156 SetObjectTexture( personality, tone_texture );
168 override protected void InitGlobalExclusionValues()
170 super.InitGlobalExclusionValues();
172 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_GLASSES_REGULAR_0);
179 override protected set<int> GetAttachmentExclusionInitSlotValue(
int slotId)
181 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
184 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);