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

Go to the source code of this file.

Classes

class  ItemBase
 
class  InventoryItem
 

Typedefs

typedef ItemBase Inventory_Base
 
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)
 
void StopItemSoundServer (int id)
 
void ClearStartItemSoundServer ()
 
void ClearStopItemSoundServer ()
 
void PlayAttachSound (string slot_type)
 Plays sound on item attach. Be advised, the config structure may slightly change in 1.11 update to allow for more complex use.
 
void PlayDetachSound (string slot_type)
 
void OnApply (PlayerBase player)
 
float GetBandagingEffectivity ()
 
array< stringGetHeadHidingSelection ()
 
bool HidesSelectionBySlot ()
 
WrittenNoteData GetWrittenNoteData ()
 
void StopItemDynamicPhysics ()
 
void PerformDamageSystemReinit ()
 
void SetZoneDamageCEInit ()
 Sets zone damages to match randomized global health set by CE (CE spawn only)
 
bool IsCoverFaceForShave (string slot_name)
 DEPRECATED in use, but returns correct values nontheless. Check performed elsewhere.
 
void ProcessItemWetness (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
 
void ProcessItemTemperature (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
 
void HierarchyCheck (out bool hasParent, out bool hasRootAsPlayer, out ItemBase refParentIB)
 
void ProcessDecay (float delta, bool hasRootAsPlayer)
 
bool CanDecay ()
 
bool CanProcessDecay ()
 
bool CanHaveWetness ()
 
bool CanBeConsumed (ConsumeConditionData data=null)
 Items cannot be consumed if frozen by default. Override for exceptions.
 
override void ProcessVariables ()
 
float GetTemperaturePerQuantityWeight ()
 Used in heat comfort calculations only!
 
override float GetTemperatureFreezeThreshold ()
 
override float GetTemperatureThawThreshold ()
 
override float GetItemOverheatThreshold ()
 
override float GetTemperatureFreezeTime ()
 
override float GetTemperatureThawTime ()
 
void AffectLiquidContainerOnFill (int liquid_type, float amount)
 from enviro source
 
void AffectLiquidContainerOnTransfer (int liquidType, float amount, float sourceLiquidTemperature)
 from other liquid container source
 
bool IsCargoException4x3 (EntityAI item)
 
void CopyScriptPropertiesFrom (EntityAI oldItem)
 
void AddLightSourceItem (ItemBase lightsource)
 Adds a light source child.
 
void RemoveLightSourceItem ()
 
ItemBase GetLightSourceItem ()
 
array< intGetValidFinishers ()
 returns an array of possible finishers
 
bool GetActionWidgetOverride (out typename name)
 If we need a different (handheld)item action widget displayed, the logic goes in here.
 
bool PairWithDevice (notnull ItemBase otherDevice)
 
float GetBaitEffectivity ()
 generic effectivity as a bait for animal catching
 
bool CanBeUsedForSuicide ()
 
void ProcessItemWetnessAndTemperature (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
 
string GetDeployFinishSoundset ()
 
void PlayDeploySound ()
 
void PlayDeployFinishSound ()
 
void PlayPlaceSound ()
 
void PlayDeployLoopSoundEx ()
 
void StopDeployLoopSoundEx ()
 
void SoundSynchRemoteReset ()
 
void SoundSynchRemote ()
 
bool UsesGlobalDeploy ()
 
bool CanPlayDeployLoopSound ()
 
bool IsSoundSynchRemote ()
 
bool IsPlaceSound ()
 
bool IsDeploySound ()
 
void SetIsPlaceSound (bool is_place_sound)
 
void SetIsDeploySound (bool is_deploy_sound)
 
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
 
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.

◆ TActionAnimOverrideMap

Definition at line 2 of file itembase.c.

Function Documentation

◆ AddLightSourceItem()

void SpawnItemOnLocation::AddLightSourceItem ( ItemBase lightsource)
protected

Adds a light source child.

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

◆ AddWet()

override void SpawnItemOnLocation::AddWet ( float value)
protected

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

◆ AllowFoodConsumption()

bool SpawnItemOnLocation::AllowFoodConsumption ( )
protected

Definition at line 8616 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 7016 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 9477 of file itembase.c.

◆ CanBeCooked()

bool SpawnItemOnLocation::CanBeCooked ( )
protected

Definition at line 7478 of file itembase.c.

◆ CanBeCookedOnStick()

bool SpawnItemOnLocation::CanBeCookedOnStick ( )
protected

Definition at line 7483 of file itembase.c.

◆ CanBeDisinfected()

bool SpawnItemOnLocation::CanBeDisinfected ( )
protected

Definition at line 8090 of file itembase.c.

◆ CanBeMovedOverride()

bool SpawnItemOnLocation::CanBeMovedOverride ( )
protected

Definition at line 7522 of file itembase.c.

◆ CanBeUsedForSuicide()

bool SpawnItemOnLocation::CanBeUsedForSuicide ( )
protected

Definition at line 9654 of file itembase.c.

◆ CanDecay()

BrisketSpread Edible_Base CanDecay ( )
protected

Definition at line 9457 of file itembase.c.

◆ CanDisplayCargo()

override bool SpawnItemOnLocation::CanDisplayCargo ( )
protected

Definition at line 8943 of file itembase.c.

◆ CanEat()

bool SpawnItemOnLocation::CanEat ( )
protected

Definition at line 7453 of file itembase.c.

◆ CanExplodeInFire()

bool SpawnItemOnLocation::CanExplodeInFire ( )
protected

Definition at line 7447 of file itembase.c.

◆ CanHaveWetness()

bool SpawnItemOnLocation::CanHaveWetness ( )
protected

Definition at line 9470 of file itembase.c.

◆ CanPlayDeployLoopSound()

bool SpawnItemOnLocation::CanPlayDeployLoopSound ( )
protected

Definition at line 9687 of file itembase.c.

◆ CanProcessDecay()

override bool CanProcessDecay ( )
protected

Definition at line 9463 of file itembase.c.

◆ CanPutAsAttachment()

override bool SpawnItemOnLocation::CanPutAsAttachment ( EntityAI parent)
protected

Definition at line 8966 of file itembase.c.

◆ CanPutInCargo()

override bool SpawnItemOnLocation::CanPutInCargo ( EntityAI parent)
protected

Definition at line 8952 of file itembase.c.

◆ CanReceiveAttachment()

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

Definition at line 8990 of file itembase.c.

◆ CanReceiveItemIntoCargo()

override bool SpawnItemOnLocation::CanReceiveItemIntoCargo ( EntityAI item)
protected

Definition at line 8981 of file itembase.c.

◆ CanReleaseAttachment()

override bool SpawnItemOnLocation::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 9011 of file itembase.c.

◆ CanRepair()

bool SpawnItemOnLocation::CanRepair ( ItemBase item_repair_kit)
protected

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

◆ ClearInventory()

override void SpawnItemOnLocation::ClearInventory ( )
protected

Definition at line 8399 of file itembase.c.

◆ ClearStartItemSoundServer()

void SpawnItemOnLocation::ClearStartItemSoundServer ( )
protected

Definition at line 9283 of file itembase.c.

◆ ClearStopItemSoundServer()

void SpawnItemOnLocation::ClearStopItemSoundServer ( )
protected

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

◆ CombineItemsEx()

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

Definition at line 7117 of file itembase.c.

◆ ComputeQuantityUsed()

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

Definition at line 7093 of file itembase.c.

◆ ComputeQuantityUsedEx()

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

Definition at line 7098 of file itembase.c.

◆ ContainsAgent()

bool SpawnItemOnLocation::ContainsAgent ( int agent_id)
protected

Definition at line 8763 of file itembase.c.

◆ ConvertEnergyToQuantity()

void SpawnItemOnLocation::ConvertEnergyToQuantity ( )
protected

Definition at line 8446 of file itembase.c.

◆ CopyScriptPropertiesFrom()

void SpawnItemOnLocation::CopyScriptPropertiesFrom ( EntityAI oldItem)
protected

Definition at line 9568 of file itembase.c.

◆ DeSerializeNumericalVars()

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

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

◆ EEOnAfterLoad()

override void SpawnItemOnLocation::EEOnAfterLoad ( )
protected

Definition at line 8077 of file itembase.c.

◆ EEOnCECreate()

override void SpawnItemOnLocation::EEOnCECreate ( )
protected

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

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

◆ GetAgents()

override int SpawnItemOnLocation::GetAgents ( )
protected

Definition at line 8810 of file itembase.c.

◆ GetAttachmentSoundType()

override string SpawnItemOnLocation::GetAttachmentSoundType ( )
protected

Definition at line 9214 of file itembase.c.

◆ GetBaitEffectivity()

float SpawnItemOnLocation::GetBaitEffectivity ( )
protected

generic effectivity as a bait for animal catching

Definition at line 9626 of file itembase.c.

◆ GetBandagingEffectivity()

float SpawnItemOnLocation::GetBandagingEffectivity ( )
protected

Definition at line 9337 of file itembase.c.

◆ GetCleanness()

override int SpawnItemOnLocation::GetCleanness ( )
protected

Definition at line 8611 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 8646 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 8660 of file itembase.c.

◆ GetDebugActions()

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

Definition at line 7177 of file itembase.c.

◆ GetDeployFinishSoundset()

string SpawnItemOnLocation::GetDeployFinishSoundset ( )
protected

◆ GetDeploySoundset()

string SpawnItemOnLocation::GetDeploySoundset ( )
protected

Definition at line 2609 of file fireplacebase.c.

◆ GetDeployTime()

float SpawnItemOnLocation::GetDeployTime ( )
protected

how long it takes to deploy this item in seconds

Definition at line 9176 of file itembase.c.

◆ GetDryingIncrement()

float SpawnItemOnLocation::GetDryingIncrement ( string pIncrementName)
protected

Definition at line 8469 of file itembase.c.

◆ GetEnergy()

float SpawnItemOnLocation::GetEnergy ( )
protected

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

◆ GetHeadHidingSelection()

array< string > SpawnItemOnLocation::GetHeadHidingSelection ( )
protected

Definition at line 9342 of file itembase.c.

◆ GetHeatIsolation()

float SpawnItemOnLocation::GetHeatIsolation ( )
protected

Definition at line 8464 of file itembase.c.

◆ GetHeatIsolationInit()

float SpawnItemOnLocation::GetHeatIsolationInit ( )
protected

Definition at line 8459 of file itembase.c.

◆ GetItemAttachOffset()

float SpawnItemOnLocation::GetItemAttachOffset ( )
protected

Definition at line 8589 of file itembase.c.

◆ GetItemModelLength()

float SpawnItemOnLocation::GetItemModelLength ( )
protected

Definition at line 8580 of file itembase.c.

◆ GetItemOverheatThreshold()

override float SpawnItemOnLocation::GetItemOverheatThreshold ( )
protected

Definition at line 9534 of file itembase.c.

◆ GetItemSize()

int SpawnItemOnLocation::GetItemSize ( )
protected

Definition at line 7507 of file itembase.c.

◆ GetItemSoundHandler()

ItemSoundHandler SpawnItemOnLocation::GetItemSoundHandler ( )
protected

Definition at line 9229 of file itembase.c.

◆ GetLightSourceItem()

ItemBase SpawnItemOnLocation::GetLightSourceItem ( )
protected

Definition at line 9584 of file itembase.c.

◆ GetLiquidType()

override int SpawnItemOnLocation::GetLiquidType ( )
protected

Definition at line 8689 of file itembase.c.

◆ GetLiquidTypeInit()

int SpawnItemOnLocation::GetLiquidTypeInit ( )
protected

Definition at line 8684 of file itembase.c.

◆ GetLockSoundSet()

string SpawnItemOnLocation::GetLockSoundSet ( )
protected

Definition at line 8629 of file itembase.c.

◆ GetLockType()

int SpawnItemOnLocation::GetLockType ( )
protected

Definition at line 8624 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 8360 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 8884 of file itembase.c.

◆ GetQuantity()

override float SpawnItemOnLocation::GetQuantity ( )
protected

Definition at line 8296 of file itembase.c.

◆ GetQuantityInit()

int SpawnItemOnLocation::GetQuantityInit ( )
protected

Definition at line 8285 of file itembase.c.

◆ GetQuantityMax()

override int SpawnItemOnLocation::GetQuantityMax ( )
protected

Definition at line 8248 of file itembase.c.

◆ GetQuantityMin()

override int SpawnItemOnLocation::GetQuantityMin ( )
protected

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

◆ GetQuantityNormalizedScripted()

override float GetQuantityNormalizedScripted ( )
protected

Definition at line 8234 of file itembase.c.

◆ GetRecipesActions()

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

Definition at line 7156 of file itembase.c.

◆ GetSingleInventoryItemWeight()

float SpawnItemOnLocation::GetSingleInventoryItemWeight ( )
protected

Definition at line 8316 of file itembase.c.

◆ GetSingleInventoryItemWeightEx()

override float SpawnItemOnLocation::GetSingleInventoryItemWeightEx ( )
protected

Definition at line 8307 of file itembase.c.

◆ GetSoakingIncrement()

float SpawnItemOnLocation::GetSoakingIncrement ( string pIncrementName)
protected

Definition at line 8478 of file itembase.c.

◆ GetStoreLoadedQuantity()

override float SpawnItemOnLocation::GetStoreLoadedQuantity ( )
protected

Definition at line 8573 of file itembase.c.

◆ GetTargetQuantityMax()

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

Definition at line 8261 of file itembase.c.

◆ GetTemperatureFreezeThreshold()

override float SpawnItemOnLocation::GetTemperatureFreezeThreshold ( )
protected

Definition at line 9518 of file itembase.c.

◆ GetTemperatureFreezeTime()

override float SpawnItemOnLocation::GetTemperatureFreezeTime ( )
protected

Definition at line 9542 of file itembase.c.

◆ GetTemperaturePerQuantityWeight()

float SpawnItemOnLocation::GetTemperaturePerQuantityWeight ( )
protected

Used in heat comfort calculations only!

Definition at line 9513 of file itembase.c.

◆ GetTemperatureThawThreshold()

override float SpawnItemOnLocation::GetTemperatureThawThreshold ( )
protected

Definition at line 9526 of file itembase.c.

◆ GetTemperatureThawTime()

override float SpawnItemOnLocation::GetTemperatureThawTime ( )
protected

Definition at line 9550 of file itembase.c.

◆ GetUnitWeight()

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

Obsolete, use GetWeightEx instead.

Definition at line 8380 of file itembase.c.

◆ GetValidFinishers()

array< int > SpawnItemOnLocation::GetValidFinishers ( )
protected

returns an array of possible finishers

Definition at line 9590 of file itembase.c.

◆ GetWeightSpecialized()

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

Definition at line 8321 of file itembase.c.

◆ GetWet()

override float SpawnItemOnLocation::GetWet ( )
protected

Definition at line 8516 of file itembase.c.

◆ GetWetInit()

override float SpawnItemOnLocation::GetWetInit ( )
protected

Definition at line 8531 of file itembase.c.

◆ GetWetLevel()

override EWetnessLevel SpawnItemOnLocation::GetWetLevel ( )
protected

Definition at line 8551 of file itembase.c.

◆ GetWetMax()

override float SpawnItemOnLocation::GetWetMax ( )
protected

Definition at line 8521 of file itembase.c.

◆ GetWetMin()

override float SpawnItemOnLocation::GetWetMin ( )
protected

Definition at line 8526 of file itembase.c.

◆ GetWrittenNoteData()

WrittenNoteData SpawnItemOnLocation::GetWrittenNoteData ( )
protected

Definition at line 9352 of file itembase.c.

◆ HasFoodStage()

bool SpawnItemOnLocation::HasFoodStage ( )
protected

Definition at line 7466 of file itembase.c.

◆ HasQuantity()

override bool SpawnItemOnLocation::HasQuantity ( )
protected

Definition at line 8291 of file itembase.c.

◆ HidesSelectionBySlot()

bool SpawnItemOnLocation::HidesSelectionBySlot ( )
protected

Definition at line 9347 of file itembase.c.

◆ HierarchyCheck()

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

Definition at line 9435 of file itembase.c.

◆ IDToName()

string SpawnItemOnLocation::IDToName ( int id)
protected

Definition at line 7689 of file itembase.c.

◆ InitItemSounds()

void SpawnItemOnLocation::InitItemSounds ( )
protected

Definition at line 9238 of file itembase.c.

◆ InsertAgent()

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

Definition at line 8795 of file itembase.c.

◆ IsActionTargetVisible()

bool SpawnItemOnLocation::IsActionTargetVisible ( )
protected

Definition at line 9196 of file itembase.c.

◆ IsCargoException4x3()

bool SpawnItemOnLocation::IsCargoException4x3 ( EntityAI item)
protected

Definition at line 9563 of file itembase.c.

◆ IsColorSet()

bool SpawnItemOnLocation::IsColorSet ( )
protected

Definition at line 8654 of file itembase.c.

◆ IsCombineAll()

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

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

◆ IsDeployable()

bool SpawnItemOnLocation::IsDeployable ( )
protected

Definition at line 9170 of file itembase.c.

◆ IsDeploySound()

bool SpawnItemOnLocation::IsDeploySound ( )
protected

Definition at line 9690 of file itembase.c.

◆ IsFullQuantity()

bool SpawnItemOnLocation::IsFullQuantity ( )
protected

Definition at line 8301 of file itembase.c.

◆ IsHeavyBehaviour()

override bool SpawnItemOnLocation::IsHeavyBehaviour ( )
protected

Definition at line 9140 of file itembase.c.

◆ IsIgnoredByConstruction()

override bool SpawnItemOnLocation::IsIgnoredByConstruction ( )
protected

Definition at line 7459 of file itembase.c.

◆ IsItemBase()

override bool SpawnItemOnLocation::IsItemBase ( )
protected

Definition at line 7606 of file itembase.c.

◆ IsOneHandedBehaviour()

override bool SpawnItemOnLocation::IsOneHandedBehaviour ( )
protected

Definition at line 9150 of file itembase.c.

◆ IsOpen()

override bool IsOpen ( )
protected

Definition at line 8938 of file itembase.c.

◆ IsPlaceSound()

bool SpawnItemOnLocation::IsPlaceSound ( )
protected

Definition at line 9689 of file itembase.c.

◆ IsResultOfSplit()

bool SpawnItemOnLocation::IsResultOfSplit ( )
protected

Definition at line 7083 of file itembase.c.

◆ IsSoundSynchRemote()

bool SpawnItemOnLocation::IsSoundSynchRemote ( )
protected

Definition at line 9688 of file itembase.c.

◆ IsStoreLoad()

override bool SpawnItemOnLocation::IsStoreLoad ( )
protected

Definition at line 8563 of file itembase.c.

◆ IsTakeable()

override bool SpawnItemOnLocation::IsTakeable ( )
protected

Definition at line 9190 of file itembase.c.

◆ IsTwoHandedBehaviour()

override bool SpawnItemOnLocation::IsTwoHandedBehaviour ( )
protected

Definition at line 9160 of file itembase.c.

◆ KindOf()

override bool SpawnItemOnLocation::KindOf ( string tag)
protected

Definition at line 7612 of file itembase.c.

◆ LoadAgents()

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

Definition at line 8856 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 7560 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 7578 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 7596 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 7542 of file itembase.c.

◆ NameToID()

int SpawnItemOnLocation::NameToID ( string name)
protected

Definition at line 7683 of file itembase.c.

◆ OnAction()

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

Definition at line 7237 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 6889 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 6895 of file itembase.c.

◆ OnCombine()

void SpawnItemOnLocation::OnCombine ( ItemBase other_item)
protected

Definition at line 7148 of file itembase.c.

◆ OnEnergyAdded()

override void SpawnItemOnLocation::OnEnergyAdded ( )
protected

Definition at line 8438 of file itembase.c.

◆ OnEnergyConsumed()

override void SpawnItemOnLocation::OnEnergyConsumed ( )
protected

Definition at line 8431 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 8708 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 8721 of file itembase.c.

◆ OnLiquidTypeChanged()

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

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

◆ OnPlacementStarted()

override void SpawnItemOnLocation::OnPlacementStarted ( Man player)
protected

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

◆ OnRightClick()

override void SpawnItemOnLocation::OnRightClick ( )
protected

Definition at line 6938 of file itembase.c.

◆ OnRPC()

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

Definition at line 7632 of file itembase.c.

◆ OnStoreLoad()

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

Definition at line 7932 of file itembase.c.

◆ OnStoreSave()

override void SpawnItemOnLocation::OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 8033 of file itembase.c.

◆ OnSyncVariables()

void SpawnItemOnLocation::OnSyncVariables ( ParamsReadContext ctx)
protected

DEPRECATED (most likely)

Definition at line 7696 of file itembase.c.

◆ OnVariablesSynchronized()

override void SpawnItemOnLocation::OnVariablesSynchronized ( )
protected

Definition at line 8097 of file itembase.c.

◆ OnWetChanged()

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

Definition at line 8536 of file itembase.c.

◆ OnWetLevelChanged()

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

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

◆ PerformDamageSystemReinit()

void SpawnItemOnLocation::PerformDamageSystemReinit ( )
protected

Definition at line 9360 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 9294 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 9330 of file itembase.c.

◆ PlayPlaceSound()

void SpawnItemOnLocation::PlayPlaceSound ( )
protected

◆ PreLoadSoundAttachmentType()

void SpawnItemOnLocation::PreLoadSoundAttachmentType ( )
protected

Attachment Sound Type getting from config file.

Definition at line 9202 of file itembase.c.

◆ ProcessDecay()

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

Definition at line 9452 of file itembase.c.

◆ ProcessItemTemperature()

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

Definition at line 9415 of file itembase.c.

◆ ProcessItemWetness()

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

Definition at line 9390 of file itembase.c.

◆ ProcessItemWetnessAndTemperature()

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

Definition at line 9663 of file itembase.c.

◆ ProcessVariables()

override void SpawnItemOnLocation::ProcessVariables ( )
protected

Definition at line 9482 of file itembase.c.

◆ ReadVarsFromCTX()

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

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

◆ RemoveAllAgents()

override void SpawnItemOnLocation::RemoveAllAgents ( )
protected

Definition at line 8785 of file itembase.c.

◆ RemoveAllAgentsExcept()

override void SpawnItemOnLocation::RemoveAllAgentsExcept ( int agent_to_keep)
protected

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

◆ Repair()

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

Definition at line 7500 of file itembase.c.

◆ SaveAgents()

void SpawnItemOnLocation::SaveAgents ( ParamsWriteContext ctx)
protected

Definition at line 8863 of file itembase.c.

◆ SerializeNumericalVars()

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

Definition at line 7710 of file itembase.c.

◆ SetCanBeMovedOverride()

void SpawnItemOnLocation::SetCanBeMovedOverride ( bool setting)
protected

Definition at line 7529 of file itembase.c.

◆ SetCleanness()

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

Definition at line 8598 of file itembase.c.

◆ SetColor()

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

Definition at line 8637 of file itembase.c.

◆ SetInventoryLocationToVicinityOrCurrent()

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

Definition at line 7002 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 8673 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 8148 of file itembase.c.

◆ SetQuantityMax()

void SpawnItemOnLocation::SetQuantityMax ( )
protected

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

◆ SetQuantityToMinimum()

override void SpawnItemOnLocation::SetQuantityToMinimum ( )
protected

Definition at line 8213 of file itembase.c.

◆ SetResultOfSplit()

void SpawnItemOnLocation::SetResultOfSplit ( bool value)
protected

Definition at line 7088 of file itembase.c.

◆ SetStoreLoad()

override void SpawnItemOnLocation::SetStoreLoad ( bool value)
protected

Definition at line 8558 of file itembase.c.

◆ SetStoreLoadedQuantity()

override void SpawnItemOnLocation::SetStoreLoadedQuantity ( float value)
protected

Definition at line 8568 of file itembase.c.

◆ SetTakeable()

override void SpawnItemOnLocation::SetTakeable ( bool pState)
protected

Definition at line 9184 of file itembase.c.

◆ SetupSpawnedItem()

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

Definition at line 4875 of file itembase.c.

◆ SetWet()

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

Definition at line 8487 of file itembase.c.

◆ SetWetMax()

override void SpawnItemOnLocation::SetWetMax ( )
protected

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

◆ ShouldSplitQuantity()

bool SpawnItemOnLocation::ShouldSplitQuantity ( float quantity)
protected

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

◆ SplitIntoStackMax()

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

Definition at line 6471 of file itembase.c.

◆ SplitIntoStackMaxCargo()

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

Definition at line 6719 of file itembase.c.

◆ SplitIntoStackMaxCargoClient()

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

Definition at line 6655 of file itembase.c.

◆ SplitIntoStackMaxClient()

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

Definition at line 6448 of file itembase.c.

◆ SplitIntoStackMaxEx()

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

Definition at line 6557 of file itembase.c.

◆ SplitIntoStackMaxHands()

void SpawnItemOnLocation::SplitIntoStackMaxHands ( PlayerBase player)
protected

Definition at line 6770 of file itembase.c.

◆ SplitIntoStackMaxHandsClient()

void SpawnItemOnLocation::SplitIntoStackMaxHandsClient ( PlayerBase player)
protected

Definition at line 6746 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocation()

void SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 6680 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationClient()

void SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocationClient ( notnull InventoryLocation dst)
protected

Definition at line 6634 of file itembase.c.

◆ SplitIntoStackMaxToInventoryLocationEx()

ItemBase SpawnItemOnLocation::SplitIntoStackMaxToInventoryLocationEx ( notnull InventoryLocation dst)
protected

Definition at line 6685 of file itembase.c.

◆ SplitItem()

void SpawnItemOnLocation::SplitItem ( PlayerBase player)
protected

Definition at line 6831 of file itembase.c.

◆ SplitItemToInventoryLocation()

void SpawnItemOnLocation::SplitItemToInventoryLocation ( notnull InventoryLocation dst)
protected

Definition at line 6798 of file itembase.c.

◆ StartItemSoundServer()

void SpawnItemOnLocation::StartItemSoundServer ( int id)
protected

Definition at line 9258 of file itembase.c.

◆ StopDeployLoopSoundEx()

void SpawnItemOnLocation::StopDeployLoopSoundEx ( )
protected

◆ StopItemDynamicPhysics()

void SpawnItemOnLocation::StopItemDynamicPhysics ( )
protected

Definition at line 9354 of file itembase.c.

◆ StopItemSoundServer()

void SpawnItemOnLocation::StopItemSoundServer ( int id)
protected

Definition at line 9271 of file itembase.c.

◆ TransferAgents()

void SpawnItemOnLocation::TransferAgents ( int agents)
protected

transfer agents from another item

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

◆ UsesGlobalDeploy()

bool SpawnItemOnLocation::UsesGlobalDeploy ( )
protected

Definition at line 9686 of file itembase.c.

◆ WriteVarsToCTX()

override void SpawnItemOnLocation::WriteVarsToCTX ( ParamsWriteContext ctx)
protected

Definition at line 7805 of file itembase.c.

Variable Documentation

◆ can_this_be_combined

bool can_this_be_combined

Definition at line 4908 of file itembase.c.

◆ ITEM_SOUNDS_MAX

const int ITEM_SOUNDS_MAX = 63
protected

Definition at line 4971 of file itembase.c.

◆ m_ActionsInitialize

bool m_ActionsInitialize

Definition at line 4860 of file itembase.c.

◆ m_AdminLog

PluginAdminLog m_AdminLog
protected

Definition at line 4959 of file itembase.c.

◆ m_CanBeDigged

bool m_CanBeDigged
protected

Definition at line 4913 of file itembase.c.

◆ m_CanBeMovedOverride

bool m_CanBeMovedOverride

Definition at line 4906 of file itembase.c.

◆ m_CanPlayImpactSound

bool m_CanPlayImpactSound = true

Definition at line 4890 of file itembase.c.

◆ m_CanShowQuantity

bool m_CanShowQuantity

Definition at line 4911 of file itembase.c.

◆ m_CanThisBeSplit

bool m_CanThisBeSplit

Definition at line 4909 of file itembase.c.

◆ m_Cleanness

int m_Cleanness

Definition at line 4884 of file itembase.c.

◆ m_CleannessInit

int m_CleannessInit

Definition at line 4885 of file itembase.c.

◆ m_CleannessMax

int m_CleannessMax

Definition at line 4887 of file itembase.c.

◆ m_CleannessMin

int m_CleannessMin

Definition at line 4886 of file itembase.c.

◆ m_ColorComponentA

int m_ColorComponentA
protected

Definition at line 4921 of file itembase.c.

◆ m_ColorComponentB

int m_ColorComponentB
protected

Definition at line 4920 of file itembase.c.

◆ m_ColorComponentG

int m_ColorComponentG
protected

Definition at line 4919 of file itembase.c.

◆ m_ColorComponentR

int m_ColorComponentR
protected

Definition at line 4918 of file itembase.c.

◆ m_CompatibleLocks

ref array<int> m_CompatibleLocks
protected

Definition at line 4965 of file itembase.c.

◆ m_ContinuousActions

ref TIntArray m_ContinuousActions
protected

Definition at line 4928 of file itembase.c.

◆ m_Count

int m_Count

Definition at line 4874 of file itembase.c.

◆ m_DeployLoopSoundEx

EffectSound m_DeployLoopSoundEx
protected

Definition at line 9672 of file itembase.c.

◆ m_FixDamageSystemInit

bool m_FixDamageSystemInit = false

Definition at line 4907 of file itembase.c.

◆ m_HasQuantityBar

bool m_HasQuantityBar

Definition at line 4912 of file itembase.c.

◆ m_HeadHidingSelections

ref TStringArray m_HeadHidingSelections
protected

Definition at line 4955 of file itembase.c.

◆ m_HeatIsolation

float m_HeatIsolation

Definition at line 4894 of file itembase.c.

◆ m_HideSelectionsBySlot

bool m_HideSelectionsBySlot
protected

Definition at line 4956 of file itembase.c.

◆ m_ImpactSoundSurfaceHash

int m_ImpactSoundSurfaceHash

Definition at line 4892 of file itembase.c.

◆ m_ImpactSpeed

float m_ImpactSpeed

Definition at line 4891 of file itembase.c.

◆ m_InputActionMap

TInputActionMap m_InputActionMap

Definition at line 4857 of file itembase.c.

◆ m_InteractActions

ref TIntArray m_InteractActions
protected

Definition at line 4929 of file itembase.c.

◆ m_IsBeingPlaced

bool m_IsBeingPlaced

Definition at line 4901 of file itembase.c.

◆ m_IsDeploySound

bool m_IsDeploySound
protected

Definition at line 9675 of file itembase.c.

◆ m_IsHologram

bool m_IsHologram

Definition at line 4902 of file itembase.c.

◆ m_IsPlaceSound

bool m_IsPlaceSound
protected

Definition at line 9674 of file itembase.c.

◆ m_IsSoundSynchRemote

bool m_IsSoundSynchRemote
protected

Definition at line 9676 of file itembase.c.

◆ m_IsStoreLoad

bool m_IsStoreLoad = false

Definition at line 4910 of file itembase.c.

◆ m_IsTakeable

bool m_IsTakeable

Definition at line 4903 of file itembase.c.

◆ m_ItemAttachOffset

float m_ItemAttachOffset

Definition at line 4896 of file itembase.c.

◆ m_ItemBehaviour

int m_ItemBehaviour

Definition at line 4899 of file itembase.c.

◆ m_ItemBeingDroppedPhys

bool m_ItemBeingDroppedPhys

Definition at line 4905 of file itembase.c.

◆ m_ItemModelLength

float m_ItemModelLength

Definition at line 4895 of file itembase.c.

◆ m_LightSourceItem

ItemBase m_LightSourceItem
protected

Definition at line 4925 of file itembase.c.

◆ m_LiquidContainerMask

int m_LiquidContainerMask

Definition at line 4897 of file itembase.c.

◆ m_LockingSound

ref EffectSound m_LockingSound
protected

Definition at line 4967 of file itembase.c.

◆ m_LockSoundSet

string m_LockSoundSet
protected

Definition at line 4968 of file itembase.c.

◆ m_LockType

int m_LockType
protected

Definition at line 4966 of file itembase.c.

◆ m_PhysDropTimer

ref Timer m_PhysDropTimer
protected

Definition at line 4962 of file itembase.c.

◆ m_QuickBarBonus

int m_QuickBarBonus

Definition at line 4900 of file itembase.c.

◆ m_RecipesInitialized

bool m_RecipesInitialized

Definition at line 4863 of file itembase.c.

◆ m_SingleUseActions

ref TIntArray m_SingleUseActions
protected

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

◆ m_SoundDeploy

EffectSound m_SoundDeploy
protected

Definition at line 9673 of file itembase.c.

◆ m_SoundDeployFinish

EffectSound m_SoundDeployFinish
protected

Definition at line 9670 of file itembase.c.

◆ m_SoundPlace

EffectSound m_SoundPlace
protected

Definition at line 9671 of file itembase.c.

◆ m_SoundSyncPlay

int m_SoundSyncPlay
protected

Definition at line 4972 of file itembase.c.

◆ m_SoundSyncStop

int m_SoundSyncStop
protected

Definition at line 4973 of file itembase.c.

◆ m_StoreLoadedQuantity

float m_StoreLoadedQuantity = float.LOWEST

Definition at line 4876 of file itembase.c.

◆ m_ThrowItemOnDrop

bool m_ThrowItemOnDrop

Definition at line 4904 of file itembase.c.

◆ m_VarLiquidType

int m_VarLiquidType

Definition at line 4898 of file itembase.c.

◆ m_VarQuantity

float m_VarQuantity

Definition at line 4869 of file itembase.c.

◆ m_VarQuantityInit

int m_VarQuantityInit

Definition at line 4871 of file itembase.c.

◆ m_VarQuantityMax

int m_VarQuantityMax

Definition at line 4873 of file itembase.c.

◆ m_VarQuantityMin

int m_VarQuantityMin

Definition at line 4872 of file itembase.c.

◆ m_VarQuantityPrev

float m_VarQuantityPrev

Definition at line 4870 of file itembase.c.

◆ m_VarStackMax

float m_VarStackMax

Definition at line 4875 of file itembase.c.

◆ m_VarWet

float m_VarWet

Definition at line 4878 of file itembase.c.

◆ m_VarWetInit

float m_VarWetInit

Definition at line 4880 of file itembase.c.

◆ m_VarWetMax

float m_VarWetMax

Definition at line 4882 of file itembase.c.

◆ m_VarWetMin

float m_VarWetMin

Definition at line 4881 of file itembase.c.

◆ m_VarWetPrev

float m_VarWetPrev

Definition at line 4879 of file itembase.c.

◆ m_WantPlayImpactSound

bool m_WantPlayImpactSound

Definition at line 4889 of file itembase.c.