Private Member Functions | |
void | TransferModifiers (PlayerBase reciever) |
appears to be deprecated, legacy code | |
void | ItemBase () |
override void | InitItemVariables () |
override int | GetQuickBarBonus () |
void | InitializeActions () |
override void | GetActions (typename action_input_type, out array< ActionBase_Basic > actions) |
void | SetActions () |
void | SetActionAnimOverrides () |
void | AddAction (typename actionName) |
void | RemoveAction (typename actionName) |
void | OverrideActionAnimation (typename action, int commandUID, int stanceMask=-1, int commandUIDProne=-1) |
void | OnItemInHandsPlayerSwimStart (PlayerBase player) |
ScriptedLightBase | GetLight () |
void | LoadParticleConfigOnFire (int id) |
void | LoadParticleConfigOnOverheating (int id) |
float | GetOverheatingValue () |
void | IncreaseOverheating (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
void | CheckOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="") |
bool | IsOverheatingEffectActive () |
void | OnOverheatingDecay () |
void | StartOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="") |
void | UpdateOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="") |
void | StopOverheating (ItemBase weapon=null, string ammoType="", ItemBase muzzle_owner=null, ItemBase suppressor=null, string config_to_search="") |
void | RegisterOverheatingParticle (Particle p, float min_heat_coef, float max_heat_coef, int particle_id, Object parent, vector local_pos, vector local_ori) |
float | GetOverheatingCoef () |
void | UpdateAllOverheatingParticles () |
void | KillAllOverheatingParticles () |
float | GetInfectionChance (int system=0, Param param=null) |
Infection chance while/after using this item, originally used for wound infection after bandaging, params 'system' and 'param' can allow usage by other systems as well. | |
float | GetDisinfectQuantity (int system=0, Param param1=null) |
float | GetFilterDamageRatio () |
bool | HasMuzzle () |
Returns true if this item has a muzzle (weapons, suppressors) | |
int | GetMuzzleID () |
Returns global muzzle ID. If not found, then it gets automatically registered. | |
int | GetDamageSystemVersionChange () |
Re-sets DamageSystem changes. | |
void | ~ItemBase () |
void | SetCEBasedQuantity () |
void | LockToParent () |
Locks this item in it's current attachment slot of its parent. This makes the "locked" icon visible in inventory over this item. | |
void | UnlockFromParent () |
Unlocks this item from its attachment slot of its parent. | |
override void | CombineItemsClient (EntityAI entity2, bool use_stack_max=true) |
bool | IsLiquidPresent () |
bool | IsLiquidContainer () |
int | GetLiquidContainerMask () |
bool | IsBloodContainer () |
bool | IsNVG () |
bool | IsExplosive () |
string | GetExplosiveTriggerSlotName () |
bool | IsLightSource () |
bool | CanBeRepairedByCrafting () |
bool | IsFacingPlayer (PlayerBase player, string selection) |
bool | IsPlayerInside (PlayerBase player, string selection) |
override bool | CanObstruct () |
override bool | IsBeingPlaced () |
void | SetIsBeingPlaced (bool is_being_placed) |
void | OnEndPlacement () |
override bool | IsHologram () |
bool | CanBeDigged () |
int | GetOnDigWormsAmount () |
bool | CanMakeGardenplot () |
void | SetIsHologram (bool is_hologram) |
override void | OnMovedInsideCargo (EntityAI container) |
override void | EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc) |
override void | EOnContact (IEntity other, Contact extra) |
void | RefreshPhysics () |
override void | OnCreatePhysics () |
override void | OnItemAttachmentSlotChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc) |
override void | OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner) |
override void | EEDelete (EntityAI parent) |
override void | EEKilled (Object killer) |
override void | OnWasAttached (EntityAI parent, int slot_id) |
override void | OnWasDetached (EntityAI parent, int slot_id) |
override string | ChangeIntoOnAttach (string slot) |
override string | ChangeIntoOnDetach () |
void | ExplodeAmmo () |
void | DoAmmoExplosion () |
override void | EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef) |
bool | DamageItemInCargo (float damage) |
bool | DamageItemAttachments (float damage) |
override bool | IsSplitable () |
override bool | CanBeSplit () |
protected 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 () |
protected 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 () |
override protected 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 () |
protected 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 () |
protected void | PreLoadSoundAttachmentType () |
Attachment Sound Type getting from config file. | |
override string | GetAttachmentSoundType () |
string | GetPlaceSoundset () |
string | GetLoopDeploySoundset () |
string | GetDeploySoundset () |
string | GetLoopFoldSoundset () |
string | GetFoldSoundset () |
ItemSoundHandler | GetItemSoundHandler () |
protected void | InitItemSounds () |
void | StartItemSoundServer (int id) |
void | StopItemSoundServer (int id) |
protected void | ClearStartItemSoundServer () |
protected 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< string > | GetHeadHidingSelection () |
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) |
protected void | ProcessDecay (float delta, bool hasRootAsPlayer) |
bool | CanDecay () |
protected bool | CanProcessDecay () |
protected 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< int > | GetValidFinishers () |
returns an array of possible finishers | |
bool | GetActionWidgetOverride (out typename name) |
If we need a different (handheld)item action widget displayed, the logic goes in here. | |
bool | PairWithDevice (notnull ItemBase otherDevice) |
float | GetBaitEffectivity () |
generic effectivity as a bait for animal catching | |
bool | CanBeUsedForSuicide () |
void | ProcessItemWetnessAndTemperature (float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB) |
string | GetDeployFinishSoundset () |
void | PlayDeploySound () |
void | PlayDeployFinishSound () |
void | PlayPlaceSound () |
void | PlayDeployLoopSoundEx () |
void | StopDeployLoopSoundEx () |
void | SoundSynchRemoteReset () |
void | SoundSynchRemote () |
bool | UsesGlobalDeploy () |
bool | CanPlayDeployLoopSound () |
bool | IsSoundSynchRemote () |
bool | IsPlaceSound () |
bool | IsDeploySound () |
void | SetIsPlaceSound (bool is_place_sound) |
void | SetIsDeploySound (bool is_deploy_sound) |
Static Private Member Functions | |
static int | GetDebugActionsMask () |
static bool | HasDebugActionsMask (int mask) |
static void | SetDebugActionsMask (int mask) |
static void | AddDebugActionsMask (int mask) |
static void | RemoveDebugActionsMask (int mask) |
static void | ToggleDebugActionsMask (int mask) |
static void | PlayFireParticles (ItemBase weapon, int muzzle_index, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
static void | PlayBulletCasingEjectParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
static void | PlayOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
static void | UpdateOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
static void | StopOverheatingParticles (ItemBase weapon, string ammoType, ItemBase muzzle_owner, ItemBase suppressor, string config_to_search) |
Static Private Attributes | |
static ref map< typename, ref TInputActionMap > | m_ItemTypeActionsMap = new map<typename, ref TInputActionMap> |
static ref map< typename, ref TActionAnimOverrideMap > | m_ItemActionOverrides = new map<typename, ref TActionAnimOverrideMap> |
static int | m_DebugActionsMask |
static ref map< int, ref array< ref WeaponParticlesOnFire > > | m_OnFireEffect |
static ref map< int, ref array< ref WeaponParticlesOnBulletCasingEject > > | m_OnBulletCasingEjectEffect |
static ref map< string, int > | m_WeaponTypeToID |
static int | m_LastRegisteredWeaponID = 0 |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
Adds a light source child.
References m_LightSourceItem.
|
inlineprivate |
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
References GetQuantity(), and ItemBase::SetQuantity().
|
private |
from other liquid container source
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References can_this_be_combined, GetQuantity(), GetQuantityMax(), GetType(), IsFullQuantity(), slotName, and GameConstants::STATE_RUINED.
|
inlineprivate |
Items cannot be consumed if frozen by default. Override for exceptions.
References IsOpen().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_CanBeDigged.
|
inlineprivate |
|
inlineprivate |
References m_CanBeMovedOverride.
|
inlineprivate |
|
inlineprivate |
References GetQuantity(), and IsSplitable().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References g_Game, and ItemBase::IsPlayerInside().
|
inlineprivate |
|
inlineprivate |
References GameInventory::GetCargo(), CargoBase::GetItemCount(), and InventoryLocation::IsValid().
References GetPlugin().
|
inlineprivate |
|
inlineprivate |
Roof check for entity, limited by time (anti-spam solution)
References GetGame(), and CGame::GetTime().
|
inlineprivate |
References GameInventory::EnumerateInventory(), GetGame(), and CGame::ObjectDelete().
|
inlineprivate |
References m_SoundSyncPlay.
|
inlineprivate |
References m_SoundSyncStop.
|
private |
References CombineItems().
References ComputeQuantityUsedEx().
References GetQuantity(), and GetQuantityMax().
References m_AttachedAgents.
|
inlineprivate |
References GetGame(), HasQuantity(), and SetQuantityNormalized().
|
inlineprivate |
References Math::RandomInt().
References GetItem(), and Math::RandomInt().
References m_ColorComponentA, m_ColorComponentB, m_ColorComponentG, m_ColorComponentR, m_IsStoreLoad, Math::Round(), SetCleanness(), SetLiquidType(), ItemBase::SetQuantity(), SetStoreLoadedQuantity(), SetWet(), VARIABLE_CLEANNESS, VARIABLE_COLOR, VARIABLE_LIQUIDTYPE, VARIABLE_QUANTITY, and VARIABLE_WET.
|
inlineprivate |
References CGame::CreateSoundOnObject(), ExplodeAmmo(), GetGame(), GetTemperature(), and Math::RandomInt().
|
inlineprivate |
drops content of container when ruined in fireplace
References GetGame(), CargoBase::GetItem(), CargoBase::GetItemCount(), IsResultOfSplit(), m_Cleanness, SetCleanness(), SetResultOfSplit(), and GameConstants::STATE_RUINED.
|
inlineprivate |
References InventoryLocation::Copy(), CGame::GetAnalyticsClient(), GetGame(), InventoryLocation::GetItem(), InventoryLocation::GetParent(), InventoryLocation::GetSlot(), InventoryLocation::GetType(), m_ThrowItemOnDrop, AnalyticsManagerClient::OnItemAttachedAtPlayer(), and InventoryLocation::Reset().
|
inlineprivate |
item is able to explode in fire
References ItemBase::CanExplodeInFire(), Explode(), ExplodeAmmo(), GetTemperature(), and GameConstants::ITEM_TEMPERATURE_TO_EXPLODE_MIN.
|
inlineprivate |
|
inlineprivate |
Called when entity is being created as new by CE/ Debug.
References SetCEBasedQuantity(), and SetZoneDamageCEInit().
|
inlineprivate |
References CALL_CATEGORY_SYSTEM, and Math::RandomFloat().
|
inlineprivate |
References InitializeActions(), m_ActionsInitialize, and m_InputActionMap.
If we need a different (handheld)item action widget displayed, the logic goes in here.
|
inlineprivate |
References m_AttachedAgents.
|
inlineprivate |
References m_SoundAttType.
|
inlineprivate |
generic effectivity as a bait for animal catching
References GetQuantityNormalized(), and HasQuantity().
|
inlineprivate |
|
inlineprivate |
References m_Cleanness.
gets item's color variable as components
References m_ColorComponentA, m_ColorComponentB, m_ColorComponentG, and m_ColorComponentR.
|
inlineprivate |
Returns item's PROCEDURAL color as formated string, i.e. "#(argb,8,8,3)color(0.15,0.15,0.15,1.0,CO)".
References GetColor().
|
inlineprivate |
Re-sets DamageSystem changes.
|
inlineprivate |
References InventoryLocation::GetType(), IsLiquidContainer(), and SAT_DEBUG_ACTION.
|
inlinestaticprivate |
|
private |
|
private |
|
inlineprivate |
how long it takes to deploy this item in seconds
References UATimeSpent::DEFAULT_DEPLOY.
References CGame::ConfigGetFloat(), GetGame(), and GetType().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
inlineprivate |
overridden on Edible_Base; so we don't have to parse configs all the time
References m_HeadHidingSelections.
|
inlineprivate |
References m_HeatIsolation.
|
inlineprivate |
Infection chance while/after using this item, originally used for wound infection after bandaging, params 'system' and 'param' can allow usage by other systems as well.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.
|
inlineprivate |
|
inlineprivate |
References ItemSoundHandler(), and m_ItemSoundHandler.
|
private |
|
inlineprivate |
References m_LightSourceItem.
|
inlineprivate |
References m_LiquidContainerMask.
|
inlineprivate |
References m_VarLiquidType.
|
inlineprivate |
|
inlineprivate |
References m_LockSoundSet.
|
inlineprivate |
References m_LockType.
|
private |
|
private |
|
inlineprivate |
Returns global muzzle ID. If not found, then it gets automatically registered.
References GetType(), m_LastRegisteredWeaponID, and m_WeaponTypeToID.
|
inlineprivate |
Returns the number of items in cargo, otherwise returns 0(non-cargo objects). Recursive.
References Class::CastTo().
|
inlineprivate |
|
inlineprivate |
References m_MaxOverheatingValue, m_OverheatingShots, and m_ShotsToStartOverheating.
|
inlineprivate |
References m_OverheatingShots.
|
private |
References CGame::ConfigGetFloat(), DEF_BIOLOGICAL, DEF_CHEMICAL, GetGame(), GetQuantity(), GetType(), and HasQuantity().
|
inlineprivate |
References m_VarQuantity.
|
inlineprivate |
References m_VarQuantityInit.
|
inlineprivate |
References InventoryLocation::GetSlot(), and GetTargetQuantityMax().
|
inlineprivate |
References m_VarQuantityMin.
|
inlineprivate |
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)
References GetQuantityMax(), GetQuantityMin(), Math::InverseLerp(), and m_VarQuantity.
|
inlineprivate |
References GetQuantityNormalized().
|
inlineprivate |
References m_QuickBarBonus.
|
inlineprivate |
References HumanInventory::GetEntityInHands(), EntityAI::GetHumanInventory(), GetPlugin(), and SAT_CRAFTING.
|
inlineprivate |
References GetSingleInventoryItemWeightEx().
|
inlineprivate |
References CGame::ConfigGetFloat(), GetGame(), and GetType().
|
inlineprivate |
References m_StoreLoadedQuantity.
References InventorySlots::GetStackMaxForSlotId(), IsSplitable(), m_VarQuantityMax, and m_VarStackMax.
|
inlineprivate |
References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.
|
inlineprivate |
|
inlineprivate |
Used in heat comfort calculations only!
References GameConstants::ITEM_TEMPERATURE_QUANTITY_WEIGHT_MULTIPLIER, and m_TemperaturePerQuantityWeight.
|
inlineprivate |
References GetLiquidType(), IsLiquidContainer(), and LIQUID_NONE.
|
inlineprivate |
Obsolete, use GetWeightEx instead.
References GetWet(), IsLiquidContainer(), and IsSplitable().
References GetEnergy(), GetQuantity(), IsSplitable(), and WeightDebugData::SetCalcDetails().
|
inlineprivate |
References m_VarWetInit.
|
inlineprivate |
References m_VarWet.
|
inlineprivate |
References m_VarWetMax.
|
inlineprivate |
References m_VarWetMin.
|
inlineprivate |
|
inlineprivate |
References CGame::ConfigIsExisting(), GetGame(), and GetType().
|
inlineprivate |
Returns true if this item has a muzzle (weapons, suppressors)
|
inlineprivate |
References GetQuantityMax(), and GetQuantityMin().
|
inlineprivate |
References m_HideSelectionsBySlot.
|
inlineprivate |
References GetPlugin().
|
inlineprivate |
References m_InputActionMap, m_ItemTypeActionsMap, ItemBase::SetActions(), and Type.
|
inlineprivate |
|
inlineprivate |
References can_this_be_combined, GetHeatIsolationInit(), GetItemAttachOffset(), GetItemModelLength(), GetLiquidTypeInit(), GetQuantity(), GetQuantityMin(), GetWetMax(), GetWetMin(), HasQuantity(), ItemBase::InitItemSounds(), IsLiquidContainer(), ITEM_SOUNDS_MAX, m_CanBeDigged, m_CanBeMovedOverride, m_CanShowQuantity, m_CanThisBeSplit, m_Cleanness, m_CleannessInit, m_CleannessMax, m_CleannessMin, m_CompatibleLocks, m_Count, m_HasQuantityBar, m_HeatIsolation, m_ImpactSpeed, m_IsBeingPlaced, m_IsHologram, m_IsTakeable, m_ItemAttachOffset, m_ItemBehaviour, m_ItemModelLength, m_ItemSoundHandler, m_LiquidContainerMask, m_LockSoundSet, m_LockType, m_TemperaturePerQuantityWeight, m_VarLiquidType, m_VarQuantity, m_VarQuantityInit, m_VarQuantityMax, m_VarQuantityMin, m_VarStackMax, m_VarWet, m_VarWetInit, m_VarWetMax, m_VarWetMin, and m_WantPlayImpactSound.
References m_AttachedAgents.
|
inlineprivate |
|
inlineprivate |
References m_IsBeingPlaced.
|
inlineprivate |
|
inlineprivate |
References VARIABLE_COLOR.
References ComputeQuantityUsed().
DEPRECATED in use, but returns correct values nontheless. Check performed elsewhere.
|
inlineprivate |
|
inlineprivate |
References m_IsDeploySound.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetQuantity(), and GetQuantityMax().
|
inlineprivate |
References m_ItemBehaviour.
|
inlineprivate |
References m_IsHologram.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_LiquidContainerMask.
|
inlineprivate |
References GetLiquidType(), and HasQuantity().
|
inlineprivate |
|
inlineprivate |
References m_ItemBehaviour.
|
inlineprivate |
|
inlineprivate |
References m_IsOverheatingEffectActive.
|
inlineprivate |
References m_IsPlaceSound.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_IsSoundSynchRemote.
|
inlineprivate |
References m_CanThisBeSplit.
|
inlineprivate |
References m_IsStoreLoad.
|
inlineprivate |
References m_IsTakeable.
|
inlineprivate |
References m_ItemBehaviour.
|
inlineprivate |
References GetGame(), GetMuzzleID(), GetPlugin(), HasMuzzle(), LoadParticleConfigOnFire(), LoadParticleConfigOnOverheating(), m_ActionsInitialize, m_AdminLog, m_ContinuousActions, m_HeadHidingSelections, m_HideSelectionsBySlot, m_InteractActions, m_QuickBarBonus, m_ShotsToStartOverheating, m_SingleUseActions, Math::Max(), PreLoadSoundAttachmentType(), and ItemBase::SetActionAnimOverrides().
|
inlineprivate |
References OverheatingParticle::GetParticle(), m_OverheatingParticles, and Particle::Stop().
References CGame::ConfigGetTextArray(), GetGame(), and GetType().
|
inlineprivate |
References m_AttachedAgents, and Serializer::Read().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Locks this item in it's current attachment slot of its parent. This makes the "locked" icon visible in inventory over this item.
References InventoryLocation::GetSlot().
|
inlineprivate |
Send message to owner player in yellow color.
void
|
inlineprivate |
Send message to owner player in green color.
void
|
inlineprivate |
Send message to owner player in red color.
void
|
inlineprivate |
Send message to owner player in grey color.
void
References GetPlugin(), and name.
|
inlineprivate |
|
private |
Called when this item is activated by other.
|
private |
DEPRECATED use OnActivatedByItem below Called when this item is activated from a trip wire that was stepped on.
|
private |
|
inlineprivate |
Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.
Called on server side when some attachment's quantity is changed. Call super.OnAttachmentQuantityChanged(item); first when overriding this event.
References OnAttachmentQuantityChanged().
|
inlineprivate |
|
inlineprivate |
References ItemBase::RefreshPhysics().
|
inlineprivate |
|
inlineprivate |
References ConvertEnergyToQuantity().
|
inlineprivate |
References ConvertEnergyToQuantity().
|
inlineprivate |
Event called on item when it is placed in the player(Man) inventory, passes the owner as a parameter.
References m_CanPlayImpactSound.
|
inlineprivate |
Event called on item when it is removed from the player(Man) inventory, passes the old owner as a parameter.
|
inlineprivate |
|
private |
References LIQUID_NONE.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_AdminLog.
|
inlineprivate |
References SetTakeable().
|
inlineprivate |
Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
References ErrorEx, GetLiquidType(), GetLiquidTypeInit(), GetQuantityNormalized(), IsLiquidContainer(), LIQUID_NONE, and SetLiquidType().
|
inlineprivate |
References GameInventory::c_InventoryReservationTimeoutShortMS, ItemBase::CanBeSplit(), ScriptInputUserData::CanStoreInputUserData(), InventoryLocation::GetCol(), GetDayZGame(), InventoryLocation::GetFlip(), GetGame(), InventoryLocation::GetIdx(), InventoryLocation::GetParent(), CGame::GetPlayer(), GetPlayer(), InventoryLocation::GetRow(), INPUT_UDT_ITEM_MANIPULATION, ScriptInputUserData::Send(), InventoryLocation::SetCargo(), SetInventoryLocationToVicinityOrCurrent(), SplitItem(), Serializer::Write(), and InventoryLocation::WriteToContext().
Referenced by VicinitySlotsContainer::MouseClick().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
DEPRECATED (most likely)
References ItemVariableFlags::FLOAT, Serializer::Read(), and ReadVarsFromCTX().
|
inlineprivate |
References dBodyIsDynamic(), UIManager::FindMenu(), GetGame(), CGame::GetUIManager(), IsSplitable(), m_ImpactSoundSurfaceHash, m_ImpactSpeed, m_Initialized, m_ItemSoundHandler, m_SoundSyncPlay, m_SoundSyncStop, m_VarQuantity, m_VarQuantityPrev, m_VarWet, m_VarWetPrev, m_WantPlayImpactSound, MENU_INVENTORY, OnWetChanged(), and UIScriptedMenu::Refresh().
References GetQuantityMin(), InventorySlots::GetSlotName(), HasQuantity(), m_VarQuantityMax, and PlayAttachSound().
References GetQuantityMin(), HasQuantity(), and m_VarQuantityMax.
References OnWetLevelChanged().
|
inlineprivate |
|
private |
Implementations only.
|
inlineprivate |
|
inlineprivate |
Plays sound on item attach. Be advised, the config structure may slightly change in 1.11 update to allow for more complex use.
References GetGame(), GetPosition, GetType(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().
|
inlinestaticprivate |
References m_OnBulletCasingEjectEffect.
|
private |
|
private |
|
private |
|
inlineprivate |
|
inlinestaticprivate |
References m_OnFireEffect.
|
inlinestaticprivate |
|
private |
|
inlineprivate |
Attachment Sound Type getting from config file.
References m_SoundAttType.
|
inlineprivate |
References ProcessItemTemperature(), and ProcessItemWetness().
|
inlineprivate |
|
inlineprivate |
|
private |
cooking-related effect methods
|
private |
|
inlineprivate |
References GetGame(), ActionBase::GetInputType(), GetPlayer(), and m_InputActionMap.
|
inlineprivate |
References ContainsAgent(), and m_AttachedAgents.
|
inlineprivate |
References m_AttachedAgents.
|
inlineprivate |
References m_AttachedAgents.
|
private |
|
inlinestaticprivate |
|
inlineprivate |
References m_LightSourceItem.
|
inlineprivate |
References GetPlugin().
|
inlineprivate |
References m_AttachedAgents, and Serializer::Write().
|
private |
|
inlineprivate |
References ActionDropItem(), and AddAction().
|
inlineprivate |
References m_CanBeMovedOverride.
|
inlineprivate |
References Math::Clamp(), m_Cleanness, m_CleannessMax, m_CleannessMin, and VARIABLE_CLEANNESS.
References m_ColorComponentA, m_ColorComponentB, m_ColorComponentG, m_ColorComponentR, and VARIABLE_COLOR.
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
References m_IsBeingPlaced, and ItemBase::OnEndPlacement().
|
private |
|
inlineprivate |
References m_IsHologram.
|
private |
References m_VarLiquidType, OnLiquidTypeChanged(), and VARIABLE_LIQUIDTYPE.
|
inlineprivate |
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.
References Math::Clamp(), GetQuantityMax(), GetQuantityMin(), GetStoreLoadedQuantity(), HasQuantity(), LOWEST, m_VarQuantity, OnQuantityChanged(), RemoveAllAgents(), and VARIABLE_QUANTITY.
|
inlineprivate |
References GetQuantityMax(), and ItemBase::SetQuantity().
|
inlineprivate |
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)
References Math::Clamp(), GetQuantityMax(), GetQuantityMin(), Math::Lerp(), Math::Round(), and ItemBase::SetQuantity().
|
inlineprivate |
References GetQuantityMin(), and ItemBase::SetQuantity().
|
inlineprivate |
|
inlineprivate |
References m_IsStoreLoad.
|
inlineprivate |
References m_StoreLoadedQuantity.
|
inlineprivate |
References m_IsTakeable.
References Math::Clamp(), GetWetMax(), GetWetMin(), m_VarWet, OnWetChanged(), and VARIABLE_WET.
|
inlineprivate |
References m_VarWetMax, and SetWet().
|
inlineprivate |
Sets zone damages to match randomized global health set by CE (CE spawn only)
References GetQuantity(), and IsSplitable().
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
References AddQuantity(), GetQuantity(), GetTargetQuantityMax(), ItemBase::SetQuantity(), and ShouldSplitQuantity().
|
inlineprivate |
References AddQuantity(), GetQuantity(), GetTargetQuantityMax(), GetType(), and ShouldSplitQuantity().
|
inlineprivate |
|
inlineprivate |
References SplitIntoStackMaxToInventoryLocationEx().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_IsOverheatingEffectActive.
|
private |
|
inlineprivate |
References m_ItemBeingDroppedPhys.
|
inlineprivate |
|
inlineprivate |
References m_IsOverheatingEffectActive.
|
inlinestaticprivate |
|
inlinestaticprivate |
References AddDebugActionsMask(), HasDebugActionsMask(), and RemoveDebugActionsMask().
|
inlineprivate |
transfer agents from another item
References m_AttachedAgents.
|
private |
appears to be deprecated, legacy code
|
inlineprivate |
Unlocks this item from its attachment slot of its parent.
References InventoryLocation::GetSlot().
|
inlineprivate |
|
inlineprivate |
References KillAllOverheatingParticles(), and UpdateAllOverheatingParticles().
|
inlinestaticprivate |
|
inlineprivate |
To be called on moving item within character's inventory; 'player' should never be null.
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
distinguish if item has been created as new or it came from splitting (server only flag)
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |