Dayz Explorer 1.28.160049
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)
 
void StopItemSoundServer (int id)
 
void ClearStartItemSoundServer ()
 
void ClearStopItemSoundServer ()
 
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)
 
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)
 

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
 
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 14 of file itembase.c.

Member Function Documentation

◆ AddLightSourceItem()

void InventoryItem::AddLightSourceItem ( ItemBase lightsource)
protected

Adds a light source child.

Definition at line 4734 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 3362 of file itembase.c.

◆ AddWet()

override void InventoryItem::AddWet ( float value)
protected

Definition at line 3666 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 3221 of file itembase.c.

◆ AllowFoodConsumption()

bool InventoryItem::AllowFoodConsumption ( )
protected

Definition at line 3776 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 2176 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 4637 of file itembase.c.

◆ CanBeCooked()

bool InventoryItem::CanBeCooked ( )
protected

Definition at line 2638 of file itembase.c.

◆ CanBeCookedOnStick()

bool InventoryItem::CanBeCookedOnStick ( )
protected

Definition at line 2643 of file itembase.c.

◆ CanBeDisinfected()

bool InventoryItem::CanBeDisinfected ( )
protected

Definition at line 3250 of file itembase.c.

◆ CanBeMovedOverride()

bool InventoryItem::CanBeMovedOverride ( )
protected

Definition at line 2682 of file itembase.c.

◆ CanBeUsedForSuicide()

bool InventoryItem::CanBeUsedForSuicide ( )
protected

Definition at line 4814 of file itembase.c.

◆ CanDecay()

bool InventoryItem::CanDecay ( )
protected

Definition at line 4617 of file itembase.c.

◆ CanDisplayCargo()

override bool InventoryItem::CanDisplayCargo ( )
protected

Definition at line 4103 of file itembase.c.

◆ CanEat()

bool InventoryItem::CanEat ( )
protected

Definition at line 2613 of file itembase.c.

◆ CanExplodeInFire()

bool InventoryItem::CanExplodeInFire ( )
protected

Definition at line 2607 of file itembase.c.

◆ CanHaveWetness()

bool InventoryItem::CanHaveWetness ( )
protected

Definition at line 4630 of file itembase.c.

◆ CanPlayDeployLoopSound()

bool InventoryItem::CanPlayDeployLoopSound ( )
protected

Definition at line 4847 of file itembase.c.

◆ CanProcessDecay()

bool InventoryItem::CanProcessDecay ( )
protected

Definition at line 4623 of file itembase.c.

◆ CanPutAsAttachment()

override bool InventoryItem::CanPutAsAttachment ( EntityAI parent)
protected

Definition at line 4126 of file itembase.c.

◆ CanPutInCargo()

override bool InventoryItem::CanPutInCargo ( EntityAI parent)
protected

Definition at line 4112 of file itembase.c.

◆ CanReceiveAttachment()

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

Definition at line 4150 of file itembase.c.

◆ CanReceiveItemIntoCargo()

override bool InventoryItem::CanReceiveItemIntoCargo ( EntityAI item)
protected

Definition at line 4141 of file itembase.c.

◆ CanReleaseAttachment()

override bool InventoryItem::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 4171 of file itembase.c.

◆ CanRepair()

bool InventoryItem::CanRepair ( ItemBase item_repair_kit)
protected

Definition at line 2653 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 4031 of file itembase.c.

◆ ClearInventory()

override void InventoryItem::ClearInventory ( )
protected

Definition at line 3559 of file itembase.c.

◆ ClearStartItemSoundServer()

void InventoryItem::ClearStartItemSoundServer ( )
protected

Definition at line 4443 of file itembase.c.

◆ ClearStopItemSoundServer()

void InventoryItem::ClearStopItemSoundServer ( )
protected

Definition at line 4448 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 2282 of file itembase.c.

◆ CombineItemsEx()

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

Definition at line 2277 of file itembase.c.

◆ ComputeQuantityUsed()

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

Definition at line 2253 of file itembase.c.

◆ ComputeQuantityUsedEx()

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

Definition at line 2258 of file itembase.c.

◆ ContainsAgent()

bool InventoryItem::ContainsAgent ( int agent_id)
protected

Definition at line 3923 of file itembase.c.

◆ ConvertEnergyToQuantity()

void InventoryItem::ConvertEnergyToQuantity ( )
protected

Definition at line 3606 of file itembase.c.

◆ CopyScriptPropertiesFrom()

void InventoryItem::CopyScriptPropertiesFrom ( EntityAI oldItem)
protected

Definition at line 4728 of file itembase.c.

◆ DeSerializeNumericalVars()

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

Definition at line 2906 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 2060 of file itembase.c.

◆ EEOnAfterLoad()

override void InventoryItem::EEOnAfterLoad ( )
protected

Definition at line 3237 of file itembase.c.

◆ EEOnCECreate()

override void InventoryItem::EEOnCECreate ( )
protected

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

Definition at line 4083 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 4756 of file itembase.c.

◆ GetAgents()

override int InventoryItem::GetAgents ( )
protected

Definition at line 3970 of file itembase.c.

◆ GetAttachmentSoundType()

override string InventoryItem::GetAttachmentSoundType ( )
protected

Definition at line 4374 of file itembase.c.

◆ GetBaitEffectivity()

float InventoryItem::GetBaitEffectivity ( )
protected

generic effectivity as a bait for animal catching

Definition at line 4786 of file itembase.c.

◆ GetBandagingEffectivity()

float InventoryItem::GetBandagingEffectivity ( )
protected

Definition at line 4497 of file itembase.c.

◆ GetCleanness()

override int InventoryItem::GetCleanness ( )
protected

Definition at line 3771 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 3806 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 3820 of file itembase.c.

◆ GetDebugActions()

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

Definition at line 2337 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 4336 of file itembase.c.

◆ GetDryingIncrement()

float InventoryItem::GetDryingIncrement ( string pIncrementName)
protected

Definition at line 3629 of file itembase.c.

◆ GetEnergy()

float InventoryItem::GetEnergy ( )
protected

Definition at line 3580 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 2633 of file itembase.c.

◆ GetHeadHidingSelection()

array< string > InventoryItem::GetHeadHidingSelection ( )
protected

Definition at line 4502 of file itembase.c.

◆ GetHeatIsolation()

float InventoryItem::GetHeatIsolation ( )
protected

Definition at line 3624 of file itembase.c.

◆ GetHeatIsolationInit()

float InventoryItem::GetHeatIsolationInit ( )
protected

Definition at line 3619 of file itembase.c.

◆ GetItemAttachOffset()

float InventoryItem::GetItemAttachOffset ( )
protected

Definition at line 3749 of file itembase.c.

◆ GetItemModelLength()

float InventoryItem::GetItemModelLength ( )
protected

Definition at line 3740 of file itembase.c.

◆ GetItemOverheatThreshold()

override float InventoryItem::GetItemOverheatThreshold ( )
protected

Definition at line 4694 of file itembase.c.

◆ GetItemSize()

int InventoryItem::GetItemSize ( )
protected

Definition at line 2667 of file itembase.c.

◆ GetItemSoundHandler()

ItemSoundHandler InventoryItem::GetItemSoundHandler ( )
protected

Definition at line 4389 of file itembase.c.

◆ GetLightSourceItem()

ItemBase InventoryItem::GetLightSourceItem ( )
protected

Definition at line 4744 of file itembase.c.

◆ GetLiquidType()

override int InventoryItem::GetLiquidType ( )
protected

Definition at line 3849 of file itembase.c.

◆ GetLiquidTypeInit()

int InventoryItem::GetLiquidTypeInit ( )
protected

Definition at line 3844 of file itembase.c.

◆ GetLockSoundSet()

string InventoryItem::GetLockSoundSet ( )
protected

Definition at line 3789 of file itembase.c.

◆ GetLockType()

int InventoryItem::GetLockType ( )
protected

Definition at line 3784 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 3520 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 4044 of file itembase.c.

◆ GetQuantity()

override float InventoryItem::GetQuantity ( )
protected

Definition at line 3456 of file itembase.c.

◆ GetQuantityInit()

int InventoryItem::GetQuantityInit ( )
protected

Definition at line 3445 of file itembase.c.

◆ GetQuantityMax()

override int InventoryItem::GetQuantityMax ( )
protected

Definition at line 3408 of file itembase.c.

◆ GetQuantityMin()

override int InventoryItem::GetQuantityMin ( )
protected

Definition at line 3440 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 3389 of file itembase.c.

◆ GetQuantityNormalizedScripted()

float InventoryItem::GetQuantityNormalizedScripted ( )
protected

Definition at line 3394 of file itembase.c.

◆ GetRecipesActions()

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

Definition at line 2316 of file itembase.c.

◆ GetSingleInventoryItemWeight()

float InventoryItem::GetSingleInventoryItemWeight ( )
protected

Definition at line 3476 of file itembase.c.

◆ GetSingleInventoryItemWeightEx()

override float InventoryItem::GetSingleInventoryItemWeightEx ( )
protected

Definition at line 3467 of file itembase.c.

◆ GetSoakingIncrement()

float InventoryItem::GetSoakingIncrement ( string pIncrementName)
protected

Definition at line 3638 of file itembase.c.

◆ GetStoreLoadedQuantity()

override float InventoryItem::GetStoreLoadedQuantity ( )
protected

Definition at line 3733 of file itembase.c.

◆ GetTargetQuantityMax()

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

Definition at line 3421 of file itembase.c.

◆ GetTemperatureFreezeThreshold()

override float InventoryItem::GetTemperatureFreezeThreshold ( )
protected

Definition at line 4678 of file itembase.c.

◆ GetTemperatureFreezeTime()

override float InventoryItem::GetTemperatureFreezeTime ( )
protected

Definition at line 4702 of file itembase.c.

◆ GetTemperaturePerQuantityWeight()

float InventoryItem::GetTemperaturePerQuantityWeight ( )
protected

Used in heat comfort calculations only!

Definition at line 4673 of file itembase.c.

◆ GetTemperatureThawThreshold()

override float InventoryItem::GetTemperatureThawThreshold ( )
protected

Definition at line 4686 of file itembase.c.

◆ GetTemperatureThawTime()

override float InventoryItem::GetTemperatureThawTime ( )
protected

Definition at line 4710 of file itembase.c.

◆ GetUnitWeight()

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

Obsolete, use GetWeightEx instead.

Definition at line 3540 of file itembase.c.

◆ GetValidFinishers()

array< int > InventoryItem::GetValidFinishers ( )
protected

returns an array of possible finishers

Definition at line 4750 of file itembase.c.

◆ GetWeightSpecialized()

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

Definition at line 3481 of file itembase.c.

◆ GetWet()

override float InventoryItem::GetWet ( )
protected

Definition at line 3676 of file itembase.c.

◆ GetWetInit()

override float InventoryItem::GetWetInit ( )
protected

Definition at line 3691 of file itembase.c.

◆ GetWetLevel()

override EWetnessLevel InventoryItem::GetWetLevel ( )
protected

Definition at line 3711 of file itembase.c.

◆ GetWetMax()

override float InventoryItem::GetWetMax ( )
protected

Definition at line 3681 of file itembase.c.

◆ GetWetMin()

override float InventoryItem::GetWetMin ( )
protected

Definition at line 3686 of file itembase.c.

◆ GetWrittenNoteData()

WrittenNoteData InventoryItem::GetWrittenNoteData ( )
protected

Definition at line 4512 of file itembase.c.

◆ HasFoodStage()

bool InventoryItem::HasFoodStage ( )
protected

Definition at line 2626 of file itembase.c.

◆ HasQuantity()

override bool InventoryItem::HasQuantity ( )
protected

Definition at line 3451 of file itembase.c.

◆ HidesSelectionBySlot()

bool InventoryItem::HidesSelectionBySlot ( )
protected

Definition at line 4507 of file itembase.c.

◆ HierarchyCheck()

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

Definition at line 4595 of file itembase.c.

◆ IDToName()

string InventoryItem::IDToName ( int id)
protected

Definition at line 2849 of file itembase.c.

◆ InitItemSounds()

void InventoryItem::InitItemSounds ( )
protected

Definition at line 4398 of file itembase.c.

◆ InsertAgent()

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

Definition at line 3955 of file itembase.c.

◆ IsActionTargetVisible()

bool InventoryItem::IsActionTargetVisible ( )
protected

Definition at line 4356 of file itembase.c.

◆ IsCargoException4x3()

bool InventoryItem::IsCargoException4x3 ( EntityAI item)
protected

Definition at line 4723 of file itembase.c.

◆ IsColorSet()

bool InventoryItem::IsColorSet ( )
protected

Definition at line 3814 of file itembase.c.

◆ IsCombineAll()

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

Definition at line 2238 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 4545 of file itembase.c.

◆ IsDeployable()

bool InventoryItem::IsDeployable ( )
protected

Definition at line 4330 of file itembase.c.

◆ IsDeploySound()

bool InventoryItem::IsDeploySound ( )
protected

Definition at line 4850 of file itembase.c.

◆ IsFullQuantity()

bool InventoryItem::IsFullQuantity ( )
protected

Definition at line 3461 of file itembase.c.

◆ IsHeavyBehaviour()

override bool InventoryItem::IsHeavyBehaviour ( )
protected

Definition at line 4300 of file itembase.c.

◆ IsIgnoredByConstruction()

override bool InventoryItem::IsIgnoredByConstruction ( )
protected

Definition at line 2619 of file itembase.c.

◆ IsItemBase()

override bool InventoryItem::IsItemBase ( )
protected

Definition at line 2766 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool InventoryItem::IsOneHandedBehaviour ( )
protected

Definition at line 4310 of file itembase.c.

◆ IsOpen()

bool InventoryItem::IsOpen ( )
protected

Definition at line 4098 of file itembase.c.

◆ IsPlaceSound()

bool InventoryItem::IsPlaceSound ( )
protected

Definition at line 4849 of file itembase.c.

◆ IsResultOfSplit()

bool InventoryItem::IsResultOfSplit ( )
protected

Definition at line 2243 of file itembase.c.

◆ IsSoundSynchRemote()

bool InventoryItem::IsSoundSynchRemote ( )
protected

Definition at line 4848 of file itembase.c.

◆ IsStoreLoad()

override bool InventoryItem::IsStoreLoad ( )
protected

Definition at line 3723 of file itembase.c.

◆ IsTakeable()

override bool InventoryItem::IsTakeable ( )
protected

Definition at line 4350 of file itembase.c.

◆ IsTwoHandedBehaviour()

override bool InventoryItem::IsTwoHandedBehaviour ( )
protected

Definition at line 4320 of file itembase.c.

◆ KindOf()

override bool InventoryItem::KindOf ( string tag)
protected

Definition at line 2772 of file itembase.c.

◆ LoadAgents()

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

Definition at line 4016 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 2720 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 2738 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 2756 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 2702 of file itembase.c.

◆ NameToID()

int InventoryItem::NameToID ( string name)
protected

Definition at line 2843 of file itembase.c.

◆ OnAction()

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

Definition at line 2397 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 2049 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 2055 of file itembase.c.

◆ OnCombine()

void InventoryItem::OnCombine ( ItemBase other_item)
protected

Definition at line 2308 of file itembase.c.

◆ OnEnergyAdded()

override void InventoryItem::OnEnergyAdded ( )
protected

Definition at line 3598 of file itembase.c.

◆ OnEnergyConsumed()

override void InventoryItem::OnEnergyConsumed ( )
protected

Definition at line 3591 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 3868 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 3881 of file itembase.c.

◆ OnLiquidTypeChanged()

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

Definition at line 3854 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 3909 of file itembase.c.

◆ OnPlacementStarted()

override void InventoryItem::OnPlacementStarted ( Man player)
protected

Definition at line 3902 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 2025 of file itembase.c.

◆ OnRightClick()

override void InventoryItem::OnRightClick ( )
protected

Definition at line 2098 of file itembase.c.

◆ OnRPC()

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

Definition at line 2792 of file itembase.c.

◆ OnStoreLoad()

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

Definition at line 3092 of file itembase.c.

◆ OnStoreSave()

override void InventoryItem::OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 3193 of file itembase.c.

◆ OnSyncVariables()

void InventoryItem::OnSyncVariables ( ParamsReadContext ctx)
protected

DEPRECATED (most likely)

Definition at line 2856 of file itembase.c.

◆ OnVariablesSynchronized()

override void InventoryItem::OnVariablesSynchronized ( )
protected

Definition at line 3257 of file itembase.c.

◆ OnWetChanged()

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

Definition at line 3696 of file itembase.c.

◆ OnWetLevelChanged()

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

Definition at line 3706 of file itembase.c.

◆ Open()

void InventoryItem::Open ( )
protected

Implementations only.

◆ PairWithDevice()

bool InventoryItem::PairWithDevice ( notnull ItemBase otherDevice)
protected

Definition at line 4761 of file itembase.c.

◆ PerformDamageSystemReinit()

void InventoryItem::PerformDamageSystemReinit ( )
protected

Definition at line 4520 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 4454 of file itembase.c.

◆ PlayBulletCasingEjectParticles()

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

Definition at line 4219 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 4490 of file itembase.c.

◆ PlayFireParticles()

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

Definition at line 4199 of file itembase.c.

◆ PlayOverheatingParticles()

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

Definition at line 4239 of file itembase.c.

◆ PlayPlaceSound()

void InventoryItem::PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void InventoryItem::PreLoadSoundAttachmentType ( )
protected

Attachment Sound Type getting from config file.

Definition at line 4362 of file itembase.c.

◆ ProcessDecay()

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

Definition at line 4612 of file itembase.c.

◆ ProcessItemTemperature()

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

Definition at line 4575 of file itembase.c.

◆ ProcessItemWetness()

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

Definition at line 4550 of file itembase.c.

◆ ProcessItemWetnessAndTemperature()

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

Definition at line 4823 of file itembase.c.

◆ ProcessVariables()

override void InventoryItem::ProcessVariables ( )
protected

Definition at line 4642 of file itembase.c.

◆ ReadVarsFromCTX()

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

Definition at line 3001 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 3936 of file itembase.c.

◆ RemoveAllAgents()

override void InventoryItem::RemoveAllAgents ( )
protected

Definition at line 3945 of file itembase.c.

◆ RemoveAllAgentsExcept()

override void InventoryItem::RemoveAllAgentsExcept ( int agent_to_keep)
protected

Definition at line 3950 of file itembase.c.

◆ RemoveAudioVisualsOnClient()

void InventoryItem::RemoveAudioVisualsOnClient ( )
protected

◆ RemoveLightSourceItem()

void InventoryItem::RemoveLightSourceItem ( )
protected

Definition at line 4739 of file itembase.c.

◆ Repair()

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

Definition at line 2660 of file itembase.c.

◆ SaveAgents()

void InventoryItem::SaveAgents ( ParamsWriteContext ctx)
protected

Definition at line 4023 of file itembase.c.

◆ SerializeNumericalVars()

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

Definition at line 2870 of file itembase.c.

◆ SetCanBeMovedOverride()

void InventoryItem::SetCanBeMovedOverride ( bool setting)
protected

Definition at line 2689 of file itembase.c.

◆ SetCleanness()

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

Definition at line 3758 of file itembase.c.

◆ SetColor()

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

Definition at line 3797 of file itembase.c.

◆ SetInventoryLocationToVicinityOrCurrent()

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

Definition at line 2162 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 3833 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 3308 of file itembase.c.

◆ SetQuantityMax()

void InventoryItem::SetQuantityMax ( )
protected

Definition at line 3367 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 3380 of file itembase.c.

◆ SetQuantityToMinimum()

override void InventoryItem::SetQuantityToMinimum ( )
protected

Definition at line 3373 of file itembase.c.

◆ SetResultOfSplit()

void InventoryItem::SetResultOfSplit ( bool value)
protected

Definition at line 2248 of file itembase.c.

◆ SetStoreLoad()

override void InventoryItem::SetStoreLoad ( bool value)
protected

Definition at line 3718 of file itembase.c.

◆ SetStoreLoadedQuantity()

override void InventoryItem::SetStoreLoadedQuantity ( float value)
protected

Definition at line 3728 of file itembase.c.

◆ SetTakeable()

override void InventoryItem::SetTakeable ( bool pState)
protected

Definition at line 4344 of file itembase.c.

◆ SetWet()

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

Definition at line 3647 of file itembase.c.

◆ SetWetMax()

override void InventoryItem::SetWetMax ( )
protected

Definition at line 3671 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 4532 of file itembase.c.

◆ ShouldSplitQuantity()

bool InventoryItem::ShouldSplitQuantity ( float quantity)
protected

Definition at line 1588 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 1631 of file itembase.c.

◆ SplitIntoStackMaxCargo()

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

Definition at line 1879 of file itembase.c.

◆ SplitIntoStackMaxCargoClient()

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

Definition at line 1815 of file itembase.c.

◆ SplitIntoStackMaxClient()

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

Definition at line 1608 of file itembase.c.

◆ SplitIntoStackMaxEx()

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

Definition at line 1717 of file itembase.c.

◆ SplitIntoStackMaxHands()

void InventoryItem::SplitIntoStackMaxHands ( PlayerBase player)
protected

Definition at line 1930 of file itembase.c.

◆ SplitIntoStackMaxHandsClient()

void InventoryItem::SplitIntoStackMaxHandsClient ( PlayerBase player)
protected

Definition at line 1906 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocation()

void InventoryItem::SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 1840 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationClient()

void InventoryItem::SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
protected

Definition at line 1794 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase InventoryItem::SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
protected

Definition at line 1845 of file itembase.c.

◆ SplitItem()

void InventoryItem::SplitItem ( PlayerBase player)
protected

Definition at line 1991 of file itembase.c.

◆ SplitItemToInventoryLocation()

void InventoryItem::SplitItemToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 1958 of file itembase.c.

◆ StartItemSoundServer()

void InventoryItem::StartItemSoundServer ( int id)
protected

Definition at line 4418 of file itembase.c.

◆ StopDeployLoopSoundEx()

void InventoryItem::StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void InventoryItem::StopItemDynamicPhysics ( )
protected

Definition at line 4514 of file itembase.c.

◆ StopItemSoundServer()

void InventoryItem::StopItemSoundServer ( int id)
protected

Definition at line 4431 of file itembase.c.

◆ StopOverheatingParticles()

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

Definition at line 4279 of file itembase.c.

◆ TransferAgents()

void InventoryItem::TransferAgents ( int agents)
protected

transfer agents from another item

Definition at line 3964 of file itembase.c.

◆ UpdateOverheatingParticles()

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

Definition at line 4259 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 3861 of file itembase.c.

◆ UsesGlobalDeploy()

bool InventoryItem::UsesGlobalDeploy ( )
protected

Definition at line 4846 of file itembase.c.

◆ WriteVarsToCTX()

override void InventoryItem::WriteVarsToCTX ( ParamsWriteContext ctx)
protected

Definition at line 2965 of file itembase.c.

Member Data Documentation

◆ ITEM_SOUNDS_MAX

const int InventoryItem::ITEM_SOUNDS_MAX = 63
protected

Definition at line 131 of file itembase.c.

◆ m_AdminLog

PluginAdminLog InventoryItem::m_AdminLog
protected

Definition at line 119 of file itembase.c.

◆ m_CanBeDigged

bool InventoryItem::m_CanBeDigged
protected

Definition at line 73 of file itembase.c.

◆ m_ColorComponentA

int InventoryItem::m_ColorComponentA
protected

Definition at line 81 of file itembase.c.

◆ m_ColorComponentB

int InventoryItem::m_ColorComponentB
protected

Definition at line 80 of file itembase.c.

◆ m_ColorComponentG

int InventoryItem::m_ColorComponentG
protected

Definition at line 79 of file itembase.c.

◆ m_ColorComponentR

int InventoryItem::m_ColorComponentR
protected

Definition at line 78 of file itembase.c.

◆ m_CompatibleLocks

ref array<int> InventoryItem::m_CompatibleLocks
protected

Definition at line 125 of file itembase.c.

◆ m_ContinuousActions

ref TIntArray InventoryItem::m_ContinuousActions
protected

Definition at line 88 of file itembase.c.

◆ m_DeployLoopSoundEx

EffectSound InventoryItem::m_DeployLoopSoundEx
protected

Definition at line 4832 of file itembase.c.

◆ m_HeadHidingSelections

ref TStringArray InventoryItem::m_HeadHidingSelections
protected

Definition at line 115 of file itembase.c.

◆ m_HideSelectionsBySlot

bool InventoryItem::m_HideSelectionsBySlot
protected

Definition at line 116 of file itembase.c.

◆ m_InteractActions

ref TIntArray InventoryItem::m_InteractActions
protected

Definition at line 89 of file itembase.c.

◆ m_IsDeploySound

bool InventoryItem::m_IsDeploySound
protected

Definition at line 4835 of file itembase.c.

◆ m_IsPlaceSound

bool InventoryItem::m_IsPlaceSound
protected

Definition at line 4834 of file itembase.c.

◆ m_IsSoundSynchRemote

bool InventoryItem::m_IsSoundSynchRemote
protected

Definition at line 4836 of file itembase.c.

◆ m_LightSourceItem

ItemBase InventoryItem::m_LightSourceItem
protected

Definition at line 85 of file itembase.c.

◆ m_LockingSound

ref EffectSound InventoryItem::m_LockingSound
protected

Definition at line 127 of file itembase.c.

◆ m_LockSoundSet

string InventoryItem::m_LockSoundSet
protected

Definition at line 128 of file itembase.c.

◆ m_LockType

int InventoryItem::m_LockType
protected

Definition at line 126 of file itembase.c.

◆ m_PhysDropTimer

ref Timer InventoryItem::m_PhysDropTimer
protected

Definition at line 122 of file itembase.c.

◆ m_SingleUseActions

ref TIntArray InventoryItem::m_SingleUseActions
protected

Definition at line 87 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 76 of file itembase.c.

◆ m_SoundDeploy

EffectSound InventoryItem::m_SoundDeploy
protected

Definition at line 4833 of file itembase.c.

◆ m_SoundDeployFinish

EffectSound InventoryItem::m_SoundDeployFinish
protected

Definition at line 4830 of file itembase.c.

◆ m_SoundPlace

EffectSound InventoryItem::m_SoundPlace
protected

Definition at line 4831 of file itembase.c.

◆ m_SoundSyncPlay

int InventoryItem::m_SoundSyncPlay
protected

Definition at line 132 of file itembase.c.

◆ m_SoundSyncStop

int InventoryItem::m_SoundSyncStop
protected

Definition at line 133 of file itembase.c.


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