32 if ( !super.CanPutInCargo( parent ) )
40 bool is_hidden_stash_exception =
false;
42 if ( parent.IsInherited( UndergroundStash ) )
43 is_hidden_stash_exception =
true;
47 EntityAI cargoParent = parent.GetHierarchyParent();
50 return !(parent.IsClothing() && cargoParent.IsClothing()) || ( parentClothing && parentClothing.SmershException(cargoParent) );
60 if (!super.CanReceiveItemIntoCargo(item))
68 EntityAI hierarchyParent = GetHierarchyParent();
75 EntityAI hp = hierarchyParent.GetHierarchyParent();
82 return IsInherited(SmershBag) && hierarchyParent.IsInherited(SmershVest);
87 if (!super.CanLoadItemIntoCargo(item))
95 EntityAI parent = GetHierarchyParent();
97 if ( parent && parent.IsInherited( UndergroundStash ) )
113 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
114 if ( !
GetGame().IsDedicatedServer() )
120 if( player_owner.m_CorpseState != 0 )
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 );
170 super.InitGlobalExclusionValues();
172 AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_GLASSES_REGULAR_0);
181 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
184 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
override ScriptCallQueue GetCallQueue(int call_category)
array< int > GetEffectWidgetTypes()
bool CanPutInCargoClothingConditions(EntityAI parent)
bool CanWearUnderMask(EntityAI parent)
deprecated
bool CanReceiveItemIntoCargoClothingConditions(EntityAI item)
override bool CanHaveWetness()
bool CanLoadItemIntoCargoClothingConditions(EntityAI item)
override void SwitchItemSelectionTextureEx(EItemManipulationContext context, Param par=null)
override bool CanPutInCargo(EntityAI parent)
override bool CanReceiveItemIntoCargo(EntityAI item)
override bool CanLoadItemIntoCargo(EntityAI item)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
bool SmershException(EntityAI hierarchyParent)
int GetGlassesEffectID()
Used for 'glasses' (and other colored layers triggered by attach/detach in the InventorySlots....
override bool IsClothing()
void InitGlobalExclusionValues()
provides access to slot configuration
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
static const int CORPSE_STATE_FRESH
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()