Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
itembase.c File Reference

Go to the source code of this file.

Data Structures

class  InventoryItem
class  ItemBase
class  ItemBaseType

Typedefs

typedef ItemBase Inventory_Base
typedef ItemBaseType Inventory_BaseType
typedef map< typename, ref ActionOverrideDataTActionAnimOverrideMap

Functions

void ~ItemBase ()
void AddAction (typename actionName)
static void AddDebugActionsMask (int mask)
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 CanBeDigged ()
bool CanBeDisinfected ()
bool CanBeMovedOverride ()
bool CanBeRepairedByCrafting ()
override bool CanBeSplit ()
bool CanBeUsedForSuicide ()
bool CanDecay ()
override bool CanDisplayCargo ()
bool CanEat ()
bool CanExplodeInFire ()
bool CanHaveWetness ()
bool CanMakeGardenplot ()
override bool CanObstruct ()
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 string ChangeIntoOnAttach (string slot)
override string ChangeIntoOnDetach ()
override void CheckForRoofLimited (float timeTresholdMS=3000)
 Roof check for entity, limited by time (anti-spam solution).
void CheckOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
override void ClearInventory ()
void ClearStartItemSoundServer ()
void ClearStopItemSoundServer ()
void Close ()
void CombineItems (ItemBase other_item, bool use_stack_max=true)
override void CombineItemsClient (EntityAI entity2, 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)
bool DamageItemAttachments (float damage)
bool DamageItemInCargo (float damage)
override void DeSerializeNumericalVars (array< float > floats)
void DoAmmoExplosion ()
override void EEDelete (EntityAI parent)
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
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 EEOnAfterLoad ()
override void EEOnCECreate ()
 Called when entity is being created as new by CE/ Debug.
override void EOnContact (IEntity other, Contact extra)
void ExplodeAmmo ()
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
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)".
int GetDamageSystemVersionChange ()
 Re-sets DamageSystem changes.
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
static int GetDebugActionsMask ()
string GetDeployFinishSoundset ()
string GetDeploySoundset ()
float GetDeployTime ()
 how long it takes to deploy this item in seconds
float GetDisinfectQuantity (int system=0, Param param1=null)
float GetDryingIncrement (string pIncrementName)
float GetEnergy ()
string GetExplosiveTriggerSlotName ()
float GetFilterDamageRatio ()
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 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.
float GetItemAttachOffset ()
float GetItemModelLength ()
override float GetItemOverheatThreshold ()
int GetItemSize ()
ItemSoundHandler GetItemSoundHandler ()
ScriptedLightBase GetLight ()
ItemBase GetLightSourceItem ()
int GetLiquidContainerMask ()
override int GetLiquidType ()
int GetLiquidTypeInit ()
string GetLockSoundSet ()
int GetLockType ()
string GetLoopDeploySoundset ()
string GetLoopFoldSoundset ()
int GetMuzzleID ()
 Returns global muzzle ID. If not found, then it gets automatically registered.
int GetNumberOfItems ()
 Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
int GetOnDigWormsAmount ()
float GetOverheatingCoef ()
float GetOverheatingValue ()
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 ()
override int GetQuickBarBonus ()
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 ()
static bool HasDebugActionsMask (int mask)
bool HasFoodStage ()
bool HasMuzzle ()
 Returns true if this item has a muzzle (weapons, suppressors).
override bool HasQuantity ()
bool HidesSelectionBySlot ()
void HierarchyCheck (out bool hasParent, out bool hasRootAsPlayer, out ItemBase refParentIB)
string IDToName (int id)
void IncreaseOverheating (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
void InitializeActions ()
void InitItemSounds ()
override void InitItemVariables ()
override void InsertAgent (int agent, float count=1)
bool IsActionTargetVisible ()
override bool IsBeingPlaced ()
bool IsBloodContainer ()
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 IsExplosive ()
bool IsFacingPlayer (PlayerBase player, string selection)
bool IsFullQuantity ()
override bool IsHeavyBehaviour ()
override bool IsHologram ()
override bool IsIgnoredByConstruction ()
override bool IsItemBase ()
bool IsLightSource ()
bool IsLiquidContainer ()
bool IsLiquidPresent ()
bool IsNVG ()
override bool IsOneHandedBehaviour ()
bool IsOpen ()
bool IsOverheatingEffectActive ()
bool IsPlaceSound ()
bool IsPlayerInside (PlayerBase player, string selection)
bool IsResultOfSplit ()
bool IsSoundSynchRemote ()
override bool IsSplitable ()
override bool IsStoreLoad ()
override bool IsTakeable ()
override bool IsTwoHandedBehaviour ()
void ItemBase ()
void KillAllOverheatingParticles ()
override bool KindOf (string tag)
bool LoadAgents (ParamsReadContext ctx, int version)
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.
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 OnCreatePhysics ()
void OnEndPlacement ()
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.
override void OnItemAttachmentSlotChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void OnItemInHandsPlayerSwimStart (PlayerBase player)
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
void OnLiquidTypeChanged (int oldType, int newType)
override void OnMovedInsideCargo (EntityAI container)
void OnOverheatingDecay ()
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 OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
override void OnWetChanged (float newVal, float oldVal)
override void OnWetLevelChanged (EWetnessLevel newLevel, EWetnessLevel oldLevel)
void Open ()
 Implementations only.
void OverrideActionAnimation (typename action, int commandUID, int stanceMask=-1, int commandUIDProne=-1)
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.
static void PlayBulletCasingEjectParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
void PlayDeployFinishSound ()
void PlayDeployLoopSoundEx ()
void PlayDeploySound ()
void PlayDetachSound (string slot_type)
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)
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
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)
override void RemoveAgent (int agent_id)
override void RemoveAllAgents ()
override void RemoveAllAgentsExcept (int agent_to_keep)
void RemoveAudioVisualsOnClient ()
static void RemoveDebugActionsMask (int mask)
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 SetActionAnimOverrides ()
void SetActions ()
void SetCanBeMovedOverride (bool setting)
void SetCEBasedQuantity ()
override void SetCleanness (int value, bool allow_client=false)
override void SetColor (int r, int g, int b, int a)
static void SetDebugActionsMask (int mask)
void SetInventoryLocationToVicinityOrCurrent (EntityAI root, inout InventoryLocation dst)
void SetIsBeingPlaced (bool is_being_placed)
void SetIsDeploySound (bool is_deploy_sound)
void SetIsHologram (bool is_hologram)
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)
void SetupSpawnedItem (ItemBase item, float health, float quantity)
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 ()
class ItemBase extends InventoryItem SpawnItemOnLocation (string object_name, notnull InventoryLocation loc, bool full_quantity)
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 StartOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
void StopDeployLoopSoundEx ()
void StopItemDynamicPhysics ()
void StopItemSoundServer (int id)
void StopOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="")
static void StopOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
static void ToggleDebugActionsMask (int mask)
void TransferAgents (int agents)
 transfer agents from another item
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 void UpdateOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search)
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)

Variables

bool can_this_be_combined
const int ITEM_SOUNDS_MAX = 63
bool m_ActionsInitialize
PluginAdminLog m_AdminLog
int m_AttachedAgents
bool m_CanBeDigged
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_ColorComponentA
int m_ColorComponentB
int m_ColorComponentG
int m_ColorComponentR
ref array< intm_CompatibleLocks
ref TIntArray m_ContinuousActions
int m_Count
static int m_DebugActionsMask
EffectSound m_DeployLoopSoundEx
bool m_FixDamageSystemInit = false
bool m_HasQuantityBar
ref TStringArray m_HeadHidingSelections
float m_HeatIsolation
bool m_HideSelectionsBySlot
int m_ImpactSoundSurfaceHash
float m_ImpactSpeed
TInputActionMap m_InputActionMap
ref TIntArray m_InteractActions
bool m_IsBeingPlaced
bool m_IsDeploySound
bool m_IsHologram
bool m_IsOverheatingEffectActive
bool m_IsPlaceSound
bool m_IsSoundSynchRemote
bool m_IsStoreLoad = false
bool m_IsTakeable
static ref map< typename, ref TActionAnimOverrideMapm_ItemActionOverrides = new map<typename, ref TActionAnimOverrideMap>
float m_ItemAttachOffset
int m_ItemBehaviour
bool m_ItemBeingDroppedPhys
float m_ItemModelLength
ref ItemSoundHandler m_ItemSoundHandler
static ref map< typename, ref TInputActionMapm_ItemTypeActionsMap = new map<typename, ref TInputActionMap>
static int m_LastRegisteredWeaponID = 0
ItemBase m_LightSourceItem
int m_LiquidContainerMask
ref EffectSound m_LockingSound
string m_LockSoundSet
int m_LockType
int m_MaxOverheatingValue = 0
static ref map< int, ref array< ref WeaponParticlesOnBulletCasingEject > > m_OnBulletCasingEjectEffect
static ref map< int, ref array< ref WeaponParticlesOnFire > > m_OnFireEffect
ref map< int, ref array< ref WeaponParticlesOnOverheating > > m_OnOverheatingEffect
float m_OverheatingDecayInterval = 1
ref array< ref OverheatingParticlem_OverheatingParticles
float m_OverheatingShots
ref Timer m_PhysDropTimer
int m_QuickBarBonus
bool m_RecipesInitialized
int m_ShotsToStartOverheating = 0
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
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 ref map< string, intm_WeaponTypeToID

Typedef Documentation

◆ Inventory_Base

typedef ItemBase Inventory_Base

Definition at line 1 of file itembase.c.

◆ Inventory_BaseType

Definition at line 2 of file itembase.c.

◆ TActionAnimOverrideMap

Definition at line 3 of file itembase.c.

Function Documentation

◆ ~ItemBase()

void ~ItemBase ( )
private

Definition at line 5640 of file itembase.c.

◆ AddAction()

void AddAction ( typename actionName )
private

Definition at line 5218 of file itembase.c.

◆ AddDebugActionsMask()

void AddDebugActionsMask ( int mask)
staticprivate

Definition at line 5690 of file itembase.c.

Referenced by InventoryItem::ToggleDebugActionsMask().

◆ AddLightSourceItem()

void AddLightSourceItem ( ItemBase lightsource)
protected

Adds a light source child.

Definition at line 9640 of file itembase.c.

◆ AddQuantity()

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

Referenced by InventoryItem::CombineItems(), Edible_Base::Consume(), InventoryItem::OnAction(), ItemBase::OnIgnitedTarget(), ItemBase::OnIgnitedTargetFailed(), ItemBase::RemovePlanks(), InventoryItem::SplitIntoStackMax(), InventoryItem::SplitIntoStackMaxCargo(), InventoryItem::SplitIntoStackMaxEx(), InventoryItem::SplitIntoStackMaxHands(), InventoryItem::SplitIntoStackMaxToInventoryLocationEx(), InventoryItem::SplitItem(), and InventoryItem::SplitItemToInventoryLocation().

◆ AddWet()

override void AddWet ( float value)
protected

◆ 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 ( )
protected

Definition at line 8139 of file itembase.c.

◆ AllowFoodConsumption()

bool AllowFoodConsumption ( )
protected

Definition at line 8721 of file itembase.c.

◆ CanBeCombined()

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

Definition at line 7092 of file itembase.c.

◆ CanBeConsumed()

bool CanBeConsumed ( ConsumeConditionData data = null)
protected

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

Definition at line 9543 of file itembase.c.

◆ CanBeCooked()

bool CanBeCooked ( )
protected

Definition at line 7556 of file itembase.c.

◆ CanBeCookedOnStick()

bool CanBeCookedOnStick ( )
protected

Definition at line 7561 of file itembase.c.

◆ CanBeDigged()

bool CanBeDigged ( )
private

Definition at line 5890 of file itembase.c.

◆ CanBeDisinfected()

bool CanBeDisinfected ( )
protected

Definition at line 8168 of file itembase.c.

◆ CanBeMovedOverride()

bool CanBeMovedOverride ( )
protected

Definition at line 7600 of file itembase.c.

◆ CanBeRepairedByCrafting()

bool CanBeRepairedByCrafting ( )
private

Definition at line 5846 of file itembase.c.

◆ CanBeSplit()

override bool CanBeSplit ( )
private

Definition at line 6495 of file itembase.c.

◆ CanBeUsedForSuicide()

bool CanBeUsedForSuicide ( )
protected

Definition at line 9720 of file itembase.c.

◆ CanDecay()

BrisketSpread Edible_Base CanDecay ( )
protected

Definition at line 9523 of file itembase.c.

Referenced by InventoryItem::ProcessVariables().

◆ CanDisplayCargo()

override bool CanDisplayCargo ( )
protected

Definition at line 9043 of file itembase.c.

◆ CanEat()

bool CanEat ( )
protected

Definition at line 7531 of file itembase.c.

◆ CanExplodeInFire()

bool CanExplodeInFire ( )
protected

Definition at line 7525 of file itembase.c.

◆ CanHaveWetness()

bool CanHaveWetness ( )
protected

Definition at line 9536 of file itembase.c.

Referenced by InventoryItem::ProcessVariables().

◆ CanMakeGardenplot()

bool CanMakeGardenplot ( )
private

Definition at line 5900 of file itembase.c.

◆ CanObstruct()

override bool CanObstruct ( )
private

Definition at line 5863 of file itembase.c.

◆ CanPlayDeployLoopSound()

bool CanPlayDeployLoopSound ( )
protected

Definition at line 9753 of file itembase.c.

◆ CanProcessDecay()

override bool CanProcessDecay ( )
protected

Definition at line 9529 of file itembase.c.

Referenced by InventoryItem::ProcessVariables().

◆ CanPutAsAttachment()

override bool CanPutAsAttachment ( EntityAI parent)
protected

Definition at line 9066 of file itembase.c.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
protected

Definition at line 9052 of file itembase.c.

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 9090 of file itembase.c.

◆ CanReceiveItemIntoCargo()

override bool CanReceiveItemIntoCargo ( EntityAI item)
protected

Definition at line 9081 of file itembase.c.

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 9111 of file itembase.c.

◆ CanRepair()

bool CanRepair ( ItemBase item_repair_kit)
protected

Definition at line 7571 of file itembase.c.

◆ ChangeIntoOnAttach()

override string ChangeIntoOnAttach ( string slot)
private

Definition at line 6312 of file itembase.c.

◆ ChangeIntoOnDetach()

override string ChangeIntoOnDetach ( )
private

Definition at line 6336 of file itembase.c.

◆ CheckForRoofLimited()

override void CheckForRoofLimited ( float timeTresholdMS = 3000)
protected

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

Definition at line 8971 of file itembase.c.

Referenced by Cooling(), Heating(), FireplaceBase::IsThisIgnitionSuccessful(), OnItemLocationChanged(), StartFire(), and StopFire().

◆ CheckOverheating()

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

◆ ClearInventory()

override void ClearInventory ( )
protected

Definition at line 8504 of file itembase.c.

Referenced by PluginBase::OnRPCClearInventory().

◆ ClearStartItemSoundServer()

void ClearStartItemSoundServer ( )
protected

Definition at line 9390 of file itembase.c.

◆ ClearStopItemSoundServer()

void ClearStopItemSoundServer ( )
protected

Definition at line 9396 of file itembase.c.

◆ Close()

◆ CombineItems()

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

◆ CombineItemsClient()

override void CombineItemsClient ( EntityAI entity2,
bool use_stack_max = true )
private

Definition at line 5767 of file itembase.c.

◆ CombineItemsEx()

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

Definition at line 7193 of file itembase.c.

◆ ComputeQuantityUsed()

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

Definition at line 7169 of file itembase.c.

Referenced by InventoryItem::IsCombineAll().

◆ ComputeQuantityUsedEx()

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

Definition at line 7174 of file itembase.c.

Referenced by InventoryItem::CombineItems(), and InventoryItem::ComputeQuantityUsed().

◆ ContainsAgent()

bool ContainsAgent ( int agent_id)
protected

Definition at line 8863 of file itembase.c.

Referenced by InventoryItem::RemoveAgent().

◆ ConvertEnergyToQuantity()

void ConvertEnergyToQuantity ( )
protected

Definition at line 8551 of file itembase.c.

Referenced by InventoryItem::OnEnergyAdded(), and InventoryItem::OnEnergyConsumed().

◆ CopyScriptPropertiesFrom()

void CopyScriptPropertiesFrom ( EntityAI oldItem)
protected

Definition at line 9634 of file itembase.c.

◆ DamageItemAttachments()

bool DamageItemAttachments ( float damage)
private

Definition at line 6473 of file itembase.c.

Referenced by InventoryItem::EEHitBy().

◆ DamageItemInCargo()

bool DamageItemInCargo ( float damage)
private

Definition at line 6453 of file itembase.c.

Referenced by InventoryItem::EEHitBy().

◆ DeSerializeNumericalVars()

override void DeSerializeNumericalVars ( array< float > floats)
protected

Definition at line 7824 of file itembase.c.

Referenced by Entity::TransferVariablesFloat().

◆ DoAmmoExplosion()

void DoAmmoExplosion ( )
private

Definition at line 6388 of file itembase.c.

◆ EEDelete()

override void EEDelete ( EntityAI parent)
private

Definition at line 6230 of file itembase.c.

◆ EEHealthLevelChanged()

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

drops content of container when ruined in fireplace

Definition at line 6976 of file itembase.c.

◆ EEHitBy()

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

Definition at line 6412 of file itembase.c.

◆ EEItemLocationChanged()

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

Definition at line 5952 of file itembase.c.

◆ EEKilled()

override void EEKilled ( Object killer)
private

item is able to explode in fire

Definition at line 6264 of file itembase.c.

◆ EEOnAfterLoad()

override void EEOnAfterLoad ( )
protected

Definition at line 8155 of file itembase.c.

◆ EEOnCECreate()

override void EEOnCECreate ( )
protected

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

Definition at line 9023 of file itembase.c.

◆ EOnContact()

override void EOnContact ( IEntity other,
Contact extra )
private

Definition at line 6084 of file itembase.c.

◆ ExplodeAmmo()

void ExplodeAmmo ( )
private

Definition at line 6375 of file itembase.c.

Referenced by InventoryItem::DoAmmoExplosion(), and InventoryItem::EEKilled().

◆ GetActions()

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

Definition at line 5196 of file itembase.c.

◆ GetActionWidgetOverride()

bool GetActionWidgetOverride ( out typename name)
protected

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

Definition at line 9662 of file itembase.c.

◆ GetAgents()

◆ GetAttachmentSoundType()

override string GetAttachmentSoundType ( )
protected

Definition at line 9314 of file itembase.c.

◆ GetBaitEffectivity()

float GetBaitEffectivity ( )
protected

generic effectivity as a bait for animal catching

Definition at line 9692 of file itembase.c.

◆ GetBandagingEffectivity()

float GetBandagingEffectivity ( )
protected

Definition at line 9403 of file itembase.c.

◆ GetCleanness()

override int GetCleanness ( )
protected

Definition at line 8716 of file itembase.c.

Referenced by InventoryItem::WriteVarsToCTX().

◆ GetColor()

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

gets item's color variable as components

Definition at line 8751 of file itembase.c.

◆ GetColorString()

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

◆ GetDamageSystemVersionChange()

override int GetDamageSystemVersionChange ( )
private

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

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
protected

Definition at line 7253 of file itembase.c.

◆ GetDebugActionsMask()

int GetDebugActionsMask ( )
staticprivate

Definition at line 5675 of file itembase.c.

◆ GetDeployFinishSoundset()

string GetDeployFinishSoundset ( )
protected

◆ GetDeploySoundset()

string GetDeploySoundset ( )
protected

Definition at line 2611 of file fireplacebase.c.

◆ GetDeployTime()

float GetDeployTime ( )
protected

how long it takes to deploy this item in seconds

Definition at line 9276 of file itembase.c.

◆ GetDisinfectQuantity()

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

Definition at line 5589 of file itembase.c.

◆ GetDryingIncrement()

float GetDryingIncrement ( string pIncrementName)
protected

Definition at line 8574 of file itembase.c.

Referenced by InventoryItem::ProcessItemWetness().

◆ GetEnergy()

◆ GetExplosiveTriggerSlotName()

string GetExplosiveTriggerSlotName ( )
private

Definition at line 5834 of file itembase.c.

◆ GetFilterDamageRatio()

override float GetFilterDamageRatio ( )
private

Definition at line 5594 of file itembase.c.

◆ GetFoldSoundset()

string GetFoldSoundset ( )
protected

Definition at line 1417 of file basebuildingbase.c.

Referenced by ItemBase::InitItemSounds().

◆ GetFoodStage()

FoodStage GetFoodStage ( )
protected

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

Definition at line 7551 of file itembase.c.

◆ GetHeadHidingSelection()

array< string > GetHeadHidingSelection ( )
protected

Definition at line 9408 of file itembase.c.

◆ GetHeatIsolation()

float GetHeatIsolation ( )
protected

Definition at line 8569 of file itembase.c.

◆ GetHeatIsolationInit()

float GetHeatIsolationInit ( )
protected

Definition at line 8564 of file itembase.c.

Referenced by InventoryItem::InitItemVariables().

◆ GetInfectionChance()

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

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

◆ GetItemAttachOffset()

float GetItemAttachOffset ( )
protected

Definition at line 8694 of file itembase.c.

Referenced by InventoryItem::InitItemVariables().

◆ GetItemModelLength()

float GetItemModelLength ( )
protected

Definition at line 8685 of file itembase.c.

Referenced by InventoryItem::InitItemVariables().

◆ GetItemOverheatThreshold()

override float GetItemOverheatThreshold ( )
protected

Definition at line 9600 of file itembase.c.

Referenced by Entity::SetTemperatureEx().

◆ GetItemSize()

int GetItemSize ( )
protected

Definition at line 7585 of file itembase.c.

◆ GetItemSoundHandler()

◆ GetLight()

ScriptedLightBase GetLight ( )
private

◆ GetLightSourceItem()

ItemBase GetLightSourceItem ( )
protected

Definition at line 9650 of file itembase.c.

◆ GetLiquidContainerMask()

int GetLiquidContainerMask ( )
private

Definition at line 5811 of file itembase.c.

◆ GetLiquidType()

◆ GetLiquidTypeInit()

◆ GetLockSoundSet()

string GetLockSoundSet ( )
protected

Definition at line 8734 of file itembase.c.

◆ GetLockType()

int GetLockType ( )
protected

Definition at line 8729 of file itembase.c.

◆ GetLoopDeploySoundset()

string GetLoopDeploySoundset ( )
protected

Definition at line 151 of file largetent.c.

◆ GetLoopFoldSoundset()

string GetLoopFoldSoundset ( )
protected

Definition at line 1422 of file basebuildingbase.c.

Referenced by ItemBase::InitItemSounds().

◆ GetMuzzleID()

int GetMuzzleID ( )
private

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

Definition at line 5609 of file itembase.c.

Referenced by InventoryItem::ItemBase().

◆ GetNumberOfItems()

int GetNumberOfItems ( )
protected

◆ GetOnDigWormsAmount()

int GetOnDigWormsAmount ( )
private

Definition at line 5895 of file itembase.c.

◆ GetOverheatingCoef()

float GetOverheatingCoef ( )
private

Definition at line 5519 of file itembase.c.

Referenced by InventoryItem::UpdateAllOverheatingParticles().

◆ GetOverheatingValue()

float GetOverheatingValue ( )
private

Definition at line 5419 of file itembase.c.

◆ GetPlaceSoundset()

string GetPlaceSoundset ( )
protected

◆ GetProtectionLevel()

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

Definition at line 8984 of file itembase.c.

◆ GetQuantity()

◆ GetQuantityInit()

int GetQuantityInit ( )
protected

Definition at line 8387 of file itembase.c.

◆ GetQuantityMax()

◆ GetQuantityMin()

◆ GetQuantityNormalized()

override float 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 8330 of file itembase.c.

Referenced by InventoryItem::GetBaitEffectivity(), InventoryItem::GetQuantityNormalizedScripted(), and InventoryItem::OnQuantityChanged().

◆ GetQuantityNormalizedScripted()

override float GetQuantityNormalizedScripted ( )
protected

Definition at line 8335 of file itembase.c.

◆ GetQuickBarBonus()

override int GetQuickBarBonus ( )
private

Definition at line 5179 of file itembase.c.

◆ GetRecipesActions()

void GetRecipesActions ( Man player,
out TSelectableActionInfoArray outputList )
protected

Definition at line 7232 of file itembase.c.

◆ GetSingleInventoryItemWeight()

float GetSingleInventoryItemWeight ( )
protected

Definition at line 8418 of file itembase.c.

◆ GetSingleInventoryItemWeightEx()

override float GetSingleInventoryItemWeightEx ( )
protected

Definition at line 8409 of file itembase.c.

Referenced by InventoryItem::GetSingleInventoryItemWeight(), and Entity::OnAction().

◆ GetSoakingIncrement()

float GetSoakingIncrement ( string pIncrementName)
protected

Definition at line 8583 of file itembase.c.

◆ GetStoreLoadedQuantity()

override float GetStoreLoadedQuantity ( )
protected

Definition at line 8678 of file itembase.c.

Referenced by InventoryItem::AfterStoreLoad(), and InventoryItem::SetQuantity().

◆ GetTargetQuantityMax()

◆ GetTemperatureFreezeThreshold()

override float GetTemperatureFreezeThreshold ( )
protected

◆ GetTemperatureFreezeTime()

override float GetTemperatureFreezeTime ( )
protected

Definition at line 9608 of file itembase.c.

Referenced by Entity::HandleFreezingProgression().

◆ GetTemperaturePerQuantityWeight()

float GetTemperaturePerQuantityWeight ( )
protected

Used in heat comfort calculations only!

Definition at line 9579 of file itembase.c.

◆ GetTemperatureThawThreshold()

override float GetTemperatureThawThreshold ( )
protected

Definition at line 9592 of file itembase.c.

Referenced by Entity::CanFreeze(), and Entity::SetTemperatureEx().

◆ GetTemperatureThawTime()

override float GetTemperatureThawTime ( )
protected

Definition at line 9616 of file itembase.c.

Referenced by Entity::HandleFreezingProgression().

◆ GetUnitWeight()

float GetUnitWeight ( bool include_wetness = true)
protected

Obsolete, use GetWeightEx instead.

Definition at line 8485 of file itembase.c.

◆ GetValidFinishers()

array< int > GetValidFinishers ( )
protected

returns an array of possible finishers

Definition at line 9656 of file itembase.c.

◆ GetWeightSpecialized()

float GetWeightSpecialized ( bool forceRecalc = false)
protected

Definition at line 8423 of file itembase.c.

Referenced by Entity::GetWeightEx().

◆ GetWet()

◆ GetWetInit()

override float GetWetInit ( )
protected

Definition at line 8636 of file itembase.c.

◆ GetWetLevel()

override EWetnessLevel GetWetLevel ( )
protected

Definition at line 8656 of file itembase.c.

Referenced by Entity::GetWetWeightModifier().

◆ GetWetMax()

override float GetWetMax ( )
protected

◆ GetWetMin()

override float GetWetMin ( )
protected

◆ GetWrittenNoteData()

WrittenNoteData GetWrittenNoteData ( )
protected

Definition at line 9418 of file itembase.c.

◆ HasDebugActionsMask()

bool HasDebugActionsMask ( int mask)
staticprivate

Definition at line 5680 of file itembase.c.

Referenced by InventoryItem::ToggleDebugActionsMask().

◆ HasFoodStage()

bool HasFoodStage ( )
protected

Definition at line 7544 of file itembase.c.

Referenced by Edible_Base::Edible_Base().

◆ HasMuzzle()

bool HasMuzzle ( )
private

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

Definition at line 5600 of file itembase.c.

Referenced by InventoryItem::ItemBase().

◆ HasQuantity()

◆ HidesSelectionBySlot()

bool HidesSelectionBySlot ( )
protected

Definition at line 9413 of file itembase.c.

◆ HierarchyCheck()

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

Definition at line 9501 of file itembase.c.

Referenced by InventoryItem::ProcessVariables().

◆ IDToName()

string IDToName ( int id)
protected

Definition at line 7767 of file itembase.c.

◆ IncreaseOverheating()

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

Definition at line 5424 of file itembase.c.

Referenced by Weapon::EEFired().

◆ InitializeActions()

void InitializeActions ( )
private

Definition at line 5184 of file itembase.c.

◆ InitItemSounds()

void InitItemSounds ( )
protected

Definition at line 9338 of file itembase.c.

◆ InitItemVariables()

override void InitItemVariables ( )
private

Definition at line 5087 of file itembase.c.

Referenced by Entity::EntityAI().

◆ InsertAgent()

◆ IsActionTargetVisible()

bool IsActionTargetVisible ( )
protected

Definition at line 9296 of file itembase.c.

◆ IsBeingPlaced()

override bool IsBeingPlaced ( )
private

◆ IsBloodContainer()

bool IsBloodContainer ( )
private

Definition at line 5816 of file itembase.c.

◆ IsCargoException4x3()

◆ IsColorSet()

bool IsColorSet ( )
protected

Definition at line 8759 of file itembase.c.

◆ IsCombineAll()

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

Definition at line 7154 of file itembase.c.

Referenced by InventoryItem::CombineItemsClient().

◆ IsCoverFaceForShave()

bool IsCoverFaceForShave ( string slot_name)
protected

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

Definition at line 9451 of file itembase.c.

◆ IsDeployable()

bool IsDeployable ( )
protected

Definition at line 9270 of file itembase.c.

◆ IsDeploySound()

bool IsDeploySound ( )
protected

Definition at line 9756 of file itembase.c.

◆ IsExplosive()

bool IsExplosive ( )
private

explosive

Definition at line 5829 of file itembase.c.

◆ IsFacingPlayer()

bool IsFacingPlayer ( PlayerBase player,
string selection )
private

Definition at line 5853 of file itembase.c.

◆ IsFullQuantity()

bool IsFullQuantity ( )
protected

Definition at line 8403 of file itembase.c.

Referenced by CAContinuousMineWood::CreatePrimaryItems().

◆ IsHeavyBehaviour()

override bool IsHeavyBehaviour ( )
protected

Definition at line 9240 of file itembase.c.

Referenced by Start().

◆ IsHologram()

◆ IsIgnoredByConstruction()

override bool IsIgnoredByConstruction ( )
protected

Definition at line 7537 of file itembase.c.

◆ IsItemBase()

override bool IsItemBase ( )
protected

Definition at line 7684 of file itembase.c.

Referenced by IEntity::CanBeIgnoredByDroppedItem().

◆ IsLightSource()

bool IsLightSource ( )
private

Definition at line 5841 of file itembase.c.

◆ IsLiquidContainer()

◆ IsLiquidPresent()

bool IsLiquidPresent ( )
private

Definition at line 5801 of file itembase.c.

◆ IsNVG()

bool IsNVG ( )
private

Definition at line 5822 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool IsOneHandedBehaviour ( )
protected

Definition at line 9250 of file itembase.c.

◆ IsOpen()

◆ IsOverheatingEffectActive()

bool IsOverheatingEffectActive ( )
private

Definition at line 5457 of file itembase.c.

Referenced by InventoryItem::CheckOverheating().

◆ IsPlaceSound()

bool IsPlaceSound ( )
protected

Definition at line 9755 of file itembase.c.

◆ IsPlayerInside()

bool IsPlayerInside ( PlayerBase player,
string selection )
private

Definition at line 5858 of file itembase.c.

◆ IsResultOfSplit()

bool IsResultOfSplit ( )
protected

Definition at line 7159 of file itembase.c.

Referenced by InventoryItem::EEHealthLevelChanged().

◆ IsSoundSynchRemote()

bool IsSoundSynchRemote ( )
protected

Definition at line 9754 of file itembase.c.

◆ IsSplitable()

◆ IsStoreLoad()

override bool IsStoreLoad ( )
protected

Definition at line 8668 of file itembase.c.

Referenced by InventoryItem::ReadVarsFromCTX().

◆ IsTakeable()

override bool IsTakeable ( )
protected

Definition at line 9290 of file itembase.c.

◆ IsTwoHandedBehaviour()

override bool IsTwoHandedBehaviour ( )
protected

Definition at line 9260 of file itembase.c.

◆ ItemBase()

void ItemBase ( )
private

Definition at line 5038 of file itembase.c.

◆ KillAllOverheatingParticles()

void KillAllOverheatingParticles ( )
private

Definition at line 5555 of file itembase.c.

Referenced by InventoryItem::UpdateOverheating().

◆ KindOf()

override bool KindOf ( string tag)
protected

Definition at line 7690 of file itembase.c.

◆ LoadAgents()

bool LoadAgents ( ParamsReadContext ctx,
int version )
protected

Definition at line 8956 of file itembase.c.

Referenced by InventoryItem::OnStoreLoad().

◆ LoadParticleConfigOnFire()

void LoadParticleConfigOnFire ( int id)
private

Definition at line 5294 of file itembase.c.

Referenced by InventoryItem::ItemBase().

◆ LoadParticleConfigOnOverheating()

void LoadParticleConfigOnOverheating ( int id)
private

Definition at line 5363 of file itembase.c.

Referenced by InventoryItem::ItemBase().

◆ LockToParent()

void LockToParent ( )
private

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

◆ MessageToOwnerAction()

void MessageToOwnerAction ( string text)
protected

Send message to owner player in yellow color.

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

Definition at line 7638 of file itembase.c.

◆ MessageToOwnerFriendly()

void MessageToOwnerFriendly ( string text)
protected

Send message to owner player in green color.

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

Definition at line 7656 of file itembase.c.

◆ MessageToOwnerImportant()

void MessageToOwnerImportant ( string text)
protected

Send message to owner player in red color.

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

Definition at line 7674 of file itembase.c.

◆ MessageToOwnerStatus()

void MessageToOwnerStatus ( string text)
protected

Send message to owner player in grey color.

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

Definition at line 7620 of file itembase.c.

◆ NameToID()

int NameToID ( string name)
protected

Definition at line 7761 of file itembase.c.

◆ OnAction()

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

Definition at line 7313 of file itembase.c.

◆ OnActivatedByItem()

void OnActivatedByItem ( notnull ItemBase item)
protected

Called when this item is activated by other.

Definition at line 305 of file remotedetonator.c.

References ParticleList::BOLT_CUPID_HIT, DeleteThis(), and ParticleManager().

◆ 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)
protected

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

Definition at line 6965 of file itembase.c.

Referenced by InventoryItem::OnAttachmentQuantityChangedEx().

◆ OnAttachmentQuantityChangedEx()

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

◆ OnCombine()

void OnCombine ( ItemBase other_item)
protected

Definition at line 7224 of file itembase.c.

◆ OnCreatePhysics()

override void OnCreatePhysics ( )
private

Definition at line 6114 of file itembase.c.

◆ OnEndPlacement()

void OnEndPlacement ( )
private

Definition at line 5883 of file itembase.c.

◆ OnEnergyAdded()

override void OnEnergyAdded ( )
protected

Definition at line 8543 of file itembase.c.

◆ OnEnergyConsumed()

override void OnEnergyConsumed ( )
protected

Definition at line 8536 of file itembase.c.

◆ OnInventoryEnter()

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

◆ OnInventoryExit()

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

◆ OnItemAttachmentSlotChanged()

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

Definition at line 6119 of file itembase.c.

Referenced by Entity::EEItemLocationChanged().

◆ OnItemInHandsPlayerSwimStart()

void OnItemInHandsPlayerSwimStart ( PlayerBase player)
private

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
private

Definition at line 6124 of file itembase.c.

Referenced by Entity::EEItemLocationChanged().

◆ OnLiquidTypeChanged()

void OnLiquidTypeChanged ( int oldType,
int newType )
protected

Definition at line 8799 of file itembase.c.

Referenced by InventoryItem::SetLiquidType().

◆ OnMovedInsideCargo()

override void OnMovedInsideCargo ( EntityAI container)
private

Definition at line 5945 of file itembase.c.

◆ OnOverheatingDecay()

void OnOverheatingDecay ( )
private

Definition at line 5462 of file itembase.c.

◆ OnPlacementComplete()

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

Definition at line 8849 of file itembase.c.

◆ OnPlacementStarted()

override void OnPlacementStarted ( Man player)
protected

Definition at line 8842 of file itembase.c.

◆ OnQuantityChanged()

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

Referenced by InventoryItem::SetQuantity().

◆ OnRightClick()

override void OnRightClick ( )
protected

Definition at line 7014 of file itembase.c.

◆ OnRPC()

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

Definition at line 7710 of file itembase.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 8010 of file itembase.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 8111 of file itembase.c.

◆ OnSyncVariables()

void OnSyncVariables ( ParamsReadContext ctx)
protected

DEPRECATED (most likely).

Definition at line 7774 of file itembase.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 8175 of file itembase.c.

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
private

Definition at line 6288 of file itembase.c.

Referenced by Entity::EEItemLocationChanged().

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
private

Definition at line 6301 of file itembase.c.

◆ OnWetChanged()

override void OnWetChanged ( float newVal,
float oldVal )
protected

Definition at line 8641 of file itembase.c.

Referenced by InventoryItem::OnVariablesSynchronized(), and InventoryItem::SetWet().

◆ OnWetLevelChanged()

override void OnWetLevelChanged ( EWetnessLevel newLevel,
EWetnessLevel oldLevel )
protected

Definition at line 8651 of file itembase.c.

Referenced by InventoryItem::OnWetChanged().

◆ Open()

void Open ( )
protected

Implementations only.

Definition at line 23 of file chamberfirstinnermagazinesemiautomatic_base.c.

Referenced by FireplaceBase::OnWasAttached().

◆ OverrideActionAnimation()

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

◆ PairWithDevice()

bool PairWithDevice ( notnull ItemBase otherDevice)
protected

Definition at line 9667 of file itembase.c.

Referenced by ClaymoreMine::OnDebugSpawn(), and ClaymoreMine::OnPlacementComplete().

◆ PerformDamageSystemReinit()

void PerformDamageSystemReinit ( )
protected

Definition at line 9426 of file itembase.c.

Referenced by InventoryItem::AfterStoreLoad().

◆ PlayAttachSound()

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

◆ PlayBulletCasingEjectParticles()

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

Definition at line 9159 of file itembase.c.

◆ PlayDeployFinishSound()

void PlayDeployFinishSound ( )
protected

◆ PlayDeployLoopSoundEx()

void PlayDeployLoopSoundEx ( )
protected

◆ PlayDeploySound()

void PlayDeploySound ( )
protected

◆ PlayDetachSound()

void PlayDetachSound ( string slot_type)
protected

Definition at line 9798 of file itembase.c.

◆ PlayFireParticles()

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

Definition at line 9139 of file itembase.c.

◆ PlayOverheatingParticles()

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

Definition at line 9179 of file itembase.c.

◆ PlayPlaceSound()

void PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void PreLoadSoundAttachmentType ( )
protected

Attachment Sound Type getting from config file.

Definition at line 9302 of file itembase.c.

Referenced by InventoryItem::ItemBase().

◆ ProcessDecay()

void ProcessDecay ( float delta,
bool hasRootAsPlayer )
protected

Definition at line 9518 of file itembase.c.

Referenced by InventoryItem::ProcessVariables().

◆ ProcessItemTemperature()

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

◆ ProcessItemWetness()

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

◆ ProcessItemWetnessAndTemperature()

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

Definition at line 9729 of file itembase.c.

◆ ProcessVariables()

override void ProcessVariables ( )
protected

Definition at line 9548 of file itembase.c.

Referenced by Entity::OnCEUpdate().

◆ ReadVarsFromCTX()

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

Definition at line 7919 of file itembase.c.

Referenced by Entity::LoadVariables(), and InventoryItem::OnSyncVariables().

◆ RefreshAudioVisualsOnClient()

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

cooking-related effect methods

Definition at line 158 of file bottle_base.c.

References m_CookingIsBurned, m_CookingIsDone, m_CookingIsEmpty, m_CookingMethod, and Synchronize().

◆ 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 )
private

Definition at line 5505 of file itembase.c.

◆ RemoveAction()

void RemoveAction ( typename actionName )
private

Definition at line 5256 of file itembase.c.

◆ RemoveAgent()

override void RemoveAgent ( int agent_id)
protected

Definition at line 8876 of file itembase.c.

Referenced by InventoryItem::OnAction().

◆ RemoveAllAgents()

override void RemoveAllAgents ( )
protected

Definition at line 8885 of file itembase.c.

Referenced by InventoryItem::SetQuantity().

◆ RemoveAllAgentsExcept()

override void RemoveAllAgentsExcept ( int agent_to_keep)
protected

Definition at line 8890 of file itembase.c.

Referenced by Edible_Base::HandleFoodStageChangeAgents().

◆ RemoveAudioVisualsOnClient()

void RemoveAudioVisualsOnClient ( )
protected

Definition at line 151 of file bottle_base.c.

References m_CookingMethod, and Synchronize().

◆ RemoveDebugActionsMask()

void RemoveDebugActionsMask ( int mask)
staticprivate

Definition at line 5695 of file itembase.c.

Referenced by InventoryItem::ToggleDebugActionsMask().

◆ RemoveLightSourceItem()

void RemoveLightSourceItem ( )
protected

Definition at line 9645 of file itembase.c.

◆ Repair()

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

Definition at line 7578 of file itembase.c.

◆ SaveAgents()

void SaveAgents ( ParamsWriteContext ctx)
protected

Definition at line 8963 of file itembase.c.

Referenced by InventoryItem::OnStoreSave().

◆ SerializeNumericalVars()

override void SerializeNumericalVars ( array< float > floats_out)
protected

Definition at line 7788 of file itembase.c.

Referenced by Entity::GetVariablesFloat().

◆ SetActionAnimOverrides()

void SetActionAnimOverrides ( )
private

◆ SetActions()

void SetActions ( )
private

Definition at line 5207 of file itembase.c.

◆ SetCanBeMovedOverride()

void SetCanBeMovedOverride ( bool setting)
protected

Definition at line 7607 of file itembase.c.

◆ SetCEBasedQuantity()

void SetCEBasedQuantity ( )
private

Definition at line 5713 of file itembase.c.

Referenced by InventoryItem::EEOnCECreate().

◆ SetCleanness()

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

◆ SetColor()

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

Definition at line 8742 of file itembase.c.

◆ SetDebugActionsMask()

void SetDebugActionsMask ( int mask)
staticprivate

Definition at line 5685 of file itembase.c.

◆ SetInventoryLocationToVicinityOrCurrent()

void SetInventoryLocationToVicinityOrCurrent ( EntityAI root,
inout InventoryLocation dst )
protected

Definition at line 7078 of file itembase.c.

Referenced by InventoryItem::OnRightClick().

◆ SetIsBeingPlaced()

void SetIsBeingPlaced ( bool is_being_placed)
private

Definition at line 5874 of file itembase.c.

◆ SetIsDeploySound()

void SetIsDeploySound ( bool is_deploy_sound)
protected

◆ SetIsHologram()

void SetIsHologram ( bool is_hologram)
private

Definition at line 5905 of file itembase.c.

◆ SetIsPlaceSound()

void SetIsPlaceSound ( bool is_place_sound)
protected

◆ SetLiquidType()

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

◆ SetQuantity()

override bool 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 8230 of file itembase.c.

Referenced by CalcAndSetQuantity(), Capture(), MaskBase::EEHealthLevelChanged(), and Release().

◆ SetQuantityMax()

void SetQuantityMax ( )
protected

◆ SetQuantityNormalized()

override void 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 8321 of file itembase.c.

Referenced by FlammableBase::CalculateQuantity(), InventoryItem::ConvertEnergyToQuantity(), and InventoryItem::SetCEBasedQuantity().

◆ SetQuantityToMinimum()

override void SetQuantityToMinimum ( )
protected

Definition at line 8314 of file itembase.c.

◆ SetResultOfSplit()

void SetResultOfSplit ( bool value)
protected

Definition at line 7164 of file itembase.c.

Referenced by InventoryItem::EEHealthLevelChanged().

◆ SetStoreLoad()

override void SetStoreLoad ( bool value)
protected

Definition at line 8663 of file itembase.c.

◆ SetStoreLoadedQuantity()

override void SetStoreLoadedQuantity ( float value)
protected

◆ SetTakeable()

◆ SetupSpawnedItem()

◆ SetWet()

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

◆ SetWetMax()

override void SetWetMax ( )
protected

Definition at line 8616 of file itembase.c.

◆ SetZoneDamageCEInit()

void SetZoneDamageCEInit ( )
protected

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

Definition at line 9438 of file itembase.c.

Referenced by InventoryItem::EEOnCECreate().

◆ ShouldSplitQuantity()

◆ SoundSynchRemote()

void SoundSynchRemote ( )
protected

◆ SoundSynchRemoteReset()

void SoundSynchRemoteReset ( )
protected

◆ SpawnItemOnLocation()

class ItemBase extends InventoryItem SpawnItemOnLocation ( string object_name,
notnull InventoryLocation loc,
bool full_quantity )

Definition at line 20 of file itembase.c.

References InventoryItem::ItemBase().

Referenced by ManBase::CreateInInventory().

◆ SplitIntoStackMax()

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

Definition at line 6546 of file itembase.c.

Referenced by InventoryItem::SplitIntoStackMaxClient().

◆ SplitIntoStackMaxCargo()

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

Definition at line 6796 of file itembase.c.

Referenced by InventoryItem::SplitIntoStackMaxCargoClient().

◆ SplitIntoStackMaxCargoClient()

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

Definition at line 6732 of file itembase.c.

◆ SplitIntoStackMaxClient()

override void SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
protected

Definition at line 6523 of file itembase.c.

◆ SplitIntoStackMaxEx()

override void SplitIntoStackMaxEx ( EntityAI destination_entity,
int slot_id )
protected

Definition at line 6633 of file itembase.c.

◆ SplitIntoStackMaxHands()

void SplitIntoStackMaxHands ( PlayerBase player)
protected

Definition at line 6847 of file itembase.c.

Referenced by InventoryItem::SplitIntoStackMaxHandsClient().

◆ SplitIntoStackMaxHandsClient()

void SplitIntoStackMaxHandsClient ( PlayerBase player)
protected

Definition at line 6823 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocation()

void SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
protected

◆ SplitIntoStackMaxToInventoryLocationClient()

void SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
protected

Definition at line 6711 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
protected

Definition at line 6762 of file itembase.c.

Referenced by InventoryItem::SplitIntoStackMaxToInventoryLocation().

◆ SplitItem()

void SplitItem ( PlayerBase player)
protected

Definition at line 6908 of file itembase.c.

Referenced by InventoryItem::OnRightClick().

◆ SplitItemToInventoryLocation()

void SplitItemToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 6875 of file itembase.c.

◆ StartItemSoundServer() [1/2]

void StartItemSoundServer ( int id)
protected

Definition at line 9372 of file itembase.c.

◆ StartItemSoundServer() [2/2]

◆ StartOverheating()

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

Definition at line 5486 of file itembase.c.

Referenced by InventoryItem::CheckOverheating().

◆ StopDeployLoopSoundEx()

void StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void StopItemDynamicPhysics ( )
protected

Definition at line 9420 of file itembase.c.

◆ StopItemSoundServer()

void StopItemSoundServer ( int id)
protected

Definition at line 9378 of file itembase.c.

◆ StopOverheating()

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

Definition at line 5499 of file itembase.c.

Referenced by InventoryItem::CheckOverheating().

◆ StopOverheatingParticles()

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

Definition at line 9219 of file itembase.c.

◆ ToggleDebugActionsMask()

void ToggleDebugActionsMask ( int mask)
staticprivate

Definition at line 5700 of file itembase.c.

◆ TransferAgents()

void TransferAgents ( int agents)
protected

transfer agents from another item

Definition at line 8904 of file itembase.c.

◆ TransferModifiers()

void TransferModifiers ( PlayerBase reciever)
private

appears to be deprecated, legacy code

◆ UnlockFromParent()

void UnlockFromParent ( )
private

Unlocks this item from its attachment slot of its parent.

Definition at line 5755 of file itembase.c.

Referenced by DestroyPlant(), CarWheel_Ruined::EEHealthLevelChanged(), InventoryItemSuper::EEHealthLevelChanged(), and RemovePlantEx().

◆ UpdateAllOverheatingParticles()

void UpdateAllOverheatingParticles ( )
private

Definition at line 5527 of file itembase.c.

Referenced by InventoryItem::UpdateOverheating().

◆ UpdateOverheating()

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

Definition at line 5492 of file itembase.c.

Referenced by InventoryItem::CheckOverheating().

◆ UpdateOverheatingParticles()

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

Definition at line 9199 of file itembase.c.

◆ UpdateQuickbarShortcutVisibility()

void UpdateQuickbarShortcutVisibility ( PlayerBase player)
protected

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

Definition at line 8806 of file itembase.c.

◆ UsesGlobalDeploy()

bool UsesGlobalDeploy ( )
protected

Definition at line 9752 of file itembase.c.

◆ WriteVarsToCTX()

override void WriteVarsToCTX ( ParamsWriteContext ctx)
protected

Definition at line 7883 of file itembase.c.

Referenced by Entity::SaveVariables().

Variable Documentation

◆ can_this_be_combined

◆ ITEM_SOUNDS_MAX

const int ITEM_SOUNDS_MAX = 63
protected

Definition at line 5027 of file itembase.c.

◆ m_ActionsInitialize

bool m_ActionsInitialize

Definition at line 4916 of file itembase.c.

◆ m_AdminLog

PluginAdminLog m_AdminLog
protected

Definition at line 5015 of file itembase.c.

◆ m_AttachedAgents

int m_AttachedAgents
private

Definition at line 4989 of file itembase.c.

◆ m_CanBeDigged

bool m_CanBeDigged
protected

Definition at line 4969 of file itembase.c.

◆ m_CanBeMovedOverride

bool m_CanBeMovedOverride

Definition at line 4962 of file itembase.c.

◆ m_CanPlayImpactSound

bool m_CanPlayImpactSound = true

Definition at line 4946 of file itembase.c.

◆ m_CanShowQuantity

bool m_CanShowQuantity

Definition at line 4967 of file itembase.c.

◆ m_CanThisBeSplit

bool m_CanThisBeSplit

Definition at line 4965 of file itembase.c.

◆ m_CheckOverheating

ref Timer m_CheckOverheating
private

Definition at line 5005 of file itembase.c.

◆ m_Cleanness

◆ m_CleannessInit

int m_CleannessInit

Definition at line 4941 of file itembase.c.

◆ m_CleannessMax

int m_CleannessMax

Definition at line 4943 of file itembase.c.

◆ m_CleannessMin

int m_CleannessMin

Definition at line 4942 of file itembase.c.

◆ m_ColorComponentA

int m_ColorComponentA
protected

Definition at line 4977 of file itembase.c.

◆ m_ColorComponentB

int m_ColorComponentB
protected

Definition at line 4976 of file itembase.c.

◆ m_ColorComponentG

int m_ColorComponentG
protected

Definition at line 4975 of file itembase.c.

◆ m_ColorComponentR

int m_ColorComponentR
protected

Definition at line 4974 of file itembase.c.

◆ m_CompatibleLocks

ref array<int> m_CompatibleLocks
protected

Definition at line 5021 of file itembase.c.

◆ m_ContinuousActions

ref TIntArray m_ContinuousActions
protected

Definition at line 4984 of file itembase.c.

◆ m_Count

int m_Count

Definition at line 4930 of file itembase.c.

◆ m_DebugActionsMask

int m_DebugActionsMask
static

Definition at line 4918 of file itembase.c.

◆ m_DeployLoopSoundEx

EffectSound m_DeployLoopSoundEx
protected

Definition at line 9738 of file itembase.c.

◆ m_FixDamageSystemInit

bool m_FixDamageSystemInit = false

◆ m_HasQuantityBar

bool m_HasQuantityBar

Definition at line 4968 of file itembase.c.

◆ m_HeadHidingSelections

ref TStringArray m_HeadHidingSelections
protected

Definition at line 5011 of file itembase.c.

◆ m_HeatIsolation

float m_HeatIsolation

Definition at line 4950 of file itembase.c.

◆ m_HideSelectionsBySlot

bool m_HideSelectionsBySlot
protected

Definition at line 5012 of file itembase.c.

◆ m_ImpactSoundSurfaceHash

int m_ImpactSoundSurfaceHash

Definition at line 4948 of file itembase.c.

◆ m_ImpactSpeed

float m_ImpactSpeed

Definition at line 4947 of file itembase.c.

◆ m_InputActionMap

TInputActionMap m_InputActionMap

Definition at line 4913 of file itembase.c.

◆ m_InteractActions

ref TIntArray m_InteractActions
protected

Definition at line 4985 of file itembase.c.

◆ m_IsBeingPlaced

bool m_IsBeingPlaced

Definition at line 4957 of file itembase.c.

Referenced by TrapSpawnBase::CanBePlaced().

◆ m_IsDeploySound

bool m_IsDeploySound
protected

Definition at line 9741 of file itembase.c.

◆ m_IsHologram

bool m_IsHologram

Definition at line 4958 of file itembase.c.

◆ m_IsOverheatingEffectActive

bool m_IsOverheatingEffectActive
private

Definition at line 5003 of file itembase.c.

◆ m_IsPlaceSound

bool m_IsPlaceSound
protected

Definition at line 9740 of file itembase.c.

◆ m_IsSoundSynchRemote

bool m_IsSoundSynchRemote
protected

Definition at line 9742 of file itembase.c.

◆ m_IsStoreLoad

bool m_IsStoreLoad = false

◆ m_IsTakeable

bool m_IsTakeable

Definition at line 4959 of file itembase.c.

◆ m_ItemActionOverrides

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

Definition at line 4914 of file itembase.c.

◆ m_ItemAttachOffset

float m_ItemAttachOffset

Definition at line 4952 of file itembase.c.

◆ m_ItemBehaviour

int m_ItemBehaviour

Definition at line 4955 of file itembase.c.

◆ m_ItemBeingDroppedPhys

bool m_ItemBeingDroppedPhys

Definition at line 4961 of file itembase.c.

◆ m_ItemModelLength

float m_ItemModelLength

Definition at line 4951 of file itembase.c.

◆ m_ItemSoundHandler

ref ItemSoundHandler m_ItemSoundHandler
private

Definition at line 5032 of file itembase.c.

◆ m_ItemTypeActionsMap

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

Definition at line 4912 of file itembase.c.

◆ m_LastRegisteredWeaponID

int m_LastRegisteredWeaponID = 0
staticprivate

Definition at line 5000 of file itembase.c.

◆ m_LightSourceItem

ItemBase m_LightSourceItem
protected

Definition at line 4981 of file itembase.c.

◆ m_LiquidContainerMask

int m_LiquidContainerMask

Definition at line 4953 of file itembase.c.

◆ m_LockingSound

ref EffectSound m_LockingSound
protected

Definition at line 5023 of file itembase.c.

◆ m_LockSoundSet

string m_LockSoundSet
protected

Definition at line 5024 of file itembase.c.

◆ m_LockType

int m_LockType
protected

Definition at line 5022 of file itembase.c.

◆ m_MaxOverheatingValue

int m_MaxOverheatingValue = 0
private

Definition at line 5007 of file itembase.c.

◆ m_OnBulletCasingEjectEffect

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

Definition at line 4997 of file itembase.c.

◆ m_OnFireEffect

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

Definition at line 4996 of file itembase.c.

◆ m_OnOverheatingEffect

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

Definition at line 4998 of file itembase.c.

◆ m_OverheatingDecayInterval

float m_OverheatingDecayInterval = 1
private

Definition at line 5008 of file itembase.c.

◆ m_OverheatingParticles

ref array<ref OverheatingParticle> m_OverheatingParticles
private

Definition at line 5009 of file itembase.c.

◆ m_OverheatingShots

float m_OverheatingShots
private

Definition at line 5004 of file itembase.c.

◆ m_PhysDropTimer

ref Timer m_PhysDropTimer
protected

Definition at line 5018 of file itembase.c.

◆ m_QuickBarBonus

int m_QuickBarBonus

Definition at line 4956 of file itembase.c.

◆ m_RecipesInitialized

bool m_RecipesInitialized

Definition at line 4919 of file itembase.c.

◆ m_ShotsToStartOverheating

int m_ShotsToStartOverheating = 0
private

Definition at line 5006 of file itembase.c.

◆ m_SingleUseActions

ref TIntArray m_SingleUseActions
protected

Definition at line 4983 of file itembase.c.

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

◆ m_SoundDeploy

EffectSound m_SoundDeploy
protected

Definition at line 9739 of file itembase.c.

◆ m_SoundDeployFinish

EffectSound m_SoundDeployFinish
protected

Definition at line 9736 of file itembase.c.

◆ m_SoundPlace

EffectSound m_SoundPlace
protected

Definition at line 9737 of file itembase.c.

◆ m_SoundSyncPlay

int m_SoundSyncPlay
protected

Definition at line 5028 of file itembase.c.

◆ m_SoundSyncSlotID

int m_SoundSyncSlotID = InventorySlots.INVALID
protected

Definition at line 5030 of file itembase.c.

◆ m_SoundSyncStop

int m_SoundSyncStop
protected

Definition at line 5029 of file itembase.c.

◆ m_StoreLoadedQuantity

float m_StoreLoadedQuantity = float.LOWEST

Definition at line 4932 of file itembase.c.

◆ m_TemperaturePerQuantityWeight

float m_TemperaturePerQuantityWeight
private

Definition at line 5035 of file itembase.c.

◆ m_ThrowItemOnDrop

bool m_ThrowItemOnDrop

Definition at line 4960 of file itembase.c.

◆ m_VarLiquidType

◆ m_VarQuantity

float m_VarQuantity

Definition at line 4925 of file itembase.c.

◆ m_VarQuantityInit

int m_VarQuantityInit

Definition at line 4927 of file itembase.c.

◆ m_VarQuantityMax

int m_VarQuantityMax

Definition at line 4929 of file itembase.c.

◆ m_VarQuantityMin

int m_VarQuantityMin

Definition at line 4928 of file itembase.c.

◆ m_VarQuantityPrev

float m_VarQuantityPrev

Definition at line 4926 of file itembase.c.

◆ m_VarStackMax

float m_VarStackMax

Definition at line 4931 of file itembase.c.

◆ m_VarWet

float m_VarWet

Definition at line 4934 of file itembase.c.

◆ m_VarWetInit

float m_VarWetInit

Definition at line 4936 of file itembase.c.

◆ m_VarWetMax

float m_VarWetMax

Definition at line 4938 of file itembase.c.

◆ m_VarWetMin

float m_VarWetMin

Definition at line 4937 of file itembase.c.

◆ m_VarWetPrev

float m_VarWetPrev

Definition at line 4935 of file itembase.c.

◆ m_WantPlayImpactSound

bool m_WantPlayImpactSound

Definition at line 4945 of file itembase.c.

◆ m_WeaponTypeToID

ref map<string, int> m_WeaponTypeToID
staticprivate

Definition at line 4999 of file itembase.c.