Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
InventoryItem Class Reference

Protected Member Functions

bool ShouldSplitQuantity (float quantity)
override void SplitIntoStackMaxClient (EntityAI destination_entity, int slot_id)
void SplitIntoStackMax (EntityAI destination_entity, int slot_id, PlayerBase player)
override void SplitIntoStackMaxEx (EntityAI destination_entity, int slot_id)
void SplitIntoStackMaxToInventoryLocationClient (notnull InventoryLocation dst)
void SplitIntoStackMaxCargoClient (EntityAI destination_entity, int idx, int row, int col)
void SplitIntoStackMaxToInventoryLocation (notnull InventoryLocation dst)
ItemBase SplitIntoStackMaxToInventoryLocationEx (notnull InventoryLocation dst)
void SplitIntoStackMaxCargo (EntityAI destination_entity, int idx, int row, int col)
void SplitIntoStackMaxHandsClient (PlayerBase player)
void SplitIntoStackMaxHands (PlayerBase player)
void SplitItemToInventoryLocation (notnull InventoryLocation dst)
void SplitItem (PlayerBase player)
void OnQuantityChanged (float delta)
 Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
void OnAttachmentQuantityChanged (ItemBase item)
 Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.
void OnAttachmentQuantityChangedEx (ItemBase item, float delta)
 Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
override void OnRightClick ()
void SetInventoryLocationToVicinityOrCurrent (EntityAI root, inout InventoryLocation dst)
override bool CanBeCombined (EntityAI other_item, bool reservation_check=true, bool stack_max_limit=false)
bool IsCombineAll (ItemBase other_item, bool use_stack_max=false)
bool IsResultOfSplit ()
void SetResultOfSplit (bool value)
int ComputeQuantityUsed (ItemBase other_item, bool use_stack_max=true)
float ComputeQuantityUsedEx (ItemBase other_item, bool use_stack_max=true)
override void CombineItemsEx (EntityAI entity2, bool use_stack_max=true)
void CombineItems (ItemBase other_item, bool use_stack_max=true)
void OnCombine (ItemBase other_item)
void GetRecipesActions (Man player, out TSelectableActionInfoArray outputList)
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
void OnActivatedByTripWire ()
void OnActivatedByItem (notnull ItemBase item)
 Called when this item is activated by other.
bool CanExplodeInFire ()
bool CanEat ()
override bool IsIgnoredByConstruction ()
bool HasFoodStage ()
FoodStage GetFoodStage ()
 overridden on Edible_Base; so we don't have to parse configs all the time
bool CanBeCooked ()
bool CanBeCookedOnStick ()
void RefreshAudioVisualsOnClient (CookingMethodType cooking_method, bool is_done, bool is_empty, bool is_burned)
 cooking-related effect methods
void RemoveAudioVisualsOnClient ()
bool CanRepair (ItemBase item_repair_kit)
bool Repair (PlayerBase player, ItemBase item_repair_kit, float specialty_weight)
int GetItemSize ()
bool CanBeMovedOverride ()
void SetCanBeMovedOverride (bool setting)
void MessageToOwnerStatus (string text)
 Send message to owner player in grey color.
void MessageToOwnerAction (string text)
 Send message to owner player in yellow color.
void MessageToOwnerFriendly (string text)
 Send message to owner player in green color.
void MessageToOwnerImportant (string text)
 Send message to owner player in red color.
override bool IsItemBase ()
override bool KindOf (string tag)
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
int NameToID (string name)
string IDToName (int id)
void OnSyncVariables (ParamsReadContext ctx)
 DEPRECATED (most likely).
override void SerializeNumericalVars (array< float > floats_out)
override void DeSerializeNumericalVars (array< float > floats)
override void WriteVarsToCTX (ParamsWriteContext ctx)
override bool ReadVarsFromCTX (ParamsReadContext ctx, int version=-1)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void AfterStoreLoad ()
override void EEOnAfterLoad ()
bool CanBeDisinfected ()
override void OnVariablesSynchronized ()
override bool SetQuantity (float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
 Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity reaches varQuantityMin or lower and the item config contains the varQuantityDestroyOnMin = true entry, the item gets destroyed. destroy_forced = true means item gets destroyed when quantity reaches varQuantityMin or lower regardless of config setting, returns true if the item gets deleted.
bool AddQuantity (float value, bool destroy_config=true, bool destroy_forced=false)
 add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity reaches varQuantityMin or lower and the item config contains the varQuantityDestroyOnMin = true entry, the item gets destroyed. destroy_forced = true means item gets destroyed when quantity reaches varQuantityMin or lower regardless of config setting, returns true if the item gets deleted
void SetQuantityMax ()
override void SetQuantityToMinimum ()
override void SetQuantityNormalized (float value, bool destroy_config=true, bool destroy_forced=false)
 Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config(for Min 0 and Max 5000, setting 0.5 will result in value 2500).
override float GetQuantityNormalized ()
 Gets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config(for Min 0 and Max 5000, value 2500 will result in 0.5).
float GetQuantityNormalizedScripted ()
override int GetQuantityMax ()
override int GetTargetQuantityMax (int attSlotID=-1)
override int GetQuantityMin ()
int GetQuantityInit ()
override bool HasQuantity ()
override float GetQuantity ()
bool IsFullQuantity ()
override float GetSingleInventoryItemWeightEx ()
float GetSingleInventoryItemWeight ()
float GetWeightSpecialized (bool forceRecalc=false)
int GetNumberOfItems ()
 Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
float GetUnitWeight (bool include_wetness=true)
 Obsolete, use GetWeightEx instead.
override void ClearInventory ()
float GetEnergy ()
override void OnEnergyConsumed ()
override void OnEnergyAdded ()
void ConvertEnergyToQuantity ()
float GetHeatIsolationInit ()
float GetHeatIsolation ()
float GetDryingIncrement (string pIncrementName)
float GetSoakingIncrement (string pIncrementName)
override void SetWet (float value, bool allow_client=false)
override void AddWet (float value)
override void SetWetMax ()
override float GetWet ()
override float GetWetMax ()
override float GetWetMin ()
override float GetWetInit ()
override void OnWetChanged (float newVal, float oldVal)
override void OnWetLevelChanged (EWetnessLevel newLevel, EWetnessLevel oldLevel)
override EWetnessLevel GetWetLevel ()
override void SetStoreLoad (bool value)
override bool IsStoreLoad ()
override void SetStoreLoadedQuantity (float value)
override float GetStoreLoadedQuantity ()
float GetItemModelLength ()
float GetItemAttachOffset ()
override void SetCleanness (int value, bool allow_client=false)
override int GetCleanness ()
bool AllowFoodConsumption ()
int GetLockType ()
string GetLockSoundSet ()
override void SetColor (int r, int g, int b, int a)
override void GetColor (out int r, out int g, out int b, out int a)
 gets item's color variable as components
bool IsColorSet ()
string GetColorString ()
 Returns item's PROCEDURAL color as formated string, i.e. "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)".
override void SetLiquidType (int value, bool allow_client=false)
int GetLiquidTypeInit ()
override int GetLiquidType ()
void OnLiquidTypeChanged (int oldType, int newType)
void UpdateQuickbarShortcutVisibility (PlayerBase player)
 To be called on moving item within character's inventory; 'player' should never be null.
void OnInventoryEnter (Man player)
 Event called on item when it is placed in the player(Man) inventory, passes the owner as a parameter.
void OnInventoryExit (Man player)
 Event called on item when it is removed from the player(Man) inventory, passes the old owner as a parameter.
override void OnPlacementStarted (Man player)
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
bool ContainsAgent (int agent_id)
override void RemoveAgent (int agent_id)
override void RemoveAllAgents ()
override void RemoveAllAgentsExcept (int agent_to_keep)
override void InsertAgent (int agent, float count=1)
void TransferAgents (int agents)
 transfer agents from another item
override int GetAgents ()
bool LoadAgents (ParamsReadContext ctx, int version)
void SaveAgents (ParamsWriteContext ctx)
override void CheckForRoofLimited (float timeTresholdMS=3000)
 Roof check for entity, limited by time (anti-spam solution).
float GetProtectionLevel (int type, bool consider_filter=false, int system=0)
override void EEOnCECreate ()
 Called when entity is being created as new by CE/ Debug.
void Open ()
 Implementations only.
void Close ()
bool IsOpen ()
override bool CanDisplayCargo ()
override bool CanPutInCargo (EntityAI parent)
override bool CanPutAsAttachment (EntityAI parent)
override bool CanReceiveItemIntoCargo (EntityAI item)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override bool CanReleaseAttachment (EntityAI attachment)
override bool IsHeavyBehaviour ()
override bool IsOneHandedBehaviour ()
override bool IsTwoHandedBehaviour ()
bool IsDeployable ()
float GetDeployTime ()
 how long it takes to deploy this item in seconds
override void SetTakeable (bool pState)
override bool IsTakeable ()
bool IsActionTargetVisible ()
void PreLoadSoundAttachmentType ()
 Attachment Sound Type getting from config file.
override string GetAttachmentSoundType ()
string GetPlaceSoundset ()
string GetLoopDeploySoundset ()
string GetDeploySoundset ()
string GetLoopFoldSoundset ()
string GetFoldSoundset ()
ItemSoundHandler GetItemSoundHandler ()
void InitItemSounds ()
void StartItemSoundServer (int id, int slotId)
void StartItemSoundServer (int id)
void StopItemSoundServer (int id)
void ClearStartItemSoundServer ()
void ClearStopItemSoundServer ()
void OnApply (PlayerBase player)
float GetBandagingEffectivity ()
array< stringGetHeadHidingSelection ()
bool HidesSelectionBySlot ()
WrittenNoteData GetWrittenNoteData ()
void StopItemDynamicPhysics ()
void PerformDamageSystemReinit ()
void SetZoneDamageCEInit ()
 Sets zone damages to match randomized global health set by CE (CE spawn only).
bool IsCoverFaceForShave (string slot_name)
 DEPRECATED in use, but returns correct values nontheless. Check performed elsewhere.
void ProcessItemWetness (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
void ProcessItemTemperature (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
void HierarchyCheck (out bool hasParent, out bool hasRootAsPlayer, out ItemBase refParentIB)
void ProcessDecay (float delta, bool hasRootAsPlayer)
bool CanDecay ()
bool CanProcessDecay ()
bool CanHaveWetness ()
bool CanBeConsumed (ConsumeConditionData data=null)
 Items cannot be consumed if frozen by default. Override for exceptions.
override void ProcessVariables ()
float GetTemperaturePerQuantityWeight ()
 Used in heat comfort calculations only!
override float GetTemperatureFreezeThreshold ()
override float GetTemperatureThawThreshold ()
override float GetItemOverheatThreshold ()
override float GetTemperatureFreezeTime ()
override float GetTemperatureThawTime ()
void AffectLiquidContainerOnFill (int liquid_type, float amount)
 from enviro source
void AffectLiquidContainerOnTransfer (int liquidType, float amount, float sourceLiquidTemperature)
 from other liquid container source
bool IsCargoException4x3 (EntityAI item)
void CopyScriptPropertiesFrom (EntityAI oldItem)
void AddLightSourceItem (ItemBase lightsource)
 Adds a light source child.
void RemoveLightSourceItem ()
ItemBase GetLightSourceItem ()
array< intGetValidFinishers ()
 returns an array of possible finishers
bool GetActionWidgetOverride (out typename name)
 If we need a different (handheld)item action widget displayed, the logic goes in here.
bool PairWithDevice (notnull ItemBase otherDevice)
float GetBaitEffectivity ()
 generic effectivity as a bait for animal catching
bool CanBeUsedForSuicide ()
void ProcessItemWetnessAndTemperature (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
string GetDeployFinishSoundset ()
void PlayDeploySound ()
void PlayDeployFinishSound ()
void PlayPlaceSound ()
void PlayDeployLoopSoundEx ()
void StopDeployLoopSoundEx ()
void SoundSynchRemoteReset ()
void SoundSynchRemote ()
bool UsesGlobalDeploy ()
bool CanPlayDeployLoopSound ()
bool IsSoundSynchRemote ()
bool IsPlaceSound ()
bool IsDeploySound ()
void SetIsPlaceSound (bool is_place_sound)
void SetIsDeploySound (bool is_deploy_sound)
void PlayAttachSound (string slot_type)
 Plays sound on item attach. Be advised, the config structure may slightly change in 1.11 update to allow for more complex use.
void PlayDetachSound (string slot_type)

Static Protected Member Functions

static void PlayFireParticles (ItemBase weapon, int muzzle_index, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void PlayBulletCasingEjectParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void PlayOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void UpdateOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void StopOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)

Protected Attributes

bool m_CanBeDigged
bool m_IsResultOfSplit string m_SoundAttType
 distinguish if item has been created as new or it came from splitting (server only flag)
int m_ColorComponentR
int m_ColorComponentG
int m_ColorComponentB
int m_ColorComponentA
ItemBase m_LightSourceItem
ref TIntArray m_SingleUseActions
ref TIntArray m_ContinuousActions
ref TIntArray m_InteractActions
ref TStringArray m_HeadHidingSelections
bool m_HideSelectionsBySlot
PluginAdminLog m_AdminLog
ref Timer m_PhysDropTimer
ref array< intm_CompatibleLocks
int m_LockType
ref EffectSound m_LockingSound
string m_LockSoundSet
const int ITEM_SOUNDS_MAX = 63
int m_SoundSyncPlay
int m_SoundSyncStop
int m_SoundSyncSlotID = InventorySlots.INVALID
EffectSound m_SoundDeployFinish
EffectSound m_SoundPlace
EffectSound m_DeployLoopSoundEx
EffectSound m_SoundDeploy
bool m_IsPlaceSound
bool m_IsDeploySound
bool m_IsSoundSynchRemote

Detailed Description

Definition at line 20 of file itembase.c.

Member Function Documentation

◆ AddLightSourceItem()

void InventoryItem::AddLightSourceItem ( ItemBase lightsource)
protected

Adds a light source child.

Definition at line 4750 of file itembase.c.

◆ AddQuantity()

bool InventoryItem::AddQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false )
protected

add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity reaches varQuantityMin or lower and the item config contains the varQuantityDestroyOnMin = true entry, the item gets destroyed. destroy_forced = true means item gets destroyed when quantity reaches varQuantityMin or lower regardless of config setting, returns true if the item gets deleted

Definition at line 3413 of file itembase.c.

◆ AddWet()

override void InventoryItem::AddWet ( float value)
protected

Definition at line 3721 of file itembase.c.

◆ AffectLiquidContainerOnFill()

void InventoryItem::AffectLiquidContainerOnFill ( int liquid_type,
float amount )
protected

from enviro source

◆ AffectLiquidContainerOnTransfer()

void InventoryItem::AffectLiquidContainerOnTransfer ( int liquidType,
float amount,
float sourceLiquidTemperature )
protected

from other liquid container source

◆ AfterStoreLoad()

override void InventoryItem::AfterStoreLoad ( )
protected

Definition at line 3249 of file itembase.c.

◆ AllowFoodConsumption()

bool InventoryItem::AllowFoodConsumption ( )
protected

Definition at line 3831 of file itembase.c.

◆ CanBeCombined()

override bool InventoryItem::CanBeCombined ( EntityAI other_item,
bool reservation_check = true,
bool stack_max_limit = false )
protected

Definition at line 2202 of file itembase.c.

◆ CanBeConsumed()

bool InventoryItem::CanBeConsumed ( ConsumeConditionData data = null)
protected

Items cannot be consumed if frozen by default. Override for exceptions.

Definition at line 4653 of file itembase.c.

◆ CanBeCooked()

bool InventoryItem::CanBeCooked ( )
protected

Definition at line 2666 of file itembase.c.

◆ CanBeCookedOnStick()

bool InventoryItem::CanBeCookedOnStick ( )
protected

Definition at line 2671 of file itembase.c.

◆ CanBeDisinfected()

bool InventoryItem::CanBeDisinfected ( )
protected

Definition at line 3278 of file itembase.c.

◆ CanBeMovedOverride()

bool InventoryItem::CanBeMovedOverride ( )
protected

Definition at line 2710 of file itembase.c.

◆ CanBeUsedForSuicide()

bool InventoryItem::CanBeUsedForSuicide ( )
protected

Definition at line 4830 of file itembase.c.

◆ CanDecay()

bool InventoryItem::CanDecay ( )
protected

Definition at line 4633 of file itembase.c.

◆ CanDisplayCargo()

override bool InventoryItem::CanDisplayCargo ( )
protected

Definition at line 4153 of file itembase.c.

◆ CanEat()

bool InventoryItem::CanEat ( )
protected

Definition at line 2641 of file itembase.c.

◆ CanExplodeInFire()

bool InventoryItem::CanExplodeInFire ( )
protected

Definition at line 2635 of file itembase.c.

◆ CanHaveWetness()

bool InventoryItem::CanHaveWetness ( )
protected

Definition at line 4646 of file itembase.c.

◆ CanPlayDeployLoopSound()

bool InventoryItem::CanPlayDeployLoopSound ( )
protected

Definition at line 4863 of file itembase.c.

◆ CanProcessDecay()

bool InventoryItem::CanProcessDecay ( )
protected

Definition at line 4639 of file itembase.c.

◆ CanPutAsAttachment()

override bool InventoryItem::CanPutAsAttachment ( EntityAI parent)
protected

Definition at line 4176 of file itembase.c.

◆ CanPutInCargo()

override bool InventoryItem::CanPutInCargo ( EntityAI parent)
protected

Definition at line 4162 of file itembase.c.

◆ CanReceiveAttachment()

override bool InventoryItem::CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 4200 of file itembase.c.

◆ CanReceiveItemIntoCargo()

override bool InventoryItem::CanReceiveItemIntoCargo ( EntityAI item)
protected

Definition at line 4191 of file itembase.c.

◆ CanReleaseAttachment()

override bool InventoryItem::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 4221 of file itembase.c.

◆ CanRepair()

bool InventoryItem::CanRepair ( ItemBase item_repair_kit)
protected

Definition at line 2681 of file itembase.c.

◆ CheckForRoofLimited()

override void InventoryItem::CheckForRoofLimited ( float timeTresholdMS = 3000)
protected

Roof check for entity, limited by time (anti-spam solution).

Definition at line 4081 of file itembase.c.

◆ ClearInventory()

override void InventoryItem::ClearInventory ( )
protected

Definition at line 3614 of file itembase.c.

◆ ClearStartItemSoundServer()

void InventoryItem::ClearStartItemSoundServer ( )
protected

Definition at line 4500 of file itembase.c.

◆ ClearStopItemSoundServer()

void InventoryItem::ClearStopItemSoundServer ( )
protected

Definition at line 4506 of file itembase.c.

◆ Close()

void InventoryItem::Close ( )
protected

◆ CombineItems()

void InventoryItem::CombineItems ( ItemBase other_item,
bool use_stack_max = true )
protected

Definition at line 2308 of file itembase.c.

◆ CombineItemsEx()

override void InventoryItem::CombineItemsEx ( EntityAI entity2,
bool use_stack_max = true )
protected

Definition at line 2303 of file itembase.c.

◆ ComputeQuantityUsed()

int InventoryItem::ComputeQuantityUsed ( ItemBase other_item,
bool use_stack_max = true )
protected

Definition at line 2279 of file itembase.c.

◆ ComputeQuantityUsedEx()

float InventoryItem::ComputeQuantityUsedEx ( ItemBase other_item,
bool use_stack_max = true )
protected

Definition at line 2284 of file itembase.c.

◆ ContainsAgent()

bool InventoryItem::ContainsAgent ( int agent_id)
protected

Definition at line 3973 of file itembase.c.

◆ ConvertEnergyToQuantity()

void InventoryItem::ConvertEnergyToQuantity ( )
protected

Definition at line 3661 of file itembase.c.

◆ CopyScriptPropertiesFrom()

void InventoryItem::CopyScriptPropertiesFrom ( EntityAI oldItem)
protected

Definition at line 4744 of file itembase.c.

◆ DeSerializeNumericalVars()

override void InventoryItem::DeSerializeNumericalVars ( array< float > floats)
protected

Definition at line 2934 of file itembase.c.

◆ EEHealthLevelChanged()

override void InventoryItem::EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
protected

drops content of container when ruined in fireplace

Definition at line 2086 of file itembase.c.

◆ EEOnAfterLoad()

override void InventoryItem::EEOnAfterLoad ( )
protected

Definition at line 3265 of file itembase.c.

◆ EEOnCECreate()

override void InventoryItem::EEOnCECreate ( )
protected

Called when entity is being created as new by CE/ Debug.

Definition at line 4133 of file itembase.c.

◆ GetActionWidgetOverride()

bool InventoryItem::GetActionWidgetOverride ( out typename name)
protected

If we need a different (handheld)item action widget displayed, the logic goes in here.

Definition at line 4772 of file itembase.c.

◆ GetAgents()

override int InventoryItem::GetAgents ( )
protected

Definition at line 4020 of file itembase.c.

◆ GetAttachmentSoundType()

override string InventoryItem::GetAttachmentSoundType ( )
protected

Definition at line 4424 of file itembase.c.

◆ GetBaitEffectivity()

float InventoryItem::GetBaitEffectivity ( )
protected

generic effectivity as a bait for animal catching

Definition at line 4802 of file itembase.c.

◆ GetBandagingEffectivity()

float InventoryItem::GetBandagingEffectivity ( )
protected

Definition at line 4513 of file itembase.c.

◆ GetCleanness()

override int InventoryItem::GetCleanness ( )
protected

Definition at line 3826 of file itembase.c.

◆ GetColor()

override void InventoryItem::GetColor ( out int r,
out int g,
out int b,
out int a )
protected

gets item's color variable as components

Definition at line 3861 of file itembase.c.

◆ GetColorString()

string InventoryItem::GetColorString ( )
protected

Returns item's PROCEDURAL color as formated string, i.e. "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)".

Definition at line 3875 of file itembase.c.

◆ GetDebugActions()

override void InventoryItem::GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
protected

Definition at line 2363 of file itembase.c.

◆ GetDeployFinishSoundset()

string InventoryItem::GetDeployFinishSoundset ( )
protected

◆ GetDeploySoundset()

string InventoryItem::GetDeploySoundset ( )
protected

◆ GetDeployTime()

float InventoryItem::GetDeployTime ( )
protected

how long it takes to deploy this item in seconds

Definition at line 4386 of file itembase.c.

◆ GetDryingIncrement()

float InventoryItem::GetDryingIncrement ( string pIncrementName)
protected

Definition at line 3684 of file itembase.c.

◆ GetEnergy()

float InventoryItem::GetEnergy ( )
protected

Definition at line 3635 of file itembase.c.

◆ GetFoldSoundset()

string InventoryItem::GetFoldSoundset ( )
protected

◆ GetFoodStage()

FoodStage InventoryItem::GetFoodStage ( )
protected

overridden on Edible_Base; so we don't have to parse configs all the time

Definition at line 2661 of file itembase.c.

◆ GetHeadHidingSelection()

array< string > InventoryItem::GetHeadHidingSelection ( )
protected

Definition at line 4518 of file itembase.c.

◆ GetHeatIsolation()

float InventoryItem::GetHeatIsolation ( )
protected

Definition at line 3679 of file itembase.c.

◆ GetHeatIsolationInit()

float InventoryItem::GetHeatIsolationInit ( )
protected

Definition at line 3674 of file itembase.c.

◆ GetItemAttachOffset()

float InventoryItem::GetItemAttachOffset ( )
protected

Definition at line 3804 of file itembase.c.

◆ GetItemModelLength()

float InventoryItem::GetItemModelLength ( )
protected

Definition at line 3795 of file itembase.c.

◆ GetItemOverheatThreshold()

override float InventoryItem::GetItemOverheatThreshold ( )
protected

Definition at line 4710 of file itembase.c.

◆ GetItemSize()

int InventoryItem::GetItemSize ( )
protected

Definition at line 2695 of file itembase.c.

◆ GetItemSoundHandler()

ItemSoundHandler InventoryItem::GetItemSoundHandler ( )
protected

Definition at line 4439 of file itembase.c.

◆ GetLightSourceItem()

ItemBase InventoryItem::GetLightSourceItem ( )
protected

Definition at line 4760 of file itembase.c.

◆ GetLiquidType()

override int InventoryItem::GetLiquidType ( )
protected

Definition at line 3904 of file itembase.c.

◆ GetLiquidTypeInit()

int InventoryItem::GetLiquidTypeInit ( )
protected

Definition at line 3899 of file itembase.c.

◆ GetLockSoundSet()

string InventoryItem::GetLockSoundSet ( )
protected

Definition at line 3844 of file itembase.c.

◆ GetLockType()

int InventoryItem::GetLockType ( )
protected

Definition at line 3839 of file itembase.c.

◆ GetLoopDeploySoundset()

string InventoryItem::GetLoopDeploySoundset ( )
protected

◆ GetLoopFoldSoundset()

string InventoryItem::GetLoopFoldSoundset ( )
protected

◆ GetNumberOfItems()

int InventoryItem::GetNumberOfItems ( )
protected

Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.

Definition at line 3572 of file itembase.c.

◆ GetPlaceSoundset()

string InventoryItem::GetPlaceSoundset ( )
protected

◆ GetProtectionLevel()

float InventoryItem::GetProtectionLevel ( int type,
bool consider_filter = false,
int system = 0 )
protected

Definition at line 4094 of file itembase.c.

◆ GetQuantity()

override float InventoryItem::GetQuantity ( )
protected

Definition at line 3508 of file itembase.c.

◆ GetQuantityInit()

int InventoryItem::GetQuantityInit ( )
protected

Definition at line 3497 of file itembase.c.

◆ GetQuantityMax()

override int InventoryItem::GetQuantityMax ( )
protected

Definition at line 3459 of file itembase.c.

◆ GetQuantityMin()

override int InventoryItem::GetQuantityMin ( )
protected

Definition at line 3492 of file itembase.c.

◆ GetQuantityNormalized()

override float InventoryItem::GetQuantityNormalized ( )
protected

Gets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config(for Min 0 and Max 5000, value 2500 will result in 0.5).

Definition at line 3440 of file itembase.c.

◆ GetQuantityNormalizedScripted()

float InventoryItem::GetQuantityNormalizedScripted ( )
protected

Definition at line 3445 of file itembase.c.

◆ GetRecipesActions()

void InventoryItem::GetRecipesActions ( Man player,
out TSelectableActionInfoArray outputList )
protected

Definition at line 2342 of file itembase.c.

◆ GetSingleInventoryItemWeight()

float InventoryItem::GetSingleInventoryItemWeight ( )
protected

Definition at line 3528 of file itembase.c.

◆ GetSingleInventoryItemWeightEx()

override float InventoryItem::GetSingleInventoryItemWeightEx ( )
protected

Definition at line 3519 of file itembase.c.

◆ GetSoakingIncrement()

float InventoryItem::GetSoakingIncrement ( string pIncrementName)
protected

Definition at line 3693 of file itembase.c.

◆ GetStoreLoadedQuantity()

override float InventoryItem::GetStoreLoadedQuantity ( )
protected

Definition at line 3788 of file itembase.c.

◆ GetTargetQuantityMax()

override int InventoryItem::GetTargetQuantityMax ( int attSlotID = -1)
protected

Definition at line 3473 of file itembase.c.

◆ GetTemperatureFreezeThreshold()

override float InventoryItem::GetTemperatureFreezeThreshold ( )
protected

Definition at line 4694 of file itembase.c.

◆ GetTemperatureFreezeTime()

override float InventoryItem::GetTemperatureFreezeTime ( )
protected

Definition at line 4718 of file itembase.c.

◆ GetTemperaturePerQuantityWeight()

float InventoryItem::GetTemperaturePerQuantityWeight ( )
protected

Used in heat comfort calculations only!

Definition at line 4689 of file itembase.c.

◆ GetTemperatureThawThreshold()

override float InventoryItem::GetTemperatureThawThreshold ( )
protected

Definition at line 4702 of file itembase.c.

◆ GetTemperatureThawTime()

override float InventoryItem::GetTemperatureThawTime ( )
protected

Definition at line 4726 of file itembase.c.

◆ GetUnitWeight()

float InventoryItem::GetUnitWeight ( bool include_wetness = true)
protected

Obsolete, use GetWeightEx instead.

Definition at line 3595 of file itembase.c.

◆ GetValidFinishers()

array< int > InventoryItem::GetValidFinishers ( )
protected

returns an array of possible finishers

Definition at line 4766 of file itembase.c.

◆ GetWeightSpecialized()

float InventoryItem::GetWeightSpecialized ( bool forceRecalc = false)
protected

Definition at line 3533 of file itembase.c.

◆ GetWet()

override float InventoryItem::GetWet ( )
protected

Definition at line 3731 of file itembase.c.

◆ GetWetInit()

override float InventoryItem::GetWetInit ( )
protected

Definition at line 3746 of file itembase.c.

◆ GetWetLevel()

override EWetnessLevel InventoryItem::GetWetLevel ( )
protected

Definition at line 3766 of file itembase.c.

◆ GetWetMax()

override float InventoryItem::GetWetMax ( )
protected

Definition at line 3736 of file itembase.c.

◆ GetWetMin()

override float InventoryItem::GetWetMin ( )
protected

Definition at line 3741 of file itembase.c.

◆ GetWrittenNoteData()

WrittenNoteData InventoryItem::GetWrittenNoteData ( )
protected

Definition at line 4528 of file itembase.c.

◆ HasFoodStage()

bool InventoryItem::HasFoodStage ( )
protected

Definition at line 2654 of file itembase.c.

◆ HasQuantity()

override bool InventoryItem::HasQuantity ( )
protected

Definition at line 3503 of file itembase.c.

◆ HidesSelectionBySlot()

bool InventoryItem::HidesSelectionBySlot ( )
protected

Definition at line 4523 of file itembase.c.

◆ HierarchyCheck()

void InventoryItem::HierarchyCheck ( out bool hasParent,
out bool hasRootAsPlayer,
out ItemBase refParentIB )
protected

Definition at line 4611 of file itembase.c.

◆ IDToName()

string InventoryItem::IDToName ( int id)
protected

Definition at line 2877 of file itembase.c.

◆ InitItemSounds()

void InventoryItem::InitItemSounds ( )
protected

Definition at line 4448 of file itembase.c.

◆ InsertAgent()

override void InventoryItem::InsertAgent ( int agent,
float count = 1 )
protected

Definition at line 4005 of file itembase.c.

◆ IsActionTargetVisible()

bool InventoryItem::IsActionTargetVisible ( )
protected

Definition at line 4406 of file itembase.c.

◆ IsCargoException4x3()

bool InventoryItem::IsCargoException4x3 ( EntityAI item)
protected

Definition at line 4739 of file itembase.c.

◆ IsColorSet()

bool InventoryItem::IsColorSet ( )
protected

Definition at line 3869 of file itembase.c.

◆ IsCombineAll()

bool InventoryItem::IsCombineAll ( ItemBase other_item,
bool use_stack_max = false )
protected

Definition at line 2264 of file itembase.c.

◆ IsCoverFaceForShave()

bool InventoryItem::IsCoverFaceForShave ( string slot_name)
protected

DEPRECATED in use, but returns correct values nontheless. Check performed elsewhere.

Definition at line 4561 of file itembase.c.

◆ IsDeployable()

bool InventoryItem::IsDeployable ( )
protected

Definition at line 4380 of file itembase.c.

◆ IsDeploySound()

bool InventoryItem::IsDeploySound ( )
protected

Definition at line 4866 of file itembase.c.

◆ IsFullQuantity()

bool InventoryItem::IsFullQuantity ( )
protected

Definition at line 3513 of file itembase.c.

◆ IsHeavyBehaviour()

override bool InventoryItem::IsHeavyBehaviour ( )
protected

Definition at line 4350 of file itembase.c.

◆ IsIgnoredByConstruction()

override bool InventoryItem::IsIgnoredByConstruction ( )
protected

Definition at line 2647 of file itembase.c.

◆ IsItemBase()

override bool InventoryItem::IsItemBase ( )
protected

Definition at line 2794 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool InventoryItem::IsOneHandedBehaviour ( )
protected

Definition at line 4360 of file itembase.c.

◆ IsOpen()

bool InventoryItem::IsOpen ( )
protected

Definition at line 4148 of file itembase.c.

◆ IsPlaceSound()

bool InventoryItem::IsPlaceSound ( )
protected

Definition at line 4865 of file itembase.c.

◆ IsResultOfSplit()

bool InventoryItem::IsResultOfSplit ( )
protected

Definition at line 2269 of file itembase.c.

◆ IsSoundSynchRemote()

bool InventoryItem::IsSoundSynchRemote ( )
protected

Definition at line 4864 of file itembase.c.

◆ IsStoreLoad()

override bool InventoryItem::IsStoreLoad ( )
protected

Definition at line 3778 of file itembase.c.

◆ IsTakeable()

override bool InventoryItem::IsTakeable ( )
protected

Definition at line 4400 of file itembase.c.

◆ IsTwoHandedBehaviour()

override bool InventoryItem::IsTwoHandedBehaviour ( )
protected

Definition at line 4370 of file itembase.c.

◆ KindOf()

override bool InventoryItem::KindOf ( string tag)
protected

Definition at line 2800 of file itembase.c.

◆ LoadAgents()

bool InventoryItem::LoadAgents ( ParamsReadContext ctx,
int version )
protected

Definition at line 4066 of file itembase.c.

◆ MessageToOwnerAction()

void InventoryItem::MessageToOwnerAction ( string text)
protected

Send message to owner player in yellow color.

Returns
void
item_stone.MessageToOwnerAction("Some Action Message");

Definition at line 2748 of file itembase.c.

◆ MessageToOwnerFriendly()

void InventoryItem::MessageToOwnerFriendly ( string text)
protected

Send message to owner player in green color.

Returns
void
item_stone.MessageToOwnerFriendly("Some Friendly Message");

Definition at line 2766 of file itembase.c.

◆ MessageToOwnerImportant()

void InventoryItem::MessageToOwnerImportant ( string text)
protected

Send message to owner player in red color.

Returns
void
item_stone.MessageToOwnerImportant("Some Important Message");

Definition at line 2784 of file itembase.c.

◆ MessageToOwnerStatus()

void InventoryItem::MessageToOwnerStatus ( string text)
protected

Send message to owner player in grey color.

Returns
void
item_stone.MessageToOwnerStatus("Some Status Message");

Definition at line 2730 of file itembase.c.

◆ NameToID()

int InventoryItem::NameToID ( string name)
protected

Definition at line 2871 of file itembase.c.

◆ OnAction()

override bool InventoryItem::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
protected

Definition at line 2423 of file itembase.c.

◆ OnActivatedByItem()

void InventoryItem::OnActivatedByItem ( notnull ItemBase item)
protected

Called when this item is activated by other.

◆ OnActivatedByTripWire()

void InventoryItem::OnActivatedByTripWire ( )
protected

DEPRECATED use OnActivatedByItem below Called when this item is activated from a trip wire that was stepped on.

◆ OnApply()

void InventoryItem::OnApply ( PlayerBase player)
protected

◆ OnAttachmentQuantityChanged()

void InventoryItem::OnAttachmentQuantityChanged ( ItemBase item)
protected

Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.

Definition at line 2075 of file itembase.c.

◆ OnAttachmentQuantityChangedEx()

void InventoryItem::OnAttachmentQuantityChangedEx ( ItemBase item,
float delta )
protected

Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.

Definition at line 2081 of file itembase.c.

◆ OnCombine()

void InventoryItem::OnCombine ( ItemBase other_item)
protected

Definition at line 2334 of file itembase.c.

◆ OnEnergyAdded()

override void InventoryItem::OnEnergyAdded ( )
protected

Definition at line 3653 of file itembase.c.

◆ OnEnergyConsumed()

override void InventoryItem::OnEnergyConsumed ( )
protected

Definition at line 3646 of file itembase.c.

◆ OnInventoryEnter()

void InventoryItem::OnInventoryEnter ( Man player)
protected

Event called on item when it is placed in the player(Man) inventory, passes the owner as a parameter.

Definition at line 3923 of file itembase.c.

◆ OnInventoryExit()

void InventoryItem::OnInventoryExit ( Man player)
protected

Event called on item when it is removed from the player(Man) inventory, passes the old owner as a parameter.

Definition at line 3935 of file itembase.c.

◆ OnLiquidTypeChanged()

void InventoryItem::OnLiquidTypeChanged ( int oldType,
int newType )
protected

Definition at line 3909 of file itembase.c.

◆ OnPlacementComplete()

override void InventoryItem::OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
protected

Definition at line 3959 of file itembase.c.

◆ OnPlacementStarted()

override void InventoryItem::OnPlacementStarted ( Man player)
protected

Definition at line 3952 of file itembase.c.

◆ OnQuantityChanged()

void InventoryItem::OnQuantityChanged ( float delta)
protected

Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.

Definition at line 2052 of file itembase.c.

◆ OnRightClick()

override void InventoryItem::OnRightClick ( )
protected

Definition at line 2124 of file itembase.c.

◆ OnRPC()

override void InventoryItem::OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
protected

Definition at line 2820 of file itembase.c.

◆ OnStoreLoad()

override bool InventoryItem::OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 3120 of file itembase.c.

◆ OnStoreSave()

override void InventoryItem::OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 3221 of file itembase.c.

◆ OnSyncVariables()

void InventoryItem::OnSyncVariables ( ParamsReadContext ctx)
protected

DEPRECATED (most likely).

Definition at line 2884 of file itembase.c.

◆ OnVariablesSynchronized()

override void InventoryItem::OnVariablesSynchronized ( )
protected

Definition at line 3285 of file itembase.c.

◆ OnWetChanged()

override void InventoryItem::OnWetChanged ( float newVal,
float oldVal )
protected

Definition at line 3751 of file itembase.c.

◆ OnWetLevelChanged()

override void InventoryItem::OnWetLevelChanged ( EWetnessLevel newLevel,
EWetnessLevel oldLevel )
protected

Definition at line 3761 of file itembase.c.

◆ Open()

void InventoryItem::Open ( )
protected

Implementations only.

◆ PairWithDevice()

bool InventoryItem::PairWithDevice ( notnull ItemBase otherDevice)
protected

Definition at line 4777 of file itembase.c.

◆ PerformDamageSystemReinit()

void InventoryItem::PerformDamageSystemReinit ( )
protected

Definition at line 4536 of file itembase.c.

◆ PlayAttachSound()

void InventoryItem::PlayAttachSound ( string slot_type)
protected

Plays sound on item attach. Be advised, the config structure may slightly change in 1.11 update to allow for more complex use.

Definition at line 4872 of file itembase.c.

◆ PlayBulletCasingEjectParticles()

void InventoryItem::PlayBulletCasingEjectParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
staticprotected

Definition at line 4269 of file itembase.c.

◆ PlayDeployFinishSound()

void InventoryItem::PlayDeployFinishSound ( )
protected

◆ PlayDeployLoopSoundEx()

void InventoryItem::PlayDeployLoopSoundEx ( )
protected

◆ PlayDeploySound()

void InventoryItem::PlayDeploySound ( )
protected

◆ PlayDetachSound()

void InventoryItem::PlayDetachSound ( string slot_type)
protected

Definition at line 4908 of file itembase.c.

◆ PlayFireParticles()

void InventoryItem::PlayFireParticles ( ItemBase weapon,
int muzzle_index,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
staticprotected

Definition at line 4249 of file itembase.c.

◆ PlayOverheatingParticles()

void InventoryItem::PlayOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
staticprotected

Definition at line 4289 of file itembase.c.

◆ PlayPlaceSound()

void InventoryItem::PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void InventoryItem::PreLoadSoundAttachmentType ( )
protected

Attachment Sound Type getting from config file.

Definition at line 4412 of file itembase.c.

◆ ProcessDecay()

void InventoryItem::ProcessDecay ( float delta,
bool hasRootAsPlayer )
protected

Definition at line 4628 of file itembase.c.

◆ ProcessItemTemperature()

void InventoryItem::ProcessItemTemperature ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
protected

Definition at line 4591 of file itembase.c.

◆ ProcessItemWetness()

void InventoryItem::ProcessItemWetness ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
protected

Definition at line 4566 of file itembase.c.

◆ ProcessItemWetnessAndTemperature()

void InventoryItem::ProcessItemWetnessAndTemperature ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
protected

Definition at line 4839 of file itembase.c.

◆ ProcessVariables()

override void InventoryItem::ProcessVariables ( )
protected

Definition at line 4658 of file itembase.c.

◆ ReadVarsFromCTX()

override bool InventoryItem::ReadVarsFromCTX ( ParamsReadContext ctx,
int version = -1 )
protected

Definition at line 3029 of file itembase.c.

◆ RefreshAudioVisualsOnClient()

void InventoryItem::RefreshAudioVisualsOnClient ( CookingMethodType cooking_method,
bool is_done,
bool is_empty,
bool is_burned )
protected

cooking-related effect methods

◆ RemoveAgent()

override void InventoryItem::RemoveAgent ( int agent_id)
protected

Definition at line 3986 of file itembase.c.

◆ RemoveAllAgents()

override void InventoryItem::RemoveAllAgents ( )
protected

Definition at line 3995 of file itembase.c.

◆ RemoveAllAgentsExcept()

override void InventoryItem::RemoveAllAgentsExcept ( int agent_to_keep)
protected

Definition at line 4000 of file itembase.c.

◆ RemoveAudioVisualsOnClient()

void InventoryItem::RemoveAudioVisualsOnClient ( )
protected

◆ RemoveLightSourceItem()

void InventoryItem::RemoveLightSourceItem ( )
protected

Definition at line 4755 of file itembase.c.

◆ Repair()

bool InventoryItem::Repair ( PlayerBase player,
ItemBase item_repair_kit,
float specialty_weight )
protected

Definition at line 2688 of file itembase.c.

◆ SaveAgents()

void InventoryItem::SaveAgents ( ParamsWriteContext ctx)
protected

Definition at line 4073 of file itembase.c.

◆ SerializeNumericalVars()

override void InventoryItem::SerializeNumericalVars ( array< float > floats_out)
protected

Definition at line 2898 of file itembase.c.

◆ SetCanBeMovedOverride()

void InventoryItem::SetCanBeMovedOverride ( bool setting)
protected

Definition at line 2717 of file itembase.c.

◆ SetCleanness()

override void InventoryItem::SetCleanness ( int value,
bool allow_client = false )
protected

Definition at line 3813 of file itembase.c.

◆ SetColor()

override void InventoryItem::SetColor ( int r,
int g,
int b,
int a )
protected

Definition at line 3852 of file itembase.c.

◆ SetInventoryLocationToVicinityOrCurrent()

void InventoryItem::SetInventoryLocationToVicinityOrCurrent ( EntityAI root,
inout InventoryLocation dst )
protected

Definition at line 2188 of file itembase.c.

◆ SetIsDeploySound()

void InventoryItem::SetIsDeploySound ( bool is_deploy_sound)
protected

◆ SetIsPlaceSound()

void InventoryItem::SetIsPlaceSound ( bool is_place_sound)
protected

◆ SetLiquidType()

override void InventoryItem::SetLiquidType ( int value,
bool allow_client = false )
protected

Definition at line 3888 of file itembase.c.

◆ SetQuantity()

override bool InventoryItem::SetQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false,
bool allow_client = false,
bool clamp_to_stack_max = true )
protected

Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity reaches varQuantityMin or lower and the item config contains the varQuantityDestroyOnMin = true entry, the item gets destroyed. destroy_forced = true means item gets destroyed when quantity reaches varQuantityMin or lower regardless of config setting, returns true if the item gets deleted.

Definition at line 3340 of file itembase.c.

◆ SetQuantityMax()

void InventoryItem::SetQuantityMax ( )
protected

Definition at line 3418 of file itembase.c.

◆ SetQuantityNormalized()

override void InventoryItem::SetQuantityNormalized ( float value,
bool destroy_config = true,
bool destroy_forced = false )
protected

Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config(for Min 0 and Max 5000, setting 0.5 will result in value 2500).

Definition at line 3431 of file itembase.c.

◆ SetQuantityToMinimum()

override void InventoryItem::SetQuantityToMinimum ( )
protected

Definition at line 3424 of file itembase.c.

◆ SetResultOfSplit()

void InventoryItem::SetResultOfSplit ( bool value)
protected

Definition at line 2274 of file itembase.c.

◆ SetStoreLoad()

override void InventoryItem::SetStoreLoad ( bool value)
protected

Definition at line 3773 of file itembase.c.

◆ SetStoreLoadedQuantity()

override void InventoryItem::SetStoreLoadedQuantity ( float value)
protected

Definition at line 3783 of file itembase.c.

◆ SetTakeable()

override void InventoryItem::SetTakeable ( bool pState)
protected

Definition at line 4394 of file itembase.c.

◆ SetWet()

override void InventoryItem::SetWet ( float value,
bool allow_client = false )
protected

Definition at line 3702 of file itembase.c.

◆ SetWetMax()

override void InventoryItem::SetWetMax ( )
protected

Definition at line 3726 of file itembase.c.

◆ SetZoneDamageCEInit()

void InventoryItem::SetZoneDamageCEInit ( )
protected

Sets zone damages to match randomized global health set by CE (CE spawn only).

Definition at line 4548 of file itembase.c.

◆ ShouldSplitQuantity()

bool InventoryItem::ShouldSplitQuantity ( float quantity)
protected

Definition at line 1613 of file itembase.c.

◆ SoundSynchRemote()

void InventoryItem::SoundSynchRemote ( )
protected

◆ SoundSynchRemoteReset()

void InventoryItem::SoundSynchRemoteReset ( )
protected

◆ SplitIntoStackMax()

void InventoryItem::SplitIntoStackMax ( EntityAI destination_entity,
int slot_id,
PlayerBase player )
protected

Definition at line 1656 of file itembase.c.

◆ SplitIntoStackMaxCargo()

void InventoryItem::SplitIntoStackMaxCargo ( EntityAI destination_entity,
int idx,
int row,
int col )
protected

Definition at line 1906 of file itembase.c.

◆ SplitIntoStackMaxCargoClient()

void InventoryItem::SplitIntoStackMaxCargoClient ( EntityAI destination_entity,
int idx,
int row,
int col )
protected

Definition at line 1842 of file itembase.c.

◆ SplitIntoStackMaxClient()

override void InventoryItem::SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
protected

Definition at line 1633 of file itembase.c.

◆ SplitIntoStackMaxEx()

override void InventoryItem::SplitIntoStackMaxEx ( EntityAI destination_entity,
int slot_id )
protected

Definition at line 1743 of file itembase.c.

◆ SplitIntoStackMaxHands()

void InventoryItem::SplitIntoStackMaxHands ( PlayerBase player)
protected

Definition at line 1957 of file itembase.c.

◆ SplitIntoStackMaxHandsClient()

void InventoryItem::SplitIntoStackMaxHandsClient ( PlayerBase player)
protected

Definition at line 1933 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocation()

void InventoryItem::SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 1867 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationClient()

void InventoryItem::SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
protected

Definition at line 1821 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase InventoryItem::SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
protected

Definition at line 1872 of file itembase.c.

◆ SplitItem()

void InventoryItem::SplitItem ( PlayerBase player)
protected

Definition at line 2018 of file itembase.c.

◆ SplitItemToInventoryLocation()

void InventoryItem::SplitItemToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 1985 of file itembase.c.

◆ StartItemSoundServer() [1/2]

void InventoryItem::StartItemSoundServer ( int id)
protected

Definition at line 4482 of file itembase.c.

◆ StartItemSoundServer() [2/2]

void InventoryItem::StartItemSoundServer ( int id,
int slotId )
protected

Definition at line 4468 of file itembase.c.

◆ StopDeployLoopSoundEx()

void InventoryItem::StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void InventoryItem::StopItemDynamicPhysics ( )
protected

Definition at line 4530 of file itembase.c.

◆ StopItemSoundServer()

void InventoryItem::StopItemSoundServer ( int id)
protected

Definition at line 4488 of file itembase.c.

◆ StopOverheatingParticles()

void InventoryItem::StopOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
staticprotected

Definition at line 4329 of file itembase.c.

◆ TransferAgents()

void InventoryItem::TransferAgents ( int agents)
protected

transfer agents from another item

Definition at line 4014 of file itembase.c.

◆ UpdateOverheatingParticles()

void InventoryItem::UpdateOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
staticprotected

Definition at line 4309 of file itembase.c.

◆ UpdateQuickbarShortcutVisibility()

void InventoryItem::UpdateQuickbarShortcutVisibility ( PlayerBase player)
protected

To be called on moving item within character's inventory; 'player' should never be null.

Definition at line 3916 of file itembase.c.

◆ UsesGlobalDeploy()

bool InventoryItem::UsesGlobalDeploy ( )
protected

Definition at line 4862 of file itembase.c.

◆ WriteVarsToCTX()

override void InventoryItem::WriteVarsToCTX ( ParamsWriteContext ctx)
protected

Definition at line 2993 of file itembase.c.

Member Data Documentation

◆ ITEM_SOUNDS_MAX

const int InventoryItem::ITEM_SOUNDS_MAX = 63
protected

Definition at line 137 of file itembase.c.

◆ m_AdminLog

PluginAdminLog InventoryItem::m_AdminLog
protected

Definition at line 125 of file itembase.c.

◆ m_CanBeDigged

bool InventoryItem::m_CanBeDigged
protected

Definition at line 79 of file itembase.c.

◆ m_ColorComponentA

int InventoryItem::m_ColorComponentA
protected

Definition at line 87 of file itembase.c.

◆ m_ColorComponentB

int InventoryItem::m_ColorComponentB
protected

Definition at line 86 of file itembase.c.

◆ m_ColorComponentG

int InventoryItem::m_ColorComponentG
protected

Definition at line 85 of file itembase.c.

◆ m_ColorComponentR

int InventoryItem::m_ColorComponentR
protected

Definition at line 84 of file itembase.c.

◆ m_CompatibleLocks

ref array<int> InventoryItem::m_CompatibleLocks
protected

Definition at line 131 of file itembase.c.

◆ m_ContinuousActions

ref TIntArray InventoryItem::m_ContinuousActions
protected

Definition at line 94 of file itembase.c.

◆ m_DeployLoopSoundEx

EffectSound InventoryItem::m_DeployLoopSoundEx
protected

Definition at line 4848 of file itembase.c.

◆ m_HeadHidingSelections

ref TStringArray InventoryItem::m_HeadHidingSelections
protected

Definition at line 121 of file itembase.c.

◆ m_HideSelectionsBySlot

bool InventoryItem::m_HideSelectionsBySlot
protected

Definition at line 122 of file itembase.c.

◆ m_InteractActions

ref TIntArray InventoryItem::m_InteractActions
protected

Definition at line 95 of file itembase.c.

◆ m_IsDeploySound

bool InventoryItem::m_IsDeploySound
protected

Definition at line 4851 of file itembase.c.

◆ m_IsPlaceSound

bool InventoryItem::m_IsPlaceSound
protected

Definition at line 4850 of file itembase.c.

◆ m_IsSoundSynchRemote

bool InventoryItem::m_IsSoundSynchRemote
protected

Definition at line 4852 of file itembase.c.

◆ m_LightSourceItem

ItemBase InventoryItem::m_LightSourceItem
protected

Definition at line 91 of file itembase.c.

◆ m_LockingSound

ref EffectSound InventoryItem::m_LockingSound
protected

Definition at line 133 of file itembase.c.

◆ m_LockSoundSet

string InventoryItem::m_LockSoundSet
protected

Definition at line 134 of file itembase.c.

◆ m_LockType

int InventoryItem::m_LockType
protected

Definition at line 132 of file itembase.c.

◆ m_PhysDropTimer

ref Timer InventoryItem::m_PhysDropTimer
protected

Definition at line 128 of file itembase.c.

◆ m_SingleUseActions

ref TIntArray InventoryItem::m_SingleUseActions
protected

Definition at line 93 of file itembase.c.

◆ m_SoundAttType

bool m_IsResultOfSplit string InventoryItem::m_SoundAttType
protected

distinguish if item has been created as new or it came from splitting (server only flag)

Definition at line 82 of file itembase.c.

◆ m_SoundDeploy

EffectSound InventoryItem::m_SoundDeploy
protected

Definition at line 4849 of file itembase.c.

◆ m_SoundDeployFinish

EffectSound InventoryItem::m_SoundDeployFinish
protected

Definition at line 4846 of file itembase.c.

◆ m_SoundPlace

EffectSound InventoryItem::m_SoundPlace
protected

Definition at line 4847 of file itembase.c.

◆ m_SoundSyncPlay

int InventoryItem::m_SoundSyncPlay
protected

Definition at line 138 of file itembase.c.

◆ m_SoundSyncSlotID

int InventoryItem::m_SoundSyncSlotID = InventorySlots.INVALID
protected

Definition at line 140 of file itembase.c.

◆ m_SoundSyncStop

int InventoryItem::m_SoundSyncStop
protected

Definition at line 139 of file itembase.c.


The documentation for this class was generated from the following file: