Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
itembase.c File Reference

Go to the source code of this file.

Classes

class  ItemBase
class  ItemBaseType
class  InventoryItem

Typedefs

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

Functions

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

Variables

TInputActionMap m_InputActionMap
bool m_ActionsInitialize
bool m_RecipesInitialized
float m_VarQuantity
float m_VarQuantityPrev
int m_VarQuantityInit
int m_VarQuantityMin
int m_VarQuantityMax
int m_Count
float m_VarStackMax
float m_StoreLoadedQuantity = float.LOWEST
float m_VarWet
float m_VarWetPrev
float m_VarWetInit
float m_VarWetMin
float m_VarWetMax
int m_Cleanness
int m_CleannessInit
int m_CleannessMin
int m_CleannessMax
bool m_WantPlayImpactSound
bool m_CanPlayImpactSound = true
float m_ImpactSpeed
int m_ImpactSoundSurfaceHash
float m_HeatIsolation
float m_ItemModelLength
float m_ItemAttachOffset
int m_LiquidContainerMask
int m_VarLiquidType
int m_ItemBehaviour
int m_QuickBarBonus
bool m_IsBeingPlaced
bool m_IsHologram
bool m_IsTakeable
bool m_ThrowItemOnDrop
bool m_ItemBeingDroppedPhys
bool m_CanBeMovedOverride
bool m_FixDamageSystemInit = false
bool can_this_be_combined
bool m_CanThisBeSplit
bool m_IsStoreLoad = false
bool m_CanShowQuantity
bool m_HasQuantityBar
bool m_CanBeDigged
bool m_IsResultOfSplit string m_SoundAttType
 distinguish if item has been created as new or it came from splitting (server only flag)
int m_ColorComponentR
int m_ColorComponentG
int m_ColorComponentB
int m_ColorComponentA
ItemBase m_LightSourceItem
ref TIntArray m_SingleUseActions
ref TIntArray m_ContinuousActions
ref TIntArray m_InteractActions
ref TStringArray m_HeadHidingSelections
bool m_HideSelectionsBySlot
PluginAdminLog m_AdminLog
ref Timer m_PhysDropTimer
ref array< intm_CompatibleLocks
int m_LockType
ref EffectSound m_LockingSound
string m_LockSoundSet
const int ITEM_SOUNDS_MAX = 63
int m_SoundSyncPlay
int m_SoundSyncStop
int m_SoundSyncSlotID = InventorySlots.INVALID
EffectSound m_SoundDeployFinish
EffectSound m_SoundPlace
EffectSound m_DeployLoopSoundEx
EffectSound m_SoundDeploy
bool m_IsPlaceSound
bool m_IsDeploySound
bool m_IsSoundSynchRemote

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

◆ AddLightSourceItem()

void SpawnItemOnLocation::AddLightSourceItem ( ItemBase lightsource)
protected

Adds a light source child.

Definition at line 9640 of file itembase.c.

◆ AddQuantity()

bool SpawnItemOnLocation::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.

◆ AddWet()

override void SpawnItemOnLocation::AddWet ( float value)
protected

Definition at line 8611 of file itembase.c.

◆ AffectLiquidContainerOnFill()

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

from enviro source

◆ AffectLiquidContainerOnTransfer()

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

from other liquid container source

◆ AfterStoreLoad()

override void SpawnItemOnLocation::AfterStoreLoad ( )
protected

Definition at line 8139 of file itembase.c.

◆ AllowFoodConsumption()

bool SpawnItemOnLocation::AllowFoodConsumption ( )
protected

Definition at line 8721 of file itembase.c.

◆ CanBeCombined()

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

Definition at line 7092 of file itembase.c.

◆ CanBeConsumed()

bool SpawnItemOnLocation::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 SpawnItemOnLocation::CanBeCooked ( )
protected

Definition at line 7556 of file itembase.c.

◆ CanBeCookedOnStick()

bool SpawnItemOnLocation::CanBeCookedOnStick ( )
protected

Definition at line 7561 of file itembase.c.

◆ CanBeDisinfected()

bool SpawnItemOnLocation::CanBeDisinfected ( )
protected

Definition at line 8168 of file itembase.c.

◆ CanBeMovedOverride()

bool SpawnItemOnLocation::CanBeMovedOverride ( )
protected

Definition at line 7600 of file itembase.c.

◆ CanBeUsedForSuicide()

bool SpawnItemOnLocation::CanBeUsedForSuicide ( )
protected

Definition at line 9720 of file itembase.c.

◆ CanDecay()

BrisketSpread Edible_Base CanDecay ( )
protected

Definition at line 9523 of file itembase.c.

◆ CanDisplayCargo()

override bool SpawnItemOnLocation::CanDisplayCargo ( )
protected

Definition at line 9043 of file itembase.c.

◆ CanEat()

bool SpawnItemOnLocation::CanEat ( )
protected

Definition at line 7531 of file itembase.c.

◆ CanExplodeInFire()

bool SpawnItemOnLocation::CanExplodeInFire ( )
protected

Definition at line 7525 of file itembase.c.

◆ CanHaveWetness()

bool SpawnItemOnLocation::CanHaveWetness ( )
protected

Definition at line 9536 of file itembase.c.

◆ CanPlayDeployLoopSound()

bool SpawnItemOnLocation::CanPlayDeployLoopSound ( )
protected

Definition at line 9753 of file itembase.c.

◆ CanProcessDecay()

override bool CanProcessDecay ( )
protected

Definition at line 9529 of file itembase.c.

◆ CanPutAsAttachment()

override bool SpawnItemOnLocation::CanPutAsAttachment ( EntityAI parent)
protected

Definition at line 9066 of file itembase.c.

◆ CanPutInCargo()

override bool SpawnItemOnLocation::CanPutInCargo ( EntityAI parent)
protected

Definition at line 9052 of file itembase.c.

◆ CanReceiveAttachment()

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

Definition at line 9090 of file itembase.c.

◆ CanReceiveItemIntoCargo()

override bool SpawnItemOnLocation::CanReceiveItemIntoCargo ( EntityAI item)
protected

Definition at line 9081 of file itembase.c.

◆ CanReleaseAttachment()

override bool SpawnItemOnLocation::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 9111 of file itembase.c.

◆ CanRepair()

bool SpawnItemOnLocation::CanRepair ( ItemBase item_repair_kit)
protected

Definition at line 7571 of file itembase.c.

◆ CheckForRoofLimited()

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

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

Definition at line 8971 of file itembase.c.

◆ ClearInventory()

override void SpawnItemOnLocation::ClearInventory ( )
protected

Definition at line 8504 of file itembase.c.

◆ ClearStartItemSoundServer()

void SpawnItemOnLocation::ClearStartItemSoundServer ( )
protected

Definition at line 9390 of file itembase.c.

◆ ClearStopItemSoundServer()

void SpawnItemOnLocation::ClearStopItemSoundServer ( )
protected

Definition at line 9396 of file itembase.c.

◆ Close()

void SpawnItemOnLocation::Close ( )
protected

◆ CombineItems()

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

Definition at line 7198 of file itembase.c.

◆ CombineItemsEx()

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

Definition at line 7193 of file itembase.c.

◆ ComputeQuantityUsed()

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

Definition at line 7169 of file itembase.c.

◆ ComputeQuantityUsedEx()

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

Definition at line 7174 of file itembase.c.

◆ ContainsAgent()

bool SpawnItemOnLocation::ContainsAgent ( int agent_id)
protected

Definition at line 8863 of file itembase.c.

◆ ConvertEnergyToQuantity()

void SpawnItemOnLocation::ConvertEnergyToQuantity ( )
protected

Definition at line 8551 of file itembase.c.

◆ CopyScriptPropertiesFrom()

void SpawnItemOnLocation::CopyScriptPropertiesFrom ( EntityAI oldItem)
protected

Definition at line 9634 of file itembase.c.

◆ DeSerializeNumericalVars()

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

Definition at line 7824 of file itembase.c.

◆ EEHealthLevelChanged()

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

drops content of container when ruined in fireplace

Definition at line 6976 of file itembase.c.

◆ EEOnAfterLoad()

override void SpawnItemOnLocation::EEOnAfterLoad ( )
protected

Definition at line 8155 of file itembase.c.

◆ EEOnCECreate()

override void SpawnItemOnLocation::EEOnCECreate ( )
protected

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

Definition at line 9023 of file itembase.c.

◆ GetActionWidgetOverride()

bool SpawnItemOnLocation::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()

override int SpawnItemOnLocation::GetAgents ( )
protected

Definition at line 8910 of file itembase.c.

◆ GetAttachmentSoundType()

override string SpawnItemOnLocation::GetAttachmentSoundType ( )
protected

Definition at line 9314 of file itembase.c.

◆ GetBaitEffectivity()

float SpawnItemOnLocation::GetBaitEffectivity ( )
protected

generic effectivity as a bait for animal catching

Definition at line 9692 of file itembase.c.

◆ GetBandagingEffectivity()

float SpawnItemOnLocation::GetBandagingEffectivity ( )
protected

Definition at line 9403 of file itembase.c.

◆ GetCleanness()

override int SpawnItemOnLocation::GetCleanness ( )
protected

Definition at line 8716 of file itembase.c.

◆ GetColor()

override void SpawnItemOnLocation::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 SpawnItemOnLocation::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.

◆ GetDebugActions()

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

Definition at line 7253 of file itembase.c.

◆ GetDeployFinishSoundset()

string SpawnItemOnLocation::GetDeployFinishSoundset ( )
protected

◆ GetDeploySoundset()

string SpawnItemOnLocation::GetDeploySoundset ( )
protected

Definition at line 2611 of file fireplacebase.c.

◆ GetDeployTime()

float SpawnItemOnLocation::GetDeployTime ( )
protected

how long it takes to deploy this item in seconds

Definition at line 9276 of file itembase.c.

◆ GetDryingIncrement()

float SpawnItemOnLocation::GetDryingIncrement ( string pIncrementName)
protected

Definition at line 8574 of file itembase.c.

◆ GetEnergy()

float SpawnItemOnLocation::GetEnergy ( )
protected

Definition at line 8525 of file itembase.c.

◆ GetFoldSoundset()

string SpawnItemOnLocation::GetFoldSoundset ( )
protected

Definition at line 1417 of file basebuildingbase.c.

◆ GetFoodStage()

FoodStage SpawnItemOnLocation::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 > SpawnItemOnLocation::GetHeadHidingSelection ( )
protected

Definition at line 9408 of file itembase.c.

◆ GetHeatIsolation()

float SpawnItemOnLocation::GetHeatIsolation ( )
protected

Definition at line 8569 of file itembase.c.

◆ GetHeatIsolationInit()

float SpawnItemOnLocation::GetHeatIsolationInit ( )
protected

Definition at line 8564 of file itembase.c.

◆ GetItemAttachOffset()

float SpawnItemOnLocation::GetItemAttachOffset ( )
protected

Definition at line 8694 of file itembase.c.

◆ GetItemModelLength()

float SpawnItemOnLocation::GetItemModelLength ( )
protected

Definition at line 8685 of file itembase.c.

◆ GetItemOverheatThreshold()

override float SpawnItemOnLocation::GetItemOverheatThreshold ( )
protected

Definition at line 9600 of file itembase.c.

◆ GetItemSize()

int SpawnItemOnLocation::GetItemSize ( )
protected

Definition at line 7585 of file itembase.c.

◆ GetItemSoundHandler()

ItemSoundHandler SpawnItemOnLocation::GetItemSoundHandler ( )
protected

Definition at line 9329 of file itembase.c.

◆ GetLightSourceItem()

ItemBase SpawnItemOnLocation::GetLightSourceItem ( )
protected

Definition at line 9650 of file itembase.c.

◆ GetLiquidType()

override int SpawnItemOnLocation::GetLiquidType ( )
protected

Definition at line 8794 of file itembase.c.

◆ GetLiquidTypeInit()

int SpawnItemOnLocation::GetLiquidTypeInit ( )
protected

Definition at line 8789 of file itembase.c.

◆ GetLockSoundSet()

string SpawnItemOnLocation::GetLockSoundSet ( )
protected

Definition at line 8734 of file itembase.c.

◆ GetLockType()

int SpawnItemOnLocation::GetLockType ( )
protected

Definition at line 8729 of file itembase.c.

◆ GetLoopDeploySoundset()

string SpawnItemOnLocation::GetLoopDeploySoundset ( )
protected

Definition at line 151 of file largetent.c.

◆ GetLoopFoldSoundset()

string SpawnItemOnLocation::GetLoopFoldSoundset ( )
protected

Definition at line 1422 of file basebuildingbase.c.

◆ GetNumberOfItems()

int SpawnItemOnLocation::GetNumberOfItems ( )
protected

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

Definition at line 8462 of file itembase.c.

◆ GetPlaceSoundset()

string SpawnItemOnLocation::GetPlaceSoundset ( )
protected

◆ GetProtectionLevel()

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

Definition at line 8984 of file itembase.c.

◆ GetQuantity()

override float SpawnItemOnLocation::GetQuantity ( )
protected

Definition at line 8398 of file itembase.c.

◆ GetQuantityInit()

int SpawnItemOnLocation::GetQuantityInit ( )
protected

Definition at line 8387 of file itembase.c.

◆ GetQuantityMax()

override int SpawnItemOnLocation::GetQuantityMax ( )
protected

Definition at line 8349 of file itembase.c.

◆ GetQuantityMin()

override int SpawnItemOnLocation::GetQuantityMin ( )
protected

Definition at line 8382 of file itembase.c.

◆ GetQuantityNormalized()

override float SpawnItemOnLocation::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.

◆ GetQuantityNormalizedScripted()

override float GetQuantityNormalizedScripted ( )
protected

Definition at line 8335 of file itembase.c.

◆ GetRecipesActions()

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

Definition at line 7232 of file itembase.c.

◆ GetSingleInventoryItemWeight()

float SpawnItemOnLocation::GetSingleInventoryItemWeight ( )
protected

Definition at line 8418 of file itembase.c.

◆ GetSingleInventoryItemWeightEx()

override float SpawnItemOnLocation::GetSingleInventoryItemWeightEx ( )
protected

Definition at line 8409 of file itembase.c.

◆ GetSoakingIncrement()

float SpawnItemOnLocation::GetSoakingIncrement ( string pIncrementName)
protected

Definition at line 8583 of file itembase.c.

◆ GetStoreLoadedQuantity()

override float SpawnItemOnLocation::GetStoreLoadedQuantity ( )
protected

Definition at line 8678 of file itembase.c.

◆ GetTargetQuantityMax()

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

Definition at line 8363 of file itembase.c.

◆ GetTemperatureFreezeThreshold()

override float SpawnItemOnLocation::GetTemperatureFreezeThreshold ( )
protected

Definition at line 9584 of file itembase.c.

◆ GetTemperatureFreezeTime()

override float SpawnItemOnLocation::GetTemperatureFreezeTime ( )
protected

Definition at line 9608 of file itembase.c.

◆ GetTemperaturePerQuantityWeight()

float SpawnItemOnLocation::GetTemperaturePerQuantityWeight ( )
protected

Used in heat comfort calculations only!

Definition at line 9579 of file itembase.c.

◆ GetTemperatureThawThreshold()

override float SpawnItemOnLocation::GetTemperatureThawThreshold ( )
protected

Definition at line 9592 of file itembase.c.

◆ GetTemperatureThawTime()

override float SpawnItemOnLocation::GetTemperatureThawTime ( )
protected

Definition at line 9616 of file itembase.c.

◆ GetUnitWeight()

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

Obsolete, use GetWeightEx instead.

Definition at line 8485 of file itembase.c.

◆ GetValidFinishers()

array< int > SpawnItemOnLocation::GetValidFinishers ( )
protected

returns an array of possible finishers

Definition at line 9656 of file itembase.c.

◆ GetWeightSpecialized()

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

Definition at line 8423 of file itembase.c.

◆ GetWet()

override float SpawnItemOnLocation::GetWet ( )
protected

Definition at line 8621 of file itembase.c.

◆ GetWetInit()

override float SpawnItemOnLocation::GetWetInit ( )
protected

Definition at line 8636 of file itembase.c.

◆ GetWetLevel()

override EWetnessLevel SpawnItemOnLocation::GetWetLevel ( )
protected

Definition at line 8656 of file itembase.c.

◆ GetWetMax()

override float SpawnItemOnLocation::GetWetMax ( )
protected

Definition at line 8626 of file itembase.c.

◆ GetWetMin()

override float SpawnItemOnLocation::GetWetMin ( )
protected

Definition at line 8631 of file itembase.c.

◆ GetWrittenNoteData()

WrittenNoteData SpawnItemOnLocation::GetWrittenNoteData ( )
protected

Definition at line 9418 of file itembase.c.

◆ HasFoodStage()

bool SpawnItemOnLocation::HasFoodStage ( )
protected

Definition at line 7544 of file itembase.c.

◆ HasQuantity()

override bool SpawnItemOnLocation::HasQuantity ( )
protected

Definition at line 8393 of file itembase.c.

◆ HidesSelectionBySlot()

bool SpawnItemOnLocation::HidesSelectionBySlot ( )
protected

Definition at line 9413 of file itembase.c.

◆ HierarchyCheck()

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

Definition at line 9501 of file itembase.c.

◆ IDToName()

string SpawnItemOnLocation::IDToName ( int id)
protected

Definition at line 7767 of file itembase.c.

◆ InitItemSounds()

void SpawnItemOnLocation::InitItemSounds ( )
protected

Definition at line 9338 of file itembase.c.

◆ InsertAgent()

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

Definition at line 8895 of file itembase.c.

◆ IsActionTargetVisible()

bool SpawnItemOnLocation::IsActionTargetVisible ( )
protected

Definition at line 9296 of file itembase.c.

◆ IsCargoException4x3()

bool SpawnItemOnLocation::IsCargoException4x3 ( EntityAI item)
protected

Definition at line 9629 of file itembase.c.

◆ IsColorSet()

bool SpawnItemOnLocation::IsColorSet ( )
protected

Definition at line 8759 of file itembase.c.

◆ IsCombineAll()

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

Definition at line 7154 of file itembase.c.

◆ IsCoverFaceForShave()

bool SpawnItemOnLocation::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 SpawnItemOnLocation::IsDeployable ( )
protected

Definition at line 9270 of file itembase.c.

◆ IsDeploySound()

bool SpawnItemOnLocation::IsDeploySound ( )
protected

Definition at line 9756 of file itembase.c.

◆ IsFullQuantity()

bool SpawnItemOnLocation::IsFullQuantity ( )
protected

Definition at line 8403 of file itembase.c.

◆ IsHeavyBehaviour()

override bool SpawnItemOnLocation::IsHeavyBehaviour ( )
protected

Definition at line 9240 of file itembase.c.

◆ IsIgnoredByConstruction()

override bool SpawnItemOnLocation::IsIgnoredByConstruction ( )
protected

Definition at line 7537 of file itembase.c.

◆ IsItemBase()

override bool SpawnItemOnLocation::IsItemBase ( )
protected

Definition at line 7684 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool SpawnItemOnLocation::IsOneHandedBehaviour ( )
protected

Definition at line 9250 of file itembase.c.

◆ IsOpen()

override bool IsOpen ( )
protected

Definition at line 9038 of file itembase.c.

◆ IsPlaceSound()

bool SpawnItemOnLocation::IsPlaceSound ( )
protected

Definition at line 9755 of file itembase.c.

◆ IsResultOfSplit()

bool SpawnItemOnLocation::IsResultOfSplit ( )
protected

Definition at line 7159 of file itembase.c.

◆ IsSoundSynchRemote()

bool SpawnItemOnLocation::IsSoundSynchRemote ( )
protected

Definition at line 9754 of file itembase.c.

◆ IsStoreLoad()

override bool SpawnItemOnLocation::IsStoreLoad ( )
protected

Definition at line 8668 of file itembase.c.

◆ IsTakeable()

override bool SpawnItemOnLocation::IsTakeable ( )
protected

Definition at line 9290 of file itembase.c.

◆ IsTwoHandedBehaviour()

override bool SpawnItemOnLocation::IsTwoHandedBehaviour ( )
protected

Definition at line 9260 of file itembase.c.

◆ KindOf()

override bool SpawnItemOnLocation::KindOf ( string tag)
protected

Definition at line 7690 of file itembase.c.

◆ LoadAgents()

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

Definition at line 8956 of file itembase.c.

◆ MessageToOwnerAction()

void SpawnItemOnLocation::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 SpawnItemOnLocation::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 SpawnItemOnLocation::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 SpawnItemOnLocation::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 SpawnItemOnLocation::NameToID ( string name)
protected

Definition at line 7761 of file itembase.c.

◆ OnAction()

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

Definition at line 7313 of file itembase.c.

◆ OnActivatedByItem()

void SpawnItemOnLocation::OnActivatedByItem ( notnull ItemBase item)
protected

Called when this item is activated by other.

Definition at line 305 of file remotedetonator.c.

◆ OnActivatedByTripWire()

void SpawnItemOnLocation::OnActivatedByTripWire ( )
protected

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

◆ OnApply()

void SpawnItemOnLocation::OnApply ( PlayerBase player)
protected

◆ OnAttachmentQuantityChanged()

void SpawnItemOnLocation::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.

◆ OnAttachmentQuantityChangedEx()

void SpawnItemOnLocation::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 SpawnItemOnLocation::OnCombine ( ItemBase other_item)
protected

Definition at line 7224 of file itembase.c.

◆ OnEnergyAdded()

override void SpawnItemOnLocation::OnEnergyAdded ( )
protected

Definition at line 8543 of file itembase.c.

◆ OnEnergyConsumed()

override void SpawnItemOnLocation::OnEnergyConsumed ( )
protected

Definition at line 8536 of file itembase.c.

◆ OnInventoryEnter()

void SpawnItemOnLocation::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 SpawnItemOnLocation::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.

◆ OnLiquidTypeChanged()

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

Definition at line 8799 of file itembase.c.

◆ OnPlacementComplete()

override void SpawnItemOnLocation::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 SpawnItemOnLocation::OnPlacementStarted ( Man player)
protected

Definition at line 8842 of file itembase.c.

◆ OnQuantityChanged()

void SpawnItemOnLocation::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.

◆ OnRightClick()

override void SpawnItemOnLocation::OnRightClick ( )
protected

Definition at line 7014 of file itembase.c.

◆ OnRPC()

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

Definition at line 7710 of file itembase.c.

◆ OnStoreLoad()

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

Definition at line 8010 of file itembase.c.

◆ OnStoreSave()

override void SpawnItemOnLocation::OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 8111 of file itembase.c.

◆ OnSyncVariables()

void SpawnItemOnLocation::OnSyncVariables ( ParamsReadContext ctx)
protected

DEPRECATED (most likely).

Definition at line 7774 of file itembase.c.

◆ OnVariablesSynchronized()

override void SpawnItemOnLocation::OnVariablesSynchronized ( )
protected

Definition at line 8175 of file itembase.c.

◆ OnWetChanged()

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

Definition at line 8641 of file itembase.c.

◆ OnWetLevelChanged()

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

Definition at line 8651 of file itembase.c.

◆ Open()

void SpawnItemOnLocation::Open ( )
protected

Implementations only.

Definition at line 23 of file chamberfirstinnermagazinesemiautomatic_base.c.

◆ PairWithDevice()

bool SpawnItemOnLocation::PairWithDevice ( notnull ItemBase otherDevice)
protected

Definition at line 9667 of file itembase.c.

◆ PerformDamageSystemReinit()

void SpawnItemOnLocation::PerformDamageSystemReinit ( )
protected

Definition at line 9426 of file itembase.c.

◆ PlayAttachSound()

void SpawnItemOnLocation::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.

◆ PlayDeployFinishSound()

void SpawnItemOnLocation::PlayDeployFinishSound ( )
protected

◆ PlayDeployLoopSoundEx()

void SpawnItemOnLocation::PlayDeployLoopSoundEx ( )
protected

◆ PlayDeploySound()

void SpawnItemOnLocation::PlayDeploySound ( )
protected

◆ PlayDetachSound()

void SpawnItemOnLocation::PlayDetachSound ( string slot_type)
protected

Definition at line 9798 of file itembase.c.

◆ PlayPlaceSound()

void SpawnItemOnLocation::PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void SpawnItemOnLocation::PreLoadSoundAttachmentType ( )
protected

Attachment Sound Type getting from config file.

Definition at line 9302 of file itembase.c.

◆ ProcessDecay()

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

Definition at line 9518 of file itembase.c.

◆ ProcessItemTemperature()

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

Definition at line 9481 of file itembase.c.

◆ ProcessItemWetness()

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

Definition at line 9456 of file itembase.c.

◆ ProcessItemWetnessAndTemperature()

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

Definition at line 9729 of file itembase.c.

◆ ProcessVariables()

override void SpawnItemOnLocation::ProcessVariables ( )
protected

Definition at line 9548 of file itembase.c.

◆ ReadVarsFromCTX()

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

Definition at line 7919 of file itembase.c.

◆ RefreshAudioVisualsOnClient()

void SpawnItemOnLocation::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.

◆ RemoveAgent()

override void SpawnItemOnLocation::RemoveAgent ( int agent_id)
protected

Definition at line 8876 of file itembase.c.

◆ RemoveAllAgents()

override void SpawnItemOnLocation::RemoveAllAgents ( )
protected

Definition at line 8885 of file itembase.c.

◆ RemoveAllAgentsExcept()

override void SpawnItemOnLocation::RemoveAllAgentsExcept ( int agent_to_keep)
protected

Definition at line 8890 of file itembase.c.

◆ RemoveAudioVisualsOnClient()

void SpawnItemOnLocation::RemoveAudioVisualsOnClient ( )
protected

Definition at line 151 of file bottle_base.c.

◆ RemoveLightSourceItem()

void SpawnItemOnLocation::RemoveLightSourceItem ( )
protected

Definition at line 9645 of file itembase.c.

◆ Repair()

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

Definition at line 7578 of file itembase.c.

◆ SaveAgents()

void SpawnItemOnLocation::SaveAgents ( ParamsWriteContext ctx)
protected

Definition at line 8963 of file itembase.c.

◆ SerializeNumericalVars()

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

Definition at line 7788 of file itembase.c.

◆ SetCanBeMovedOverride()

void SpawnItemOnLocation::SetCanBeMovedOverride ( bool setting)
protected

Definition at line 7607 of file itembase.c.

◆ SetCleanness()

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

Definition at line 8703 of file itembase.c.

◆ SetColor()

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

Definition at line 8742 of file itembase.c.

◆ SetInventoryLocationToVicinityOrCurrent()

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

Definition at line 7078 of file itembase.c.

◆ SetIsDeploySound()

void SpawnItemOnLocation::SetIsDeploySound ( bool is_deploy_sound)
protected

◆ SetIsPlaceSound()

void SpawnItemOnLocation::SetIsPlaceSound ( bool is_place_sound)
protected

◆ SetLiquidType()

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

Definition at line 8778 of file itembase.c.

◆ SetQuantity()

override bool SpawnItemOnLocation::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.

◆ SetQuantityMax()

void SpawnItemOnLocation::SetQuantityMax ( )
protected

Definition at line 8308 of file itembase.c.

◆ SetQuantityNormalized()

override void SpawnItemOnLocation::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.

◆ SetQuantityToMinimum()

override void SpawnItemOnLocation::SetQuantityToMinimum ( )
protected

Definition at line 8314 of file itembase.c.

◆ SetResultOfSplit()

void SpawnItemOnLocation::SetResultOfSplit ( bool value)
protected

Definition at line 7164 of file itembase.c.

◆ SetStoreLoad()

override void SpawnItemOnLocation::SetStoreLoad ( bool value)
protected

Definition at line 8663 of file itembase.c.

◆ SetStoreLoadedQuantity()

override void SpawnItemOnLocation::SetStoreLoadedQuantity ( float value)
protected

Definition at line 8673 of file itembase.c.

◆ SetTakeable()

override void SpawnItemOnLocation::SetTakeable ( bool pState)
protected

Definition at line 9284 of file itembase.c.

◆ SetupSpawnedItem()

void SetupSpawnedItem ( ItemBase item,
float health,
float quantity )

Definition at line 4931 of file itembase.c.

◆ SetWet()

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

Definition at line 8592 of file itembase.c.

◆ SetWetMax()

override void SpawnItemOnLocation::SetWetMax ( )
protected

Definition at line 8616 of file itembase.c.

◆ SetZoneDamageCEInit()

void SpawnItemOnLocation::SetZoneDamageCEInit ( )
protected

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

Definition at line 9438 of file itembase.c.

◆ ShouldSplitQuantity()

bool SpawnItemOnLocation::ShouldSplitQuantity ( float quantity)
protected

Definition at line 6503 of file itembase.c.

◆ SoundSynchRemote()

void SpawnItemOnLocation::SoundSynchRemote ( )
protected

◆ SoundSynchRemoteReset()

void SpawnItemOnLocation::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.

◆ SplitIntoStackMax()

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

Definition at line 6546 of file itembase.c.

◆ SplitIntoStackMaxCargo()

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

Definition at line 6796 of file itembase.c.

◆ SplitIntoStackMaxCargoClient()

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

Definition at line 6732 of file itembase.c.

◆ SplitIntoStackMaxClient()

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

Definition at line 6523 of file itembase.c.

◆ SplitIntoStackMaxEx()

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

Definition at line 6633 of file itembase.c.

◆ SplitIntoStackMaxHands()

void SpawnItemOnLocation::SplitIntoStackMaxHands ( PlayerBase player)
protected

Definition at line 6847 of file itembase.c.

◆ SplitIntoStackMaxHandsClient()

void SpawnItemOnLocation::SplitIntoStackMaxHandsClient ( PlayerBase player)
protected

Definition at line 6823 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocation()

void SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 6757 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationClient()

void SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
protected

Definition at line 6711 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
protected

Definition at line 6762 of file itembase.c.

◆ SplitItem()

void SpawnItemOnLocation::SplitItem ( PlayerBase player)
protected

Definition at line 6908 of file itembase.c.

◆ SplitItemToInventoryLocation()

void SpawnItemOnLocation::SplitItemToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 6875 of file itembase.c.

◆ StartItemSoundServer() [1/2]

void SpawnItemOnLocation::StartItemSoundServer ( int id)
protected

Definition at line 9372 of file itembase.c.

◆ StartItemSoundServer() [2/2]

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

Definition at line 9358 of file itembase.c.

◆ StopDeployLoopSoundEx()

void SpawnItemOnLocation::StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void SpawnItemOnLocation::StopItemDynamicPhysics ( )
protected

Definition at line 9420 of file itembase.c.

◆ StopItemSoundServer()

void SpawnItemOnLocation::StopItemSoundServer ( int id)
protected

Definition at line 9378 of file itembase.c.

◆ TransferAgents()

void SpawnItemOnLocation::TransferAgents ( int agents)
protected

transfer agents from another item

Definition at line 8904 of file itembase.c.

◆ UpdateQuickbarShortcutVisibility()

void SpawnItemOnLocation::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 SpawnItemOnLocation::UsesGlobalDeploy ( )
protected

Definition at line 9752 of file itembase.c.

◆ WriteVarsToCTX()

override void SpawnItemOnLocation::WriteVarsToCTX ( ParamsWriteContext ctx)
protected

Definition at line 7883 of file itembase.c.

Variable Documentation

◆ can_this_be_combined

bool can_this_be_combined

Definition at line 4964 of file itembase.c.

◆ 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_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_Cleanness

int m_Cleanness

Definition at line 4940 of file itembase.c.

◆ 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_DeployLoopSoundEx

EffectSound m_DeployLoopSoundEx
protected

Definition at line 9738 of file itembase.c.

◆ m_FixDamageSystemInit

bool m_FixDamageSystemInit = false

Definition at line 4963 of file itembase.c.

◆ 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.

◆ 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_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

Definition at line 4966 of file itembase.c.

◆ m_IsTakeable

bool m_IsTakeable

Definition at line 4959 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_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_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_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_ThrowItemOnDrop

bool m_ThrowItemOnDrop

Definition at line 4960 of file itembase.c.

◆ m_VarLiquidType

int m_VarLiquidType

Definition at line 4954 of file itembase.c.

◆ 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.