32 if ( !super.CanPutInCargo( parent ) )
35 return !parent || CanPutInCargoClothingConditions( 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))
63 return CanReceiveItemIntoCargoClothingConditions( item );
68 EntityAI hierarchyParent = GetHierarchyParent();
69 return !hierarchyParent || hierarchyParent.
IsMan() || SmershException(hierarchyParent);
75 EntityAI hp = hierarchyParent.GetHierarchyParent();
82 return IsInherited(SmershBag) && hierarchyParent.IsInherited(SmershVest);
87 if (!super.CanLoadItemIntoCargo(item))
90 return CanLoadItemIntoCargoClothingConditions(item);
95 EntityAI parent = GetHierarchyParent();
97 if ( parent && parent.IsInherited( UndergroundStash ) )
100 return !parent || parent.
IsMan() || SmershException(parent);
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);
int GetNumberOfItems()
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
override ScriptCallQueue GetCallQueue(int call_category)
bool CanReceiveItemIntoCargoClothingConditions(EntityAI item)
array< int > GetEffectWidgetTypes()
override bool CanHaveWetness()
override bool CanReceiveItemIntoCargo(EntityAI item)
override bool CanLoadItemIntoCargo(EntityAI item)
bool CanLoadItemIntoCargoClothingConditions(EntityAI item)
bool CanPutInCargoClothingConditions(EntityAI parent)
bool SmershException(EntityAI hierarchyParent)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
override bool CanPutInCargo(EntityAI parent)
int GetGlassesEffectID()
Used for 'glasses' (and other colored layers triggered by attach/detach in the InventorySlots....
bool CanWearUnderMask(EntityAI parent)
deprecated
override void SwitchItemSelectionTextureEx(EItemManipulationContext context, Param par=null)
override bool IsClothing()
override protected void InitGlobalExclusionValues()
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()