Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
InventoryItem Class Reference

Protected Member Functions

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

Static Protected Member Functions

static void PlayBulletCasingEjectParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void PlayFireParticles (ItemBase weapon, int muzzle_index, 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 StopOverheatingParticles (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)

Protected Attributes

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

Private Member Functions

void ~ItemBase ()
void AddAction (typename actionName)
bool CanBeDigged ()
bool CanBeRepairedByCrafting ()
override bool CanBeSplit ()
bool CanMakeGardenplot ()
override bool CanObstruct ()
override string ChangeIntoOnAttach (string slot)
override string ChangeIntoOnDetach ()
void CheckOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
override void CombineItemsClient (EntityAI entity2, bool use_stack_max=true)
bool DamageItemAttachments (float damage)
bool DamageItemInCargo (float damage)
void DoAmmoExplosion ()
override void EEDelete (EntityAI parent)
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void EEKilled (Object killer)
override void EOnContact (IEntity other, Contact extra)
void ExplodeAmmo ()
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
int GetDamageSystemVersionChange ()
 Re-sets DamageSystem changes.
float GetDisinfectQuantity (int system=0, Param param1=null)
string GetExplosiveTriggerSlotName ()
float GetFilterDamageRatio ()
float GetInfectionChance (int system=0, Param param=null)
 Infection chance while/after using this item, originally used for wound infection after bandaging, params 'system' and 'param' can allow usage by other systems as well.
ScriptedLightBase GetLight ()
int GetLiquidContainerMask ()
int GetMuzzleID ()
 Returns global muzzle ID. If not found, then it gets automatically registered.
int GetOnDigWormsAmount ()
float GetOverheatingCoef ()
float GetOverheatingValue ()
override int GetQuickBarBonus ()
bool HasMuzzle ()
 Returns true if this item has a muzzle (weapons, suppressors).
void IncreaseOverheating (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
void InitializeActions ()
override void InitItemVariables ()
override bool IsBeingPlaced ()
bool IsBloodContainer ()
bool IsExplosive ()
bool IsFacingPlayer (PlayerBase player, string selection)
override bool IsHologram ()
bool IsLightSource ()
bool IsLiquidContainer ()
bool IsLiquidPresent ()
bool IsNVG ()
bool IsOverheatingEffectActive ()
bool IsPlayerInside (PlayerBase player, string selection)
override bool IsSplitable ()
void ItemBase ()
void KillAllOverheatingParticles ()
void LoadParticleConfigOnFire (int id)
void LoadParticleConfigOnOverheating (int id)
void LockToParent ()
 Locks this item in it's current attachment slot of its parent. This makes the "locked" icon visible in inventory over this item.
override void OnCreatePhysics ()
void OnEndPlacement ()
override void OnItemAttachmentSlotChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void OnItemInHandsPlayerSwimStart (PlayerBase player)
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
override void OnMovedInsideCargo (EntityAI container)
void OnOverheatingDecay ()
override void OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
void OverrideActionAnimation (typename action, int commandUID, int stanceMask=-1, int commandUIDProne=-1)
void RefreshPhysics ()
void RegisterOverheatingParticle (Particle p, float min_heat_coef, float max_heat_coef, int particle_id, Object parent, vector local_pos, vector local_ori)
void RemoveAction (typename actionName)
void SetActionAnimOverrides ()
void SetActions ()
void SetCEBasedQuantity ()
void SetIsBeingPlaced (bool is_being_placed)
void SetIsHologram (bool is_hologram)
void StartOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
void StopOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
void TransferModifiers (PlayerBase reciever)
 appears to be deprecated, legacy code
void UnlockFromParent ()
 Unlocks this item from its attachment slot of its parent.
void UpdateAllOverheatingParticles ()
void UpdateOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")

Static Private Member Functions

static void AddDebugActionsMask (int mask)
static int GetDebugActionsMask ()
static bool HasDebugActionsMask (int mask)
static void RemoveDebugActionsMask (int mask)
static void SetDebugActionsMask (int mask)
static void ToggleDebugActionsMask (int mask)

Private Attributes

bool can_this_be_combined
bool m_ActionsInitialize
int m_AttachedAgents
bool m_CanBeMovedOverride
bool m_CanPlayImpactSound = true
bool m_CanShowQuantity
bool m_CanThisBeSplit
ref Timer m_CheckOverheating
int m_Cleanness
int m_CleannessInit
int m_CleannessMax
int m_CleannessMin
int m_Count
bool m_FixDamageSystemInit = false
bool m_HasQuantityBar
float m_HeatIsolation
int m_ImpactSoundSurfaceHash
float m_ImpactSpeed
TInputActionMap m_InputActionMap
bool m_IsBeingPlaced
bool m_IsHologram
bool m_IsOverheatingEffectActive
bool m_IsStoreLoad = false
bool m_IsTakeable
float m_ItemAttachOffset
int m_ItemBehaviour
bool m_ItemBeingDroppedPhys
float m_ItemModelLength
ref ItemSoundHandler m_ItemSoundHandler
int m_LiquidContainerMask
int m_MaxOverheatingValue = 0
ref map< int, ref array< ref WeaponParticlesOnOverheating > > m_OnOverheatingEffect
float m_OverheatingDecayInterval = 1
ref array< ref OverheatingParticlem_OverheatingParticles
float m_OverheatingShots
int m_QuickBarBonus
bool m_RecipesInitialized
int m_ShotsToStartOverheating = 0
float m_StoreLoadedQuantity = float.LOWEST
float m_TemperaturePerQuantityWeight
bool m_ThrowItemOnDrop
int m_VarLiquidType
float m_VarQuantity
int m_VarQuantityInit
int m_VarQuantityMax
int m_VarQuantityMin
float m_VarQuantityPrev
float m_VarStackMax
float m_VarWet
float m_VarWetInit
float m_VarWetMax
float m_VarWetMin
float m_VarWetPrev
bool m_WantPlayImpactSound

Static Private Attributes

static int m_DebugActionsMask
static ref map< typename, ref TActionAnimOverrideMapm_ItemActionOverrides = new map<typename, ref TActionAnimOverrideMap>
static ref map< typename, ref TInputActionMapm_ItemTypeActionsMap = new map<typename, ref TInputActionMap>
static int m_LastRegisteredWeaponID = 0
static ref map< int, ref array< ref WeaponParticlesOnBulletCasingEject > > m_OnBulletCasingEjectEffect
static ref map< int, ref array< ref WeaponParticlesOnFire > > m_OnFireEffect
static ref map< string, intm_WeaponTypeToID

Detailed Description

Definition at line 20 of file itembase.c.

Constructor & Destructor Documentation

◆ ~ItemBase()

Member Function Documentation

◆ AddAction()

◆ AddDebugActionsMask()

void AddDebugActionsMask ( int mask)
inlinestaticprivate

Definition at line 800 of file itembase.c.

References ItemBase().

◆ AddLightSourceItem()

void AddLightSourceItem ( ItemBase lightsource)
inlineprotected

Adds a light source child.

Definition at line 4750 of file itembase.c.

References ItemBase(), and m_LightSourceItem.

◆ AddQuantity()

bool AddQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false )
inlineprotected

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.

References GetQuantity(), and ItemBase::SetQuantity().

◆ AddWet()

override void AddWet ( float value)
inlineprotected

Definition at line 3721 of file itembase.c.

References GetWet(), and SetWet().

◆ AffectLiquidContainerOnFill()

void AffectLiquidContainerOnFill ( int liquid_type,
float amount )
protected

from enviro source

◆ AffectLiquidContainerOnTransfer()

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

from other liquid container source

◆ AfterStoreLoad()

override void AfterStoreLoad ( )
inlineprotected

◆ AllowFoodConsumption()

bool AllowFoodConsumption ( )
inlineprotected

Definition at line 3831 of file itembase.c.

◆ CanBeCombined()

override bool CanBeCombined ( EntityAI other_item,
bool reservation_check = true,
bool stack_max_limit = false )
inlineprotected

◆ CanBeConsumed()

bool CanBeConsumed ( ConsumeConditionData data = null)
inlineprotected

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

Definition at line 4653 of file itembase.c.

References IsOpen().

◆ CanBeCooked()

bool CanBeCooked ( )
inlineprotected

Definition at line 2666 of file itembase.c.

◆ CanBeCookedOnStick()

bool CanBeCookedOnStick ( )
inlineprotected

Definition at line 2671 of file itembase.c.

◆ CanBeDigged()

bool CanBeDigged ( )
inlineprivate

Definition at line 1000 of file itembase.c.

References m_CanBeDigged.

◆ CanBeDisinfected()

bool CanBeDisinfected ( )
inlineprotected

Definition at line 3278 of file itembase.c.

◆ CanBeMovedOverride()

bool CanBeMovedOverride ( )
inlineprotected

Definition at line 2710 of file itembase.c.

References m_CanBeMovedOverride.

◆ CanBeRepairedByCrafting()

bool CanBeRepairedByCrafting ( )
inlineprivate

Definition at line 956 of file itembase.c.

◆ CanBeSplit()

override bool CanBeSplit ( )
inlineprivate

Definition at line 1605 of file itembase.c.

References GetQuantity(), and IsSplitable().

◆ CanBeUsedForSuicide()

bool CanBeUsedForSuicide ( )
inlineprotected

Definition at line 4830 of file itembase.c.

◆ CanDecay()

bool CanDecay ( )
inlineprotected

Definition at line 4633 of file itembase.c.

◆ CanDisplayCargo()

override bool CanDisplayCargo ( )
inlineprotected

Definition at line 4153 of file itembase.c.

References IsOpen().

◆ CanEat()

bool CanEat ( )
inlineprotected

Definition at line 2641 of file itembase.c.

◆ CanExplodeInFire()

bool CanExplodeInFire ( )
inlineprotected

Definition at line 2635 of file itembase.c.

Referenced by EEKilled().

◆ CanHaveWetness()

bool CanHaveWetness ( )
inlineprotected

Definition at line 4646 of file itembase.c.

◆ CanMakeGardenplot()

bool CanMakeGardenplot ( )
inlineprivate

Definition at line 1010 of file itembase.c.

◆ CanObstruct()

override bool CanObstruct ( )
inlineprivate

Definition at line 973 of file itembase.c.

References g_Game, and ItemBase::IsPlayerInside().

◆ CanPlayDeployLoopSound()

bool CanPlayDeployLoopSound ( )
inlineprotected

Definition at line 4863 of file itembase.c.

◆ CanProcessDecay()

bool CanProcessDecay ( )
inlineprotected

Definition at line 4639 of file itembase.c.

◆ CanPutAsAttachment()

override bool CanPutAsAttachment ( EntityAI parent)
inlineprotected

Definition at line 4176 of file itembase.c.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected

Definition at line 4162 of file itembase.c.

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
inlineprotected

Definition at line 4191 of file itembase.c.

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 4221 of file itembase.c.

◆ CanRepair()

bool CanRepair ( ItemBase item_repair_kit)
inlineprotected

Definition at line 2681 of file itembase.c.

References GetPlugin(), and ItemBase().

◆ ChangeIntoOnAttach()

override string ChangeIntoOnAttach ( string slot)
inlineprivate

Definition at line 1422 of file itembase.c.

◆ ChangeIntoOnDetach()

override string ChangeIntoOnDetach ( )
inlineprivate

Definition at line 1446 of file itembase.c.

◆ CheckForRoofLimited()

override void CheckForRoofLimited ( float timeTresholdMS = 3000)
inlineprotected

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

Definition at line 4081 of file itembase.c.

References g_Game.

◆ CheckOverheating()

void CheckOverheating ( ItemBase weapon = null,
string ammoType = "",
ItemBase muzzle_owner = null,
ItemBase suppressor = null,
string config_to_search = "" )
inlineprivate

◆ ClearInventory()

override void ClearInventory ( )
inlineprotected

Definition at line 3614 of file itembase.c.

References GameInventory::EnumerateInventory(), g_Game, and ItemBase().

◆ ClearStartItemSoundServer()

void ClearStartItemSoundServer ( )
inlineprotected

Definition at line 4500 of file itembase.c.

References InventorySlots::INVALID, m_SoundSyncPlay, and m_SoundSyncSlotID.

Referenced by StartItemSoundServer().

◆ ClearStopItemSoundServer()

void ClearStopItemSoundServer ( )
inlineprotected

Definition at line 4506 of file itembase.c.

References m_SoundSyncStop.

Referenced by StopItemSoundServer().

◆ Close()

void Close ( )
protected

◆ CombineItems()

void CombineItems ( ItemBase other_item,
bool use_stack_max = true )
inlineprotected

◆ CombineItemsClient()

◆ CombineItemsEx()

override void CombineItemsEx ( EntityAI entity2,
bool use_stack_max = true )
inlineprotected

Definition at line 2303 of file itembase.c.

References CombineItems(), and ItemBase().

◆ ComputeQuantityUsed()

int ComputeQuantityUsed ( ItemBase other_item,
bool use_stack_max = true )
inlineprotected

Definition at line 2279 of file itembase.c.

References ComputeQuantityUsedEx(), and ItemBase().

◆ ComputeQuantityUsedEx()

float ComputeQuantityUsedEx ( ItemBase other_item,
bool use_stack_max = true )
inlineprotected

Definition at line 2284 of file itembase.c.

References GetQuantity(), GetQuantityMax(), and ItemBase().

◆ ContainsAgent()

bool ContainsAgent ( int agent_id)
inlineprotected

Definition at line 3973 of file itembase.c.

References m_AttachedAgents.

◆ ConvertEnergyToQuantity()

void ConvertEnergyToQuantity ( )
inlineprotected

Definition at line 3661 of file itembase.c.

References g_Game, HasQuantity(), and SetQuantityNormalized().

◆ CopyScriptPropertiesFrom()

void CopyScriptPropertiesFrom ( EntityAI oldItem)
inlineprotected

Definition at line 4744 of file itembase.c.

◆ DamageItemAttachments()

bool DamageItemAttachments ( float damage)
inlineprivate

◆ DamageItemInCargo()

bool DamageItemInCargo ( float damage)
inlineprivate

◆ DeSerializeNumericalVars()

◆ DoAmmoExplosion()

void DoAmmoExplosion ( )
inlineprivate

Definition at line 1498 of file itembase.c.

References ExplodeAmmo(), g_Game, GetTemperature(), and Math::RandomInt().

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprivate

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

drops content of container when ruined in fireplace

Definition at line 2086 of file itembase.c.

References g_Game, CargoBase::GetItem(), CargoBase::GetItemCount(), IsResultOfSplit(), m_Cleanness, SetCleanness(), SetResultOfSplit(), and GameConstants::STATE_RUINED.

◆ EEHitBy()

override void EEHitBy ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
inlineprivate

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprivate

item is able to explode in fire

Definition at line 1374 of file itembase.c.

References CanExplodeInFire(), Explode(), ExplodeAmmo(), GetTemperature(), and GameConstants::ITEM_TEMPERATURE_TO_EXPLODE_MIN.

◆ EEOnAfterLoad()

override void EEOnAfterLoad ( )
inlineprotected

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprotected

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

Definition at line 4133 of file itembase.c.

References SetCEBasedQuantity(), and SetZoneDamageCEInit().

◆ EOnContact()

override void EOnContact ( IEntity other,
Contact extra )
inlineprivate

◆ ExplodeAmmo()

void ExplodeAmmo ( )
inlineprivate

Definition at line 1485 of file itembase.c.

References CALL_CATEGORY_SYSTEM, and Math::RandomFloat().

◆ GetActions()

override void GetActions ( typename action_input_type ,
out array< ActionBase_Basic > actions )
inlineprivate

Definition at line 306 of file itembase.c.

References InitializeActions(), m_ActionsInitialize, and m_InputActionMap.

◆ GetActionWidgetOverride()

bool GetActionWidgetOverride ( out typename name)
inlineprotected

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

Definition at line 4772 of file itembase.c.

References name.

◆ GetAgents()

override int GetAgents ( )
inlineprotected

Definition at line 4020 of file itembase.c.

References m_AttachedAgents.

◆ GetAttachmentSoundType()

override string GetAttachmentSoundType ( )
inlineprotected

Definition at line 4424 of file itembase.c.

References m_SoundAttType.

◆ GetBaitEffectivity()

float GetBaitEffectivity ( )
inlineprotected

generic effectivity as a bait for animal catching

Definition at line 4802 of file itembase.c.

References GetQuantityNormalized(), and HasQuantity().

◆ GetBandagingEffectivity()

float GetBandagingEffectivity ( )
inlineprotected

Definition at line 4513 of file itembase.c.

◆ GetCleanness()

override int GetCleanness ( )
inlineprotected

Definition at line 3826 of file itembase.c.

References m_Cleanness.

◆ GetColor()

override void GetColor ( out int r,
out int g,
out int b,
out int a )
inlineprotected

gets item's color variable as components

Definition at line 3861 of file itembase.c.

References m_ColorComponentA, m_ColorComponentB, m_ColorComponentG, and m_ColorComponentR.

◆ GetColorString()

string GetColorString ( )
inlineprotected

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.

References GetColor().

◆ GetDamageSystemVersionChange()

int GetDamageSystemVersionChange ( )
inlineprivate

Re-sets DamageSystem changes.

Returns
storage version on which the config changes occured (default -1, to be overriden!)
Note
Significant changes to DamageSystem in item configs have to be re-set by increasing the storage version and overriding this method. Default return is -1 (does nothing).

Definition at line 742 of file itembase.c.

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected

Definition at line 2363 of file itembase.c.

References InventoryLocation::GetType(), IsLiquidContainer(), and SAT_DEBUG_ACTION.

◆ GetDebugActionsMask()

int GetDebugActionsMask ( )
inlinestaticprivate

Definition at line 785 of file itembase.c.

References ItemBase().

◆ GetDeployFinishSoundset()

string GetDeployFinishSoundset ( )
protected

◆ GetDeploySoundset()

string GetDeploySoundset ( )
protected

Referenced by InitItemSounds().

◆ GetDeployTime()

float GetDeployTime ( )
inlineprotected

how long it takes to deploy this item in seconds

Definition at line 4386 of file itembase.c.

References UATimeSpent::DEFAULT_DEPLOY.

◆ GetDisinfectQuantity()

float GetDisinfectQuantity ( int system = 0,
Param param1 = null )
inlineprivate

Definition at line 699 of file itembase.c.

◆ GetDryingIncrement()

float GetDryingIncrement ( string pIncrementName)
inlineprotected

Definition at line 3684 of file itembase.c.

References g_Game, and GetType().

◆ GetEnergy()

float GetEnergy ( )
inlineprotected

Definition at line 3635 of file itembase.c.

◆ GetExplosiveTriggerSlotName()

string GetExplosiveTriggerSlotName ( )
inlineprivate

Definition at line 944 of file itembase.c.

◆ GetFilterDamageRatio()

float GetFilterDamageRatio ( )
inlineprivate

Definition at line 704 of file itembase.c.

◆ GetFoldSoundset()

string GetFoldSoundset ( )
protected

◆ GetFoodStage()

FoodStage GetFoodStage ( )
inlineprotected

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 > GetHeadHidingSelection ( )
inlineprotected

Definition at line 4518 of file itembase.c.

References m_HeadHidingSelections.

◆ GetHeatIsolation()

float GetHeatIsolation ( )
inlineprotected

Definition at line 3679 of file itembase.c.

References m_HeatIsolation.

◆ GetHeatIsolationInit()

float GetHeatIsolationInit ( )
inlineprotected

Definition at line 3674 of file itembase.c.

◆ GetInfectionChance()

float GetInfectionChance ( int system = 0,
Param param = null )
inlineprivate

Infection chance while/after using this item, originally used for wound infection after bandaging, params 'system' and 'param' can allow usage by other systems as well.

Definition at line 693 of file itembase.c.

◆ GetItemAttachOffset()

float GetItemAttachOffset ( )
inlineprotected

Definition at line 3804 of file itembase.c.

◆ GetItemModelLength()

float GetItemModelLength ( )
inlineprotected

Definition at line 3795 of file itembase.c.

◆ GetItemOverheatThreshold()

override float GetItemOverheatThreshold ( )
inlineprotected

Definition at line 4710 of file itembase.c.

References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.

◆ GetItemSize()

int GetItemSize ( )
inlineprotected

Definition at line 2695 of file itembase.c.

◆ GetItemSoundHandler()

ItemSoundHandler GetItemSoundHandler ( )
inlineprotected

Definition at line 4439 of file itembase.c.

References ItemSoundHandler(), and m_ItemSoundHandler.

◆ GetLight()

ScriptedLightBase GetLight ( )
private

◆ GetLightSourceItem()

ItemBase GetLightSourceItem ( )
inlineprotected

Definition at line 4760 of file itembase.c.

References ItemBase(), and m_LightSourceItem.

◆ GetLiquidContainerMask()

int GetLiquidContainerMask ( )
inlineprivate

Definition at line 921 of file itembase.c.

References m_LiquidContainerMask.

◆ GetLiquidType()

override int GetLiquidType ( )
inlineprotected

Definition at line 3904 of file itembase.c.

References m_VarLiquidType.

◆ GetLiquidTypeInit()

int GetLiquidTypeInit ( )
inlineprotected

Definition at line 3899 of file itembase.c.

◆ GetLockSoundSet()

string GetLockSoundSet ( )
inlineprotected

Definition at line 3844 of file itembase.c.

References m_LockSoundSet.

◆ GetLockType()

int GetLockType ( )
inlineprotected

Definition at line 3839 of file itembase.c.

References m_LockType.

◆ GetLoopDeploySoundset()

string GetLoopDeploySoundset ( )
protected

Referenced by InitItemSounds().

◆ GetLoopFoldSoundset()

string GetLoopFoldSoundset ( )
protected

◆ GetMuzzleID()

int GetMuzzleID ( )
inlineprivate

Returns global muzzle ID. If not found, then it gets automatically registered.

Definition at line 719 of file itembase.c.

References GetType(), m_LastRegisteredWeaponID, and m_WeaponTypeToID.

◆ GetNumberOfItems()

int GetNumberOfItems ( )
inlineprotected

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

Definition at line 3572 of file itembase.c.

References GameInventory::AttachmentCount(), Class::CastTo(), GameInventory::GetAttachmentFromIndex(), GameInventory::GetCargo(), CargoBase::GetItemCount(), and ItemBase().

◆ GetOnDigWormsAmount()

int GetOnDigWormsAmount ( )
inlineprivate

Definition at line 1005 of file itembase.c.

◆ GetOverheatingCoef()

float GetOverheatingCoef ( )
inlineprivate

Definition at line 629 of file itembase.c.

References m_MaxOverheatingValue, m_OverheatingShots, and m_ShotsToStartOverheating.

◆ GetOverheatingValue()

float GetOverheatingValue ( )
inlineprivate

Definition at line 529 of file itembase.c.

References m_OverheatingShots.

◆ GetPlaceSoundset()

string GetPlaceSoundset ( )
protected

Referenced by InitItemSounds().

◆ GetProtectionLevel()

float GetProtectionLevel ( int type,
bool consider_filter = false,
int system = 0 )
inlineprotected

◆ GetQuantity()

override float GetQuantity ( )
inlineprotected

Definition at line 3508 of file itembase.c.

References m_VarQuantity.

◆ GetQuantityInit()

int GetQuantityInit ( )
inlineprotected

Definition at line 3497 of file itembase.c.

References m_VarQuantityInit.

◆ GetQuantityMax()

override int GetQuantityMax ( )
inlineprotected

◆ GetQuantityMin()

override int GetQuantityMin ( )
inlineprotected

Definition at line 3492 of file itembase.c.

References m_VarQuantityMin.

Referenced by SetQuantityNormalized().

◆ GetQuantityNormalized()

override float GetQuantityNormalized ( )
inlineprotected

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.

References GetQuantityMax(), GetQuantityMin(), Math::InverseLerp(), and m_VarQuantity.

Referenced by GetTemperatureFreezeTime(), and GetTemperatureThawTime().

◆ GetQuantityNormalizedScripted()

float GetQuantityNormalizedScripted ( )
inlineprotected

Definition at line 3445 of file itembase.c.

References GetQuantityNormalized().

◆ GetQuickBarBonus()

override int GetQuickBarBonus ( )
inlineprivate

Definition at line 289 of file itembase.c.

References m_QuickBarBonus.

◆ GetRecipesActions()

void GetRecipesActions ( Man player,
out TSelectableActionInfoArray outputList )
inlineprotected

Definition at line 2342 of file itembase.c.

References GetPlugin(), ItemBase(), and SAT_CRAFTING.

◆ GetSingleInventoryItemWeight()

float GetSingleInventoryItemWeight ( )
inlineprotected

Definition at line 3528 of file itembase.c.

References GetSingleInventoryItemWeightEx().

◆ GetSingleInventoryItemWeightEx()

override float GetSingleInventoryItemWeightEx ( )
inlineprotected

Definition at line 3519 of file itembase.c.

◆ GetSoakingIncrement()

float GetSoakingIncrement ( string pIncrementName)
inlineprotected

Definition at line 3693 of file itembase.c.

References g_Game, and GetType().

◆ GetStoreLoadedQuantity()

override float GetStoreLoadedQuantity ( )
inlineprotected

Definition at line 3788 of file itembase.c.

References m_StoreLoadedQuantity.

◆ GetTargetQuantityMax()

override int GetTargetQuantityMax ( int attSlotID = -1)
inlineprotected

◆ GetTemperatureFreezeThreshold()

override float GetTemperatureFreezeThreshold ( )
inlineprotected

Definition at line 4694 of file itembase.c.

References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.

◆ GetTemperatureFreezeTime()

override float GetTemperatureFreezeTime ( )
inlineprotected

◆ GetTemperaturePerQuantityWeight()

float GetTemperaturePerQuantityWeight ( )
inlineprotected

Used in heat comfort calculations only!

Definition at line 4689 of file itembase.c.

References GameConstants::ITEM_TEMPERATURE_QUANTITY_WEIGHT_MULTIPLIER, and m_TemperaturePerQuantityWeight.

◆ GetTemperatureThawThreshold()

override float GetTemperatureThawThreshold ( )
inlineprotected

Definition at line 4702 of file itembase.c.

References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.

◆ GetTemperatureThawTime()

override float GetTemperatureThawTime ( )
inlineprotected

◆ GetUnitWeight()

float GetUnitWeight ( bool include_wetness = true)
inlineprotected

Obsolete, use GetWeightEx instead.

Definition at line 3595 of file itembase.c.

References GetWet(), IsLiquidContainer(), and IsSplitable().

◆ GetValidFinishers()

array< int > GetValidFinishers ( )
inlineprotected

returns an array of possible finishers

Definition at line 4766 of file itembase.c.

◆ GetWeightSpecialized()

float GetWeightSpecialized ( bool forceRecalc = false)
inlineprotected

◆ GetWet()

override float GetWet ( )
inlineprotected

Definition at line 3731 of file itembase.c.

References m_VarWet.

◆ GetWetInit()

override float GetWetInit ( )
inlineprotected

Definition at line 3746 of file itembase.c.

References m_VarWetInit.

◆ GetWetLevel()

override EWetnessLevel GetWetLevel ( )
inlineprotected

Definition at line 3766 of file itembase.c.

References m_VarWet.

◆ GetWetMax()

override float GetWetMax ( )
inlineprotected

Definition at line 3736 of file itembase.c.

References m_VarWetMax.

◆ GetWetMin()

override float GetWetMin ( )
inlineprotected

Definition at line 3741 of file itembase.c.

References m_VarWetMin.

◆ GetWrittenNoteData()

WrittenNoteData GetWrittenNoteData ( )
inlineprotected

Definition at line 4528 of file itembase.c.

◆ HasDebugActionsMask()

bool HasDebugActionsMask ( int mask)
inlinestaticprivate

Definition at line 790 of file itembase.c.

References ItemBase().

◆ HasFoodStage()

bool HasFoodStage ( )
inlineprotected

Definition at line 2654 of file itembase.c.

References g_Game, and GetType().

◆ HasMuzzle()

bool HasMuzzle ( )
inlineprivate

Returns true if this item has a muzzle (weapons, suppressors).

Definition at line 710 of file itembase.c.

◆ HasQuantity()

override bool HasQuantity ( )
inlineprotected

Definition at line 3503 of file itembase.c.

References GetQuantityMax(), and GetQuantityMin().

◆ HidesSelectionBySlot()

bool HidesSelectionBySlot ( )
inlineprotected

Definition at line 4523 of file itembase.c.

References m_HideSelectionsBySlot.

◆ HierarchyCheck()

void HierarchyCheck ( out bool hasParent,
out bool hasRootAsPlayer,
out ItemBase refParentIB )
inlineprotected

Definition at line 4611 of file itembase.c.

References ItemBase().

◆ IDToName()

string IDToName ( int id)
inlineprotected

Definition at line 2877 of file itembase.c.

References GetPlugin().

◆ IncreaseOverheating()

void IncreaseOverheating ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlineprivate

◆ InitializeActions()

void InitializeActions ( )
inlineprivate

Definition at line 294 of file itembase.c.

References m_InputActionMap, m_ItemTypeActionsMap, ItemBase::SetActions(), and Type.

◆ InitItemSounds()

◆ InitItemVariables()

◆ InsertAgent()

override void InsertAgent ( int agent,
float count = 1 )
inlineprotected

Definition at line 4005 of file itembase.c.

References m_AttachedAgents.

◆ IsActionTargetVisible()

bool IsActionTargetVisible ( )
inlineprotected

Definition at line 4406 of file itembase.c.

◆ IsBeingPlaced()

override bool IsBeingPlaced ( )
inlineprivate

Definition at line 979 of file itembase.c.

References m_IsBeingPlaced.

◆ IsBloodContainer()

bool IsBloodContainer ( )
inlineprivate

Definition at line 926 of file itembase.c.

◆ IsCargoException4x3()

bool IsCargoException4x3 ( EntityAI item)
inlineprotected

Definition at line 4739 of file itembase.c.

◆ IsColorSet()

bool IsColorSet ( )
inlineprotected

Definition at line 3869 of file itembase.c.

References VARIABLE_COLOR.

◆ IsCombineAll()

bool IsCombineAll ( ItemBase other_item,
bool use_stack_max = false )
inlineprotected

Definition at line 2264 of file itembase.c.

References ComputeQuantityUsed(), and ItemBase().

◆ IsCoverFaceForShave()

bool IsCoverFaceForShave ( string slot_name)
inlineprotected

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

Definition at line 4561 of file itembase.c.

◆ IsDeployable()

bool IsDeployable ( )
inlineprotected

Definition at line 4380 of file itembase.c.

◆ IsDeploySound()

bool IsDeploySound ( )
inlineprotected

Definition at line 4866 of file itembase.c.

References m_IsDeploySound.

◆ IsExplosive()

bool IsExplosive ( )
inlineprivate

explosive

Definition at line 939 of file itembase.c.

◆ IsFacingPlayer()

bool IsFacingPlayer ( PlayerBase player,
string selection )
inlineprivate

Definition at line 963 of file itembase.c.

◆ IsFullQuantity()

bool IsFullQuantity ( )
inlineprotected

Definition at line 3513 of file itembase.c.

References GetQuantity(), and GetQuantityMax().

Referenced by CanBeCombined().

◆ IsHeavyBehaviour()

override bool IsHeavyBehaviour ( )
inlineprotected

Definition at line 4350 of file itembase.c.

References m_ItemBehaviour.

◆ IsHologram()

override bool IsHologram ( )
inlineprivate

Definition at line 995 of file itembase.c.

References m_IsHologram.

◆ IsIgnoredByConstruction()

override bool IsIgnoredByConstruction ( )
inlineprotected

Definition at line 2647 of file itembase.c.

◆ IsItemBase()

override bool IsItemBase ( )
inlineprotected

Definition at line 2794 of file itembase.c.

◆ IsLightSource()

bool IsLightSource ( )
inlineprivate

Definition at line 951 of file itembase.c.

◆ IsLiquidContainer()

bool IsLiquidContainer ( )
inlineprivate

Definition at line 916 of file itembase.c.

References m_LiquidContainerMask.

◆ IsLiquidPresent()

bool IsLiquidPresent ( )
inlineprivate

Definition at line 911 of file itembase.c.

References GetLiquidType(), and HasQuantity().

◆ IsNVG()

bool IsNVG ( )
inlineprivate

Definition at line 932 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool IsOneHandedBehaviour ( )
inlineprotected

Definition at line 4360 of file itembase.c.

References m_ItemBehaviour.

◆ IsOpen()

bool IsOpen ( )
inlineprotected

Definition at line 4148 of file itembase.c.

◆ IsOverheatingEffectActive()

bool IsOverheatingEffectActive ( )
inlineprivate

Definition at line 567 of file itembase.c.

References m_IsOverheatingEffectActive.

◆ IsPlaceSound()

bool IsPlaceSound ( )
inlineprotected

Definition at line 4865 of file itembase.c.

References m_IsPlaceSound.

◆ IsPlayerInside()

bool IsPlayerInside ( PlayerBase player,
string selection )
inlineprivate

Definition at line 968 of file itembase.c.

◆ IsResultOfSplit()

bool IsResultOfSplit ( )
inlineprotected

Definition at line 2269 of file itembase.c.

◆ IsSoundSynchRemote()

bool IsSoundSynchRemote ( )
inlineprotected

Definition at line 4864 of file itembase.c.

References m_IsSoundSynchRemote.

◆ IsSplitable()

override bool IsSplitable ( )
inlineprivate

Definition at line 1600 of file itembase.c.

References m_CanThisBeSplit.

◆ IsStoreLoad()

override bool IsStoreLoad ( )
inlineprotected

Definition at line 3778 of file itembase.c.

References m_IsStoreLoad.

◆ IsTakeable()

override bool IsTakeable ( )
inlineprotected

Definition at line 4400 of file itembase.c.

References m_IsTakeable.

◆ IsTwoHandedBehaviour()

override bool IsTwoHandedBehaviour ( )
inlineprotected

Definition at line 4370 of file itembase.c.

References m_ItemBehaviour.

◆ ItemBase()

void ItemBase ( )
inlineprivate

Definition at line 148 of file itembase.c.

References g_Game, GetMuzzleID(), GetPlugin(), HasMuzzle(), LoadParticleConfigOnFire(), LoadParticleConfigOnOverheating(), m_ActionsInitialize, m_AdminLog, m_ContinuousActions, m_HeadHidingSelections, m_HideSelectionsBySlot, m_InteractActions, m_QuickBarBonus, m_ShotsToStartOverheating, m_SingleUseActions, Math::Max(), PreLoadSoundAttachmentType(), and ItemBase::SetActionAnimOverrides().

Referenced by AddDebugActionsMask(), AddLightSourceItem(), CanRepair(), CheckOverheating(), ClearInventory(), CombineItems(), CombineItemsClient(), CombineItemsEx(), ComputeQuantityUsed(), ComputeQuantityUsedEx(), DamageItemAttachments(), DamageItemInCargo(), EEItemLocationChanged(), GetDebugActionsMask(), GetLightSourceItem(), GetNumberOfItems(), GetProtectionLevel(), GetRecipesActions(), HasDebugActionsMask(), HierarchyCheck(), IncreaseOverheating(), IsCombineAll(), OnAction(), OnActivatedByItem(), OnAttachmentQuantityChanged(), OnAttachmentQuantityChangedEx(), OnCombine(), OnItemLocationChanged(), OnQuantityChanged(), OnRightClick(), PairWithDevice(), PlayBulletCasingEjectParticles(), PlayFireParticles(), PlayOverheatingParticles(), ProcessItemTemperature(), ProcessItemWetness(), ProcessItemWetnessAndTemperature(), ProcessVariables(), RemoveDebugActionsMask(), Repair(), SetDebugActionsMask(), SpawnItemOnLocation(), SplitIntoStackMax(), SplitIntoStackMaxCargo(), SplitIntoStackMaxCargoClient(), SplitIntoStackMaxClient(), SplitIntoStackMaxEx(), SplitIntoStackMaxHands(), SplitIntoStackMaxHandsClient(), SplitIntoStackMaxToInventoryLocationClient(), SplitIntoStackMaxToInventoryLocationEx(), SplitItem(), SplitItemToInventoryLocation(), StartOverheating(), StopOverheating(), StopOverheatingParticles(), UpdateOverheating(), and UpdateOverheatingParticles().

◆ KillAllOverheatingParticles()

void KillAllOverheatingParticles ( )
inlineprivate

◆ KindOf()

override bool KindOf ( string tag)
inlineprotected

Definition at line 2800 of file itembase.c.

References g_Game, and GetType().

◆ LoadAgents()

bool LoadAgents ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 4066 of file itembase.c.

References m_AttachedAgents, and Serializer::Read().

◆ LoadParticleConfigOnFire()

void LoadParticleConfigOnFire ( int id)
inlineprivate

Definition at line 404 of file itembase.c.

References g_Game, GetType(), m_OnBulletCasingEjectEffect, and m_OnFireEffect.

◆ LoadParticleConfigOnOverheating()

void LoadParticleConfigOnOverheating ( int id)
inlineprivate

◆ LockToParent()

void LockToParent ( )
inlineprivate

Locks this item in it's current attachment slot of its parent. This makes the "locked" icon visible in inventory over this item.

Definition at line 852 of file itembase.c.

References InventoryLocation::GetSlot().

◆ MessageToOwnerAction()

void MessageToOwnerAction ( string text)
inlineprotected

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 MessageToOwnerFriendly ( string text)
inlineprotected

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 MessageToOwnerImportant ( string text)
inlineprotected

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 MessageToOwnerStatus ( string text)
inlineprotected

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 NameToID ( string name)
inlineprotected

Definition at line 2871 of file itembase.c.

References GetPlugin(), and name.

◆ OnAction()

◆ OnActivatedByItem()

void OnActivatedByItem ( notnull ItemBase item)
protected

Called when this item is activated by other.

References ItemBase().

◆ OnActivatedByTripWire()

void OnActivatedByTripWire ( )
protected

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

◆ OnApply()

void OnApply ( PlayerBase player)
protected

◆ OnAttachmentQuantityChanged()

void OnAttachmentQuantityChanged ( ItemBase item)
inlineprotected

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.

References ItemBase().

◆ OnAttachmentQuantityChangedEx()

void OnAttachmentQuantityChangedEx ( ItemBase item,
float delta )
inlineprotected

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.

References ItemBase(), and OnAttachmentQuantityChanged().

◆ OnCombine()

void OnCombine ( ItemBase other_item)
inlineprotected

Definition at line 2334 of file itembase.c.

References ItemBase().

◆ OnCreatePhysics()

override void OnCreatePhysics ( )
inlineprivate

Definition at line 1224 of file itembase.c.

References ItemBase::RefreshPhysics().

◆ OnEndPlacement()

void OnEndPlacement ( )
inlineprivate

Definition at line 993 of file itembase.c.

◆ OnEnergyAdded()

override void OnEnergyAdded ( )
inlineprotected

Definition at line 3653 of file itembase.c.

References ConvertEnergyToQuantity().

◆ OnEnergyConsumed()

override void OnEnergyConsumed ( )
inlineprotected

Definition at line 3646 of file itembase.c.

References ConvertEnergyToQuantity().

◆ OnInventoryEnter()

void OnInventoryEnter ( Man player)
inlineprotected

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.

References m_CanPlayImpactSound.

◆ OnInventoryExit()

void OnInventoryExit ( Man player)
inlineprotected

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.

◆ OnItemAttachmentSlotChanged()

override void OnItemAttachmentSlotChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate

Definition at line 1229 of file itembase.c.

◆ OnItemInHandsPlayerSwimStart()

void OnItemInHandsPlayerSwimStart ( PlayerBase player)
private

◆ OnItemLocationChanged()

◆ OnLiquidTypeChanged()

void OnLiquidTypeChanged ( int oldType,
int newType )
inlineprotected

Definition at line 3909 of file itembase.c.

References LIQUID_NONE.

◆ OnMovedInsideCargo()

override void OnMovedInsideCargo ( EntityAI container)
inlineprivate

Definition at line 1055 of file itembase.c.

◆ OnOverheatingDecay()

void OnOverheatingDecay ( )
inlineprivate

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprotected

Definition at line 3959 of file itembase.c.

References m_AdminLog.

◆ OnPlacementStarted()

override void OnPlacementStarted ( Man player)
inlineprotected

Definition at line 3952 of file itembase.c.

References SetTakeable().

◆ OnQuantityChanged()

void OnQuantityChanged ( float delta)
inlineprotected

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.

References ErrorEx, GetLiquidType(), GetLiquidTypeInit(), GetQuantityNormalized(), IsLiquidContainer(), ItemBase(), LIQUID_NONE, and SetLiquidType().

◆ OnRightClick()

◆ OnRPC()

◆ OnStoreLoad()

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

◆ OnSyncVariables()

void OnSyncVariables ( ParamsReadContext ctx)
inlineprotected

DEPRECATED (most likely).

Definition at line 2884 of file itembase.c.

References ItemVariableFlags::FLOAT, Serializer::Read(), and ReadVarsFromCTX().

◆ OnVariablesSynchronized()

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate

◆ OnWetChanged()

override void OnWetChanged ( float newVal,
float oldVal )
inlineprotected

Definition at line 3751 of file itembase.c.

References OnWetLevelChanged().

◆ OnWetLevelChanged()

override void OnWetLevelChanged ( EWetnessLevel newLevel,
EWetnessLevel oldLevel )
inlineprotected

Definition at line 3761 of file itembase.c.

◆ Open()

void Open ( )
protected

Implementations only.

◆ OverrideActionAnimation()

void OverrideActionAnimation ( typename action ,
int commandUID,
int stanceMask = -1,
int commandUIDProne = -1 )
inlineprivate

◆ PairWithDevice()

bool PairWithDevice ( notnull ItemBase otherDevice)
inlineprotected

◆ PerformDamageSystemReinit()

void PerformDamageSystemReinit ( )
inlineprotected

Definition at line 4536 of file itembase.c.

◆ PlayAttachSound()

void PlayAttachSound ( string slot_type)
inlineprotected

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.

References g_Game, GetPosition(), GetType(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().

◆ PlayBulletCasingEjectParticles()

void PlayBulletCasingEjectParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlinestaticprotected

Definition at line 4269 of file itembase.c.

References ItemBase(), and m_OnBulletCasingEjectEffect.

◆ PlayDeployFinishSound()

void PlayDeployFinishSound ( )
protected

◆ PlayDeployLoopSoundEx()

void PlayDeployLoopSoundEx ( )
protected

◆ PlayDeploySound()

void PlayDeploySound ( )
protected

◆ PlayDetachSound()

void PlayDetachSound ( string slot_type)
inlineprotected

Definition at line 4908 of file itembase.c.

◆ PlayFireParticles()

void PlayFireParticles ( ItemBase weapon,
int muzzle_index,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlinestaticprotected

Definition at line 4249 of file itembase.c.

References ItemBase(), and m_OnFireEffect.

◆ PlayOverheatingParticles()

void PlayOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlinestaticprotected

Definition at line 4289 of file itembase.c.

References ItemBase().

◆ PlayPlaceSound()

void PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void PreLoadSoundAttachmentType ( )
inlineprotected

Attachment Sound Type getting from config file.

Definition at line 4412 of file itembase.c.

References m_SoundAttType.

◆ ProcessDecay()

void ProcessDecay ( float delta,
bool hasRootAsPlayer )
inlineprotected

Definition at line 4628 of file itembase.c.

◆ ProcessItemTemperature()

void ProcessItemTemperature ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
inlineprotected

◆ ProcessItemWetness()

void ProcessItemWetness ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
inlineprotected

◆ ProcessItemWetnessAndTemperature()

void ProcessItemWetnessAndTemperature ( float delta,
bool hasParent,
bool hasRootAsPlayer,
ItemBase refParentIB )
inlineprotected

Definition at line 4839 of file itembase.c.

References ItemBase(), ProcessItemTemperature(), and ProcessItemWetness().

◆ ProcessVariables()

override void ProcessVariables ( )
inlineprotected

◆ ReadVarsFromCTX()

◆ RefreshAudioVisualsOnClient()

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

cooking-related effect methods

◆ RefreshPhysics()

void RefreshPhysics ( )
private

◆ RegisterOverheatingParticle()

void RegisterOverheatingParticle ( Particle p,
float min_heat_coef,
float max_heat_coef,
int particle_id,
Object parent,
vector local_pos,
vector local_ori )
inlineprivate

◆ RemoveAction()

void RemoveAction ( typename actionName )
inlineprivate

Definition at line 366 of file itembase.c.

References g_Game, ActionBase::GetInputType(), and m_InputActionMap.

◆ RemoveAgent()

override void RemoveAgent ( int agent_id)
inlineprotected

Definition at line 3986 of file itembase.c.

References ContainsAgent(), and m_AttachedAgents.

◆ RemoveAllAgents()

override void RemoveAllAgents ( )
inlineprotected

Definition at line 3995 of file itembase.c.

References m_AttachedAgents.

◆ RemoveAllAgentsExcept()

override void RemoveAllAgentsExcept ( int agent_to_keep)
inlineprotected

Definition at line 4000 of file itembase.c.

References m_AttachedAgents.

◆ RemoveAudioVisualsOnClient()

void RemoveAudioVisualsOnClient ( )
protected

◆ RemoveDebugActionsMask()

void RemoveDebugActionsMask ( int mask)
inlinestaticprivate

Definition at line 805 of file itembase.c.

References ItemBase().

◆ RemoveLightSourceItem()

void RemoveLightSourceItem ( )
inlineprotected

Definition at line 4755 of file itembase.c.

References m_LightSourceItem.

◆ Repair()

bool Repair ( PlayerBase player,
ItemBase item_repair_kit,
float specialty_weight )
inlineprotected

Definition at line 2688 of file itembase.c.

References GetPlugin(), and ItemBase().

◆ SaveAgents()

void SaveAgents ( ParamsWriteContext ctx)
inlineprotected

Definition at line 4073 of file itembase.c.

References m_AttachedAgents, and Serializer::Write().

◆ SerializeNumericalVars()

◆ SetActionAnimOverrides()

void SetActionAnimOverrides ( )
private

◆ SetActions()

void SetActions ( )
inlineprivate

Definition at line 317 of file itembase.c.

References ActionDropItem(), and AddAction().

◆ SetCanBeMovedOverride()

void SetCanBeMovedOverride ( bool setting)
inlineprotected

Definition at line 2717 of file itembase.c.

References m_CanBeMovedOverride.

◆ SetCEBasedQuantity()

◆ SetCleanness()

override void SetCleanness ( int value,
bool allow_client = false )
inlineprotected

Definition at line 3813 of file itembase.c.

References Math::Clamp(), m_Cleanness, m_CleannessMax, m_CleannessMin, and VARIABLE_CLEANNESS.

◆ SetColor()

override void SetColor ( int r,
int g,
int b,
int a )
inlineprotected

◆ SetDebugActionsMask()

void SetDebugActionsMask ( int mask)
inlinestaticprivate

Definition at line 795 of file itembase.c.

References ItemBase().

◆ SetInventoryLocationToVicinityOrCurrent()

void SetInventoryLocationToVicinityOrCurrent ( EntityAI root,
inout InventoryLocation dst )
inlineprotected

Definition at line 2188 of file itembase.c.

◆ SetIsBeingPlaced()

void SetIsBeingPlaced ( bool is_being_placed)
inlineprivate

Definition at line 984 of file itembase.c.

References m_IsBeingPlaced, and ItemBase::OnEndPlacement().

◆ SetIsDeploySound()

void SetIsDeploySound ( bool is_deploy_sound)
protected

◆ SetIsHologram()

void SetIsHologram ( bool is_hologram)
inlineprivate

Definition at line 1015 of file itembase.c.

References m_IsHologram.

◆ SetIsPlaceSound()

void SetIsPlaceSound ( bool is_place_sound)
protected

◆ SetLiquidType()

override void SetLiquidType ( int value,
bool allow_client = false )
inlineprotected

Definition at line 3888 of file itembase.c.

References m_VarLiquidType, OnLiquidTypeChanged(), and VARIABLE_LIQUIDTYPE.

◆ SetQuantity()

override bool SetQuantity ( float value,
bool destroy_config = true,
bool destroy_forced = false,
bool allow_client = false,
bool clamp_to_stack_max = true )
inlineprotected

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.

References Math::Clamp(), g_Game, GetQuantityMax(), GetQuantityMin(), InventoryLocation::GetSlot(), GetStoreLoadedQuantity(), InventoryLocation::GetType(), HasQuantity(), IsPrepareToDelete(), InventoryLocation::IsValid(), LOWEST, m_VarQuantity, OnQuantityChanged(), RemoveAllAgents(), StartItemSoundServer(), and VARIABLE_QUANTITY.

◆ SetQuantityMax()

void SetQuantityMax ( )
inlineprotected

Definition at line 3418 of file itembase.c.

References GetQuantityMax(), and ItemBase::SetQuantity().

◆ SetQuantityNormalized()

override void SetQuantityNormalized ( float value,
bool destroy_config = true,
bool destroy_forced = false )
inlineprotected

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.

References Math::Clamp(), GetQuantityMax(), GetQuantityMin(), Math::Lerp(), Math::Round(), and ItemBase::SetQuantity().

◆ SetQuantityToMinimum()

override void SetQuantityToMinimum ( )
inlineprotected

Definition at line 3424 of file itembase.c.

References GetQuantityMin(), and ItemBase::SetQuantity().

◆ SetResultOfSplit()

void SetResultOfSplit ( bool value)
inlineprotected

Definition at line 2274 of file itembase.c.

◆ SetStoreLoad()

override void SetStoreLoad ( bool value)
inlineprotected

Definition at line 3773 of file itembase.c.

References m_IsStoreLoad.

◆ SetStoreLoadedQuantity()

override void SetStoreLoadedQuantity ( float value)
inlineprotected

Definition at line 3783 of file itembase.c.

References m_StoreLoadedQuantity.

◆ SetTakeable()

override void SetTakeable ( bool pState)
inlineprotected

Definition at line 4394 of file itembase.c.

References m_IsTakeable.

◆ SetWet()

override void SetWet ( float value,
bool allow_client = false )
inlineprotected

Definition at line 3702 of file itembase.c.

References Math::Clamp(), GetWetMax(), GetWetMin(), m_VarWet, OnWetChanged(), and VARIABLE_WET.

◆ SetWetMax()

override void SetWetMax ( )
inlineprotected

Definition at line 3726 of file itembase.c.

References m_VarWetMax, and SetWet().

◆ SetZoneDamageCEInit()

void SetZoneDamageCEInit ( )
inlineprotected

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

Definition at line 4548 of file itembase.c.

◆ ShouldSplitQuantity()

bool ShouldSplitQuantity ( float quantity)
inlineprotected

Definition at line 1613 of file itembase.c.

References GetQuantity(), and IsSplitable().

◆ SoundSynchRemote()

void SoundSynchRemote ( )
protected

◆ SoundSynchRemoteReset()

void SoundSynchRemoteReset ( )
protected

◆ SplitIntoStackMax()

◆ SplitIntoStackMaxCargo()

void SplitIntoStackMaxCargo ( EntityAI destination_entity,
int idx,
int row,
int col )
inlineprotected

◆ SplitIntoStackMaxCargoClient()

void SplitIntoStackMaxCargoClient ( EntityAI destination_entity,
int idx,
int row,
int col )
inlineprotected

◆ SplitIntoStackMaxClient()

override void SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
inlineprotected

◆ SplitIntoStackMaxEx()

◆ SplitIntoStackMaxHands()

void SplitIntoStackMaxHands ( PlayerBase player)
inlineprotected

◆ SplitIntoStackMaxHandsClient()

void SplitIntoStackMaxHandsClient ( PlayerBase player)
inlineprotected

◆ SplitIntoStackMaxToInventoryLocation()

void SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
inlineprotected

Definition at line 1867 of file itembase.c.

References SplitIntoStackMaxToInventoryLocationEx().

◆ SplitIntoStackMaxToInventoryLocationClient()

void SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
inlineprotected

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
inlineprotected

◆ SplitItem()

◆ SplitItemToInventoryLocation()

void SplitItemToInventoryLocation ( notnull InventoryLocation dst)
inlineprotected

◆ StartItemSoundServer() [1/2]

void StartItemSoundServer ( int id)
inlineprotected

Definition at line 4482 of file itembase.c.

References InventorySlots::INVALID, and StartItemSoundServer().

◆ StartItemSoundServer() [2/2]

void StartItemSoundServer ( int id,
int slotId )
inlineprotected

◆ StartOverheating()

void StartOverheating ( ItemBase weapon = null,
string ammoType = "",
ItemBase muzzle_owner = null,
ItemBase suppressor = null,
string config_to_search = "" )
inlineprivate

Definition at line 596 of file itembase.c.

References ItemBase(), and m_IsOverheatingEffectActive.

◆ StopDeployLoopSoundEx()

void StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void StopItemDynamicPhysics ( )
inlineprotected

Definition at line 4530 of file itembase.c.

References m_ItemBeingDroppedPhys.

◆ StopItemSoundServer()

void StopItemSoundServer ( int id)
inlineprotected

Definition at line 4488 of file itembase.c.

References CALL_CATEGORY_SYSTEM, ClearStopItemSoundServer(), g_Game, and m_SoundSyncStop.

◆ StopOverheating()

void StopOverheating ( ItemBase weapon = null,
string ammoType = "",
ItemBase muzzle_owner = null,
ItemBase suppressor = null,
string config_to_search = "" )
inlineprivate

Definition at line 609 of file itembase.c.

References ItemBase(), and m_IsOverheatingEffectActive.

◆ StopOverheatingParticles()

void StopOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlinestaticprotected

Definition at line 4329 of file itembase.c.

References ItemBase().

◆ ToggleDebugActionsMask()

void ToggleDebugActionsMask ( int mask)
inlinestaticprivate

◆ TransferAgents()

void TransferAgents ( int agents)
inlineprotected

transfer agents from another item

Definition at line 4014 of file itembase.c.

References m_AttachedAgents.

◆ TransferModifiers()

void TransferModifiers ( PlayerBase reciever)
private

appears to be deprecated, legacy code

◆ UnlockFromParent()

void UnlockFromParent ( )
inlineprivate

Unlocks this item from its attachment slot of its parent.

Definition at line 865 of file itembase.c.

References InventoryLocation::GetSlot().

◆ UpdateAllOverheatingParticles()

◆ UpdateOverheating()

void UpdateOverheating ( ItemBase weapon = null,
string ammoType = "",
ItemBase muzzle_owner = null,
ItemBase suppressor = null,
string config_to_search = "" )
inlineprivate

◆ UpdateOverheatingParticles()

void UpdateOverheatingParticles ( ItemBase weapon,
string ammoType,
ItemBase muzzle_owner,
ItemBase suppressor,
string config_to_search )
inlinestaticprotected

Definition at line 4309 of file itembase.c.

References ItemBase().

◆ UpdateQuickbarShortcutVisibility()

void UpdateQuickbarShortcutVisibility ( PlayerBase player)
inlineprotected

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 UsesGlobalDeploy ( )
inlineprotected

Definition at line 4862 of file itembase.c.

◆ WriteVarsToCTX()

Field Documentation

◆ can_this_be_combined

bool can_this_be_combined
private

Definition at line 74 of file itembase.c.

Referenced by CanBeCombined(), and InitItemVariables().

◆ ITEM_SOUNDS_MAX

const int ITEM_SOUNDS_MAX = 63
protected

Definition at line 137 of file itembase.c.

Referenced by InitItemVariables().

◆ m_ActionsInitialize

bool m_ActionsInitialize
private

Definition at line 26 of file itembase.c.

Referenced by AddAction(), GetActions(), and ItemBase().

◆ m_AdminLog

PluginAdminLog m_AdminLog
protected

Definition at line 125 of file itembase.c.

Referenced by ItemBase(), and OnPlacementComplete().

◆ m_AttachedAgents

◆ m_CanBeDigged

bool m_CanBeDigged
protected

Definition at line 79 of file itembase.c.

Referenced by CanBeDigged(), and InitItemVariables().

◆ m_CanBeMovedOverride

bool m_CanBeMovedOverride
private

Definition at line 72 of file itembase.c.

Referenced by CanBeMovedOverride(), InitItemVariables(), and SetCanBeMovedOverride().

◆ m_CanPlayImpactSound

bool m_CanPlayImpactSound = true
private

Definition at line 56 of file itembase.c.

Referenced by EOnContact(), and OnInventoryEnter().

◆ m_CanShowQuantity

bool m_CanShowQuantity
private

Definition at line 77 of file itembase.c.

Referenced by InitItemVariables().

◆ m_CanThisBeSplit

bool m_CanThisBeSplit
private

Definition at line 75 of file itembase.c.

Referenced by InitItemVariables(), and IsSplitable().

◆ m_CheckOverheating

ref Timer m_CheckOverheating
private

Definition at line 115 of file itembase.c.

Referenced by IncreaseOverheating(), and OnOverheatingDecay().

◆ m_Cleanness

int m_Cleanness
private

◆ m_CleannessInit

int m_CleannessInit
private

Definition at line 51 of file itembase.c.

Referenced by InitItemVariables().

◆ m_CleannessMax

int m_CleannessMax
private

Definition at line 53 of file itembase.c.

Referenced by InitItemVariables(), and SetCleanness().

◆ m_CleannessMin

int m_CleannessMin
private

Definition at line 52 of file itembase.c.

Referenced by InitItemVariables(), and SetCleanness().

◆ m_ColorComponentA

int m_ColorComponentA
protected

Definition at line 87 of file itembase.c.

Referenced by DeSerializeNumericalVars(), GetColor(), SerializeNumericalVars(), and SetColor().

◆ m_ColorComponentB

int m_ColorComponentB
protected

Definition at line 86 of file itembase.c.

Referenced by DeSerializeNumericalVars(), GetColor(), SerializeNumericalVars(), and SetColor().

◆ m_ColorComponentG

int m_ColorComponentG
protected

Definition at line 85 of file itembase.c.

Referenced by DeSerializeNumericalVars(), GetColor(), SerializeNumericalVars(), and SetColor().

◆ m_ColorComponentR

int m_ColorComponentR
protected

Definition at line 84 of file itembase.c.

Referenced by DeSerializeNumericalVars(), GetColor(), SerializeNumericalVars(), and SetColor().

◆ m_CompatibleLocks

ref array<int> m_CompatibleLocks
protected

Definition at line 131 of file itembase.c.

Referenced by InitItemVariables().

◆ m_ContinuousActions

ref TIntArray m_ContinuousActions
protected

Definition at line 94 of file itembase.c.

Referenced by ItemBase().

◆ m_Count

int m_Count
private

Definition at line 40 of file itembase.c.

Referenced by InitItemVariables().

◆ m_DebugActionsMask

int m_DebugActionsMask
staticprivate

Definition at line 28 of file itembase.c.

◆ m_DeployLoopSoundEx

EffectSound m_DeployLoopSoundEx
protected

Definition at line 4848 of file itembase.c.

◆ m_FixDamageSystemInit

bool m_FixDamageSystemInit = false
private

Definition at line 73 of file itembase.c.

Referenced by AfterStoreLoad(), EEOnAfterLoad(), and OnStoreLoad().

◆ m_HasQuantityBar

bool m_HasQuantityBar
private

Definition at line 78 of file itembase.c.

Referenced by InitItemVariables().

◆ m_HeadHidingSelections

ref TStringArray m_HeadHidingSelections
protected

Definition at line 121 of file itembase.c.

Referenced by GetHeadHidingSelection(), and ItemBase().

◆ m_HeatIsolation

float m_HeatIsolation
private

Definition at line 60 of file itembase.c.

Referenced by GetHeatIsolation(), and InitItemVariables().

◆ m_HideSelectionsBySlot

bool m_HideSelectionsBySlot
protected

Definition at line 122 of file itembase.c.

Referenced by HidesSelectionBySlot(), and ItemBase().

◆ m_ImpactSoundSurfaceHash

int m_ImpactSoundSurfaceHash
private

Definition at line 58 of file itembase.c.

Referenced by EOnContact(), and OnVariablesSynchronized().

◆ m_ImpactSpeed

float m_ImpactSpeed
private

Definition at line 57 of file itembase.c.

Referenced by EOnContact(), InitItemVariables(), and OnVariablesSynchronized().

◆ m_InputActionMap

TInputActionMap m_InputActionMap
private

Definition at line 23 of file itembase.c.

Referenced by AddAction(), GetActions(), InitializeActions(), and RemoveAction().

◆ m_InteractActions

ref TIntArray m_InteractActions
protected

Definition at line 95 of file itembase.c.

Referenced by ItemBase().

◆ m_IsBeingPlaced

bool m_IsBeingPlaced
private

Definition at line 67 of file itembase.c.

Referenced by InitItemVariables(), IsBeingPlaced(), and SetIsBeingPlaced().

◆ m_IsDeploySound

bool m_IsDeploySound
protected

Definition at line 4851 of file itembase.c.

Referenced by IsDeploySound().

◆ m_IsHologram

bool m_IsHologram
private

Definition at line 68 of file itembase.c.

Referenced by InitItemVariables(), IsHologram(), and SetIsHologram().

◆ m_IsOverheatingEffectActive

bool m_IsOverheatingEffectActive
private

Definition at line 113 of file itembase.c.

Referenced by IsOverheatingEffectActive(), StartOverheating(), and StopOverheating().

◆ m_IsPlaceSound

bool m_IsPlaceSound
protected

Definition at line 4850 of file itembase.c.

Referenced by IsPlaceSound().

◆ m_IsSoundSynchRemote

bool m_IsSoundSynchRemote
protected

Definition at line 4852 of file itembase.c.

Referenced by IsSoundSynchRemote().

◆ m_IsStoreLoad

bool m_IsStoreLoad = false
private

Definition at line 76 of file itembase.c.

Referenced by DeSerializeNumericalVars(), IsStoreLoad(), OnStoreLoad(), and SetStoreLoad().

◆ m_IsTakeable

bool m_IsTakeable
private

Definition at line 69 of file itembase.c.

Referenced by InitItemVariables(), IsTakeable(), and SetTakeable().

◆ m_ItemActionOverrides

ref map<typename, ref TActionAnimOverrideMap> m_ItemActionOverrides = new map<typename, ref TActionAnimOverrideMap>
staticprivate

Definition at line 24 of file itembase.c.

Referenced by OverrideActionAnimation().

◆ m_ItemAttachOffset

float m_ItemAttachOffset
private

Definition at line 62 of file itembase.c.

Referenced by InitItemVariables().

◆ m_ItemBehaviour

int m_ItemBehaviour
private

◆ m_ItemBeingDroppedPhys

bool m_ItemBeingDroppedPhys
private

Definition at line 71 of file itembase.c.

Referenced by StopItemDynamicPhysics().

◆ m_ItemModelLength

float m_ItemModelLength
private

Definition at line 61 of file itembase.c.

Referenced by InitItemVariables().

◆ m_ItemSoundHandler

ref ItemSoundHandler m_ItemSoundHandler
private

Definition at line 142 of file itembase.c.

Referenced by GetItemSoundHandler(), InitItemVariables(), and OnVariablesSynchronized().

◆ m_ItemTypeActionsMap

ref map<typename, ref TInputActionMap> m_ItemTypeActionsMap = new map<typename, ref TInputActionMap>
staticprivate

Definition at line 22 of file itembase.c.

Referenced by InitializeActions().

◆ m_LastRegisteredWeaponID

int m_LastRegisteredWeaponID = 0
staticprivate

Definition at line 110 of file itembase.c.

Referenced by GetMuzzleID().

◆ m_LightSourceItem

ItemBase m_LightSourceItem
protected

Definition at line 91 of file itembase.c.

Referenced by AddLightSourceItem(), GetLightSourceItem(), and RemoveLightSourceItem().

◆ m_LiquidContainerMask

int m_LiquidContainerMask
private

Definition at line 63 of file itembase.c.

Referenced by GetLiquidContainerMask(), InitItemVariables(), and IsLiquidContainer().

◆ m_LockingSound

ref EffectSound m_LockingSound
protected

Definition at line 133 of file itembase.c.

Referenced by ~ItemBase(), and OnRPC().

◆ m_LockSoundSet

string m_LockSoundSet
protected

Definition at line 134 of file itembase.c.

Referenced by GetLockSoundSet(), and InitItemVariables().

◆ m_LockType

int m_LockType
protected

Definition at line 132 of file itembase.c.

Referenced by GetLockType(), and InitItemVariables().

◆ m_MaxOverheatingValue

int m_MaxOverheatingValue = 0
private

◆ m_OnBulletCasingEjectEffect

ref map<int, ref array<ref WeaponParticlesOnBulletCasingEject> > m_OnBulletCasingEjectEffect
staticprivate

Definition at line 107 of file itembase.c.

Referenced by LoadParticleConfigOnFire(), and PlayBulletCasingEjectParticles().

◆ m_OnFireEffect

ref map<int, ref array<ref WeaponParticlesOnFire> > m_OnFireEffect
staticprivate

Definition at line 106 of file itembase.c.

Referenced by LoadParticleConfigOnFire(), and PlayFireParticles().

◆ m_OnOverheatingEffect

ref map<int, ref array<ref WeaponParticlesOnOverheating> > m_OnOverheatingEffect
private

Definition at line 108 of file itembase.c.

Referenced by LoadParticleConfigOnOverheating().

◆ m_OverheatingDecayInterval

float m_OverheatingDecayInterval = 1
private

◆ m_OverheatingParticles

ref array<ref OverheatingParticle> m_OverheatingParticles
private

◆ m_OverheatingShots

float m_OverheatingShots
private

◆ m_PhysDropTimer

ref Timer m_PhysDropTimer
protected

Definition at line 128 of file itembase.c.

◆ m_QuickBarBonus

int m_QuickBarBonus
private

Definition at line 66 of file itembase.c.

Referenced by GetQuickBarBonus(), and ItemBase().

◆ m_RecipesInitialized

bool m_RecipesInitialized
private

Definition at line 29 of file itembase.c.

◆ m_ShotsToStartOverheating

int m_ShotsToStartOverheating = 0
private

◆ m_SingleUseActions

ref TIntArray m_SingleUseActions
protected

Definition at line 93 of file itembase.c.

Referenced by ItemBase().

◆ m_SoundAttType

bool m_IsResultOfSplit string 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.

Referenced by GetAttachmentSoundType(), and PreLoadSoundAttachmentType().

◆ m_SoundDeploy

EffectSound m_SoundDeploy
protected

Definition at line 4849 of file itembase.c.

◆ m_SoundDeployFinish

EffectSound m_SoundDeployFinish
protected

Definition at line 4846 of file itembase.c.

◆ m_SoundPlace

EffectSound m_SoundPlace
protected

Definition at line 4847 of file itembase.c.

◆ m_SoundSyncPlay

int m_SoundSyncPlay
protected

◆ m_SoundSyncSlotID

int m_SoundSyncSlotID = InventorySlots.INVALID
protected

◆ m_SoundSyncStop

int m_SoundSyncStop
protected

◆ m_StoreLoadedQuantity

float m_StoreLoadedQuantity = float.LOWEST
private

Definition at line 42 of file itembase.c.

Referenced by GetStoreLoadedQuantity(), and SetStoreLoadedQuantity().

◆ m_TemperaturePerQuantityWeight

float m_TemperaturePerQuantityWeight
private

Definition at line 145 of file itembase.c.

Referenced by GetTemperaturePerQuantityWeight(), and InitItemVariables().

◆ m_ThrowItemOnDrop

bool m_ThrowItemOnDrop
private

Definition at line 70 of file itembase.c.

Referenced by EEItemLocationChanged().

◆ m_VarLiquidType

int m_VarLiquidType
private

Definition at line 64 of file itembase.c.

Referenced by GetLiquidType(), InitItemVariables(), SerializeNumericalVars(), and SetLiquidType().

◆ m_VarQuantity

◆ m_VarQuantityInit

int m_VarQuantityInit
private

Definition at line 37 of file itembase.c.

Referenced by GetQuantityInit(), and InitItemVariables().

◆ m_VarQuantityMax

int m_VarQuantityMax
private

Definition at line 39 of file itembase.c.

Referenced by GetTargetQuantityMax(), InitItemVariables(), OnWasAttached(), and OnWasDetached().

◆ m_VarQuantityMin

int m_VarQuantityMin
private

Definition at line 38 of file itembase.c.

Referenced by GetQuantityMin(), and InitItemVariables().

◆ m_VarQuantityPrev

float m_VarQuantityPrev
private

Definition at line 36 of file itembase.c.

Referenced by OnVariablesSynchronized().

◆ m_VarStackMax

float m_VarStackMax
private

Definition at line 41 of file itembase.c.

Referenced by GetTargetQuantityMax(), and InitItemVariables().

◆ m_VarWet

◆ m_VarWetInit

float m_VarWetInit
private

Definition at line 46 of file itembase.c.

Referenced by GetWetInit(), and InitItemVariables().

◆ m_VarWetMax

float m_VarWetMax
private

Definition at line 48 of file itembase.c.

Referenced by GetWetMax(), InitItemVariables(), ProcessItemWetness(), and SetWetMax().

◆ m_VarWetMin

float m_VarWetMin
private

Definition at line 47 of file itembase.c.

Referenced by GetWetMin(), InitItemVariables(), and ProcessItemWetness().

◆ m_VarWetPrev

float m_VarWetPrev
private

Definition at line 45 of file itembase.c.

Referenced by OnVariablesSynchronized().

◆ m_WantPlayImpactSound

bool m_WantPlayImpactSound
private

Definition at line 55 of file itembase.c.

Referenced by EOnContact(), InitItemVariables(), and OnVariablesSynchronized().

◆ m_WeaponTypeToID

ref map<string, int> m_WeaponTypeToID
staticprivate

Definition at line 109 of file itembase.c.

Referenced by GetMuzzleID().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/entities/itembase.c