![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
script counterpart to engine's class Inventory More...
Protected Member Functions | |
| bool | AreChildrenAccessible () |
| Returns true if item is considered reachable within inventory. | |
| proto native bool | CanAddSwappedEntity (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2) |
| bool | DropEntity (InventoryMode mode, EntityAI owner, notnull EntityAI item) |
| bool | DropEntityInBounds (InventoryMode mode, EntityAI owner, notnull EntityAI item, vector halfExtents, float angle, float cosAngle, float sinAngle) |
| bool | DropEntityWithTransform (InventoryMode mode, EntityAI owner, notnull EntityAI item, vector transform[4]) |
| proto native bool | FindFirstFreeLocationForNewEntity (string item_type, FindInventoryLocationType flags, out notnull InventoryLocation loc) |
| FindFirstFreeLocationForNewEntity. | |
| proto native bool | FindFreeLocationFor (notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc) |
| FindFreeLocationFor. | |
| proto native bool | FindFreeLocationForEx (notnull EntityAI item, FindInventoryLocationType flags, notnull InventoryLocation exclude, out notnull InventoryLocation loc) |
| FindFreeLocationForEx. | |
| proto native int | FindFreeLocationsFor (notnull EntityAI item, FindInventoryLocationType flags, out notnull array< ref InventoryLocation > locs) |
| proto native void | FlipCargo () |
| bool | ForceSwapEntities (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst) |
| bool | GetCurrentAttachmentSlotInfo (out int slot_id, out string slot_name) |
| Returns true if the item is currently attached and outputs attachment slot id and name. | |
| proto native bool | GetCurrentInventoryLocation (out notnull InventoryLocation loc) |
| proto native bool | GetFlipCargo () |
| bool | IsAttachment () |
| Returns true if this Inventory owner is an attachment of something. | |
| bool | IsCargoInHiearchy () |
| Returns true if inventory owner or his hiearchy parents are in cargo. | |
| bool | IsInCargo () |
| Returns true if this Inventory owner is in cargo of something. | |
| bool | LocalDestroyEntity (notnull EntityAI item) |
| void | OnInventoryFailure (InventoryCommandType type, InventoryValidationReason reason, InventoryLocation src, InventoryLocation dst) |
| bool | ReplaceItemWithNew (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda) |
| proto native void | ResetFlipCargo () |
| proto native void | SetFlipCargo (bool flip) |
| bool | SwapEntities (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2) |
| bool | TakeEntityAsAttachment (InventoryMode mode, notnull EntityAI item) |
| bool | TakeEntityAsAttachmentEx (InventoryMode mode, notnull EntityAI item, int slot) |
| bool | TakeEntityAsTargetAttachment (InventoryMode mode, notnull EntityAI target, notnull EntityAI item) |
| bool | TakeEntityAsTargetAttachmentEx (InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot) |
| put item as attachment of target | |
| bool | TakeEntityToCargo (InventoryMode mode, notnull EntityAI item) |
| bool | TakeEntityToCargoEx (InventoryMode mode, notnull EntityAI item, int idx, int row, int col) |
| bool | TakeEntityToInventory (InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item) |
| bool | TakeEntityToTargetCargo (InventoryMode mode, notnull EntityAI target, notnull EntityAI item) |
| Put item into into cargo of another entity. | |
| bool | TakeEntityToTargetCargoEx (InventoryMode mode, notnull CargoBase cargo, notnull EntityAI item, int row, int col) |
| Put item into into cargo on specific cargo location of another entity. | |
| bool | TakeEntityToTargetInventory (InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item) |
| helper that finds location first, then moves the entity into it | |
| bool | TakeToDst (InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst) |
| proto native EntityAI | GetInventoryOwner () |
| Engine native functions. | |
| proto native bool | HasEntityInInventory (notnull EntityAI item) |
| proto native bool | EnumerateInventory (InventoryTraversalType tt, out array< EntityAI > items) |
| proto native int | CountInventory () |
| almost identical to EnumerateInventory except it does not return items | |
| proto native CargoBase | GetCargo () |
| cargo | |
| proto native CargoBase | GetCargoFromIndex (int index) |
| proto native EntityAI | CreateEntityInCargo (string typeName) |
| Create Entity of specified type in cargo of entity. | |
| proto native EntityAI | CreateEntityInCargoEx (string typeName, int idx, int row, int col, bool flip) |
| Create Entity of specified type in cargo of entity at coordinates (row, col). | |
| proto native bool | HasEntityInCargo (notnull EntityAI e) |
| proto native bool | HasEntityInCargoEx (notnull EntityAI e, int idx, int row, int col) |
| proto native bool | CanAddEntityInCargo (notnull EntityAI e, bool flip) |
| proto native bool | CanAddEntityInCargoEx (notnull EntityAI e, int idx, int row, int col, bool flip) |
| proto native bool | CanAddEntityInCargoExLoc (InventoryLocation loc) |
| proto native bool | TestAddEntityInCargoEx (notnull EntityAI e, int idx, int row, int col, bool flip, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| proto native bool | TestAddEntityInCargoExLoc (notnull InventoryLocation loc, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| proto native bool | CanRemoveEntityInCargo (notnull EntityAI e) |
| proto native bool | CanRemoveEntityInCargoEx (notnull EntityAI e, int idx, int row, int col) |
| proto native int | GetSlotId (int index) |
| proto native int | GetSlotIdCount () |
| proto native int | GetAttachmentSlotId (int index) |
| proto native int | GetAttachmentSlotsCount () |
| bool | HasAttachmentSlot (int slotId) |
| proto native bool | HasInventorySlot (int slotId) |
| proto native int | AttachmentCount () |
| Returns count of attachments attached to this item. | |
| proto native EntityAI | CreateAttachment (string typeName) |
| proto native EntityAI | CreateAttachmentEx (string typeName, int slotId) |
| proto native EntityAI | GetAttachmentFromIndex (int index) |
| proto native EntityAI | FindAttachment (int slot) |
| Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id). | |
| proto native EntityAI | FindAttachmentByName (string slotName) |
| Returns attached entity in slot (you can use EntityAI.GetActionComponentName to get slot id). | |
| proto native bool | HasAttachment (notnull EntityAI e) |
| proto native bool | HasAttachmentEx (notnull EntityAI e, int slot) |
| proto native bool | CanAddAttachment (notnull EntityAI e) |
| proto native bool | CanAddAttachmentEx (notnull EntityAI e, int slot) |
| proto native bool | CanRemoveAttachment (EntityAI attachment) |
| proto native bool | CanRemoveAttachmentEx (EntityAI attachment, int slot) |
| proto native EntityAI | FindPlaceholderForSlot (int slot) |
| Returns placeholder entity for slot (naked arms, legs etc). | |
| proto native bool | IsPlaceholderEntity (notnull Object e) |
| proto native bool | CanLockInventoryWithKey (notnull EntityAI key) |
| locks | |
| proto native bool | CanUnlockInventoryWithKey (notnull EntityAI key) |
| proto native void | LockInventoryWithKey (notnull EntityAI key) |
| proto native void | UnlockInventoryWithKey (notnull EntityAI key) |
| proto native bool | HasKeys () |
| proto native void | LockInventory (int lockType) |
| proto native void | UnlockInventory (int lockType) |
| proto native int | GetScriptLockCount () |
| proto native bool | IsInventoryUnlocked () |
| proto native bool | IsInventoryLocked () |
| proto native bool | IsInventoryLockedForLockType (int lockType) |
| proto native bool | SetSlotLock (int slot, bool locked) |
| proto native bool | GetSlotLock (int slot) |
| void | Init () |
| script functions | |
| bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| db load hooks | |
| void | OnAfterStoreLoad () |
| void | OnStoreSave (ParamsWriteContext ctx) |
| db store hook | |
| void | EEInit () |
| void | EEDelete (EntityAI parent) |
| EntityAI | CreateInInventory (string type) |
| bool | CanAddEntityToInventory (notnull EntityAI item, int flag=FindInventoryLocationType.ANY) |
| bool | AddEntityToInventory (notnull EntityAI item) |
| bool | CanRemoveEntity () |
| Returns if entity can be removed from its current location. | |
| bool | CanAddEntityInto (notnull EntityAI item, FindInventoryLocationType flags=FindInventoryLocationType.ANY) |
| bool | CanAddEntityIntoInventory (notnull EntityAI item) |
| Test if entity can be put to the inventory (Cargo, ProxyCargo, Attachment). | |
| bool | CanAddEntityIntoHands (notnull EntityAI item) |
| Test if entity can be put into hands. | |
| bool | OnInputUserDataProcess (ParamsReadContext ctx) |
| synchronization | |
| bool | OnInventoryJunctureFromServer (ParamsReadContext ctx) |
| void | OnInventoryJunctureFailureFromServer (ParamsReadContext ctx) |
| void | OnServerInventoryCommand (ParamsReadContext ctx) |
Static Protected Member Functions | |
| static proto native bool | CanForceSwapEntities (notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst) |
| static bool | CanForceSwapEntitiesEx (notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst) |
| static proto native bool | CanSwapEntities (notnull EntityAI item1, notnull EntityAI item2) |
| static bool | CanSwapEntitiesEx (notnull EntityAI item1, notnull EntityAI item2) |
| static int | GetInventoryCheckContext () |
| static proto native bool | LocationAddEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationCanAddEntity (notnull InventoryLocation inv_loc) |
| static bool | LocationCanAddEntityEx (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationCanMoveEntity (notnull InventoryLocation src, notnull InventoryLocation dst) |
| static bool | LocationCanMoveEntitySyncCheck (notnull InventoryLocation src, notnull InventoryLocation dst) |
| static proto native bool | LocationCanRemoveEntity (notnull InventoryLocation inv_loc) |
| static proto native EntityAI | LocationCreateEntity (notnull InventoryLocation inv_loc, string type, int iSetupFlags, int iRotation) |
| static proto native EntityAI | LocationCreateLocalEntity (notnull InventoryLocation inv_loc, string type, int iSetupFlags, int iRotation) |
| static proto native EntityAI | LocationGetEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationMoveEntity (notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc) |
| static proto native bool | LocationRemoveEntity (notnull InventoryLocation inv_loc) |
| static proto native bool | LocationSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2) |
| static proto native bool | LocationSyncMoveEntity (notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc) |
| static proto native bool | LocationTestAddEntity (notnull InventoryLocation inv_loc, bool do_resevation_check, bool do_item_check, bool do_lock_check, bool do_occupancy_test, bool do_script_check, bool do_script_load_check) |
| static bool | MakeDstForSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2) |
| helper function for swap | |
| static bool | MakeSrcAndDstForForceSwap (notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, notnull InventoryLocation dst2) |
| helper function for ForceSwap | |
| static bool | MakeSrcAndDstForSwap (notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2) |
| helper function for swap | |
| static void | OnServerInventoryCommandStatic (ParamsReadContext ctx) |
| static proto native bool | PrepareDropEntityPos (EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1) |
| static proto native bool | ServerHandEvent (notnull Man player, notnull EntityAI item, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationMoveEntity (notnull EntityAI item, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationSwap (notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, ParamsWriteContext ctx) |
| static proto native bool | ServerLocationSyncMoveEntity (Man player, notnull EntityAI item, ParamsWriteContext ctx) |
| static bool | SetGroundPosByOwner (EntityAI owner, notnull EntityAI item, out InventoryLocation ground) |
| static void | SetGroundPosByOwnerBounds (EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector halfExtents, float angle, float cosAngle, float sinAngle) |
| static bool | SetGroundPosByTransform (EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector transform[4]) |
| static proto native bool | TestDropEntityPos (EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1) |
Static Protected Attributes | |
| static int | m_inventory_check_context = InventoryCheckContext.DEFAULT |
| const int | c_InventoryReservationTimeoutMS = 5000 |
| reservations | |
| const int | c_InventoryReservationTimeoutShortMS = 3000 |
| bool | AddInventoryReservationEx (EntityAI item, InventoryLocation dst, int timeout_ms) |
| bool | ExtendInventoryReservationEx (EntityAI item, InventoryLocation dst, int timeout_ms) |
| bool | ClearInventoryReservationEx (EntityAI item, InventoryLocation dst) |
| proto native int | GetAnyInventoryReservationCount () |
| static proto native bool | AddInventoryReservation (EntityAI item, InventoryLocation dst, int timeout_ms) |
| static proto native bool | ExtendInventoryReservation (EntityAI item, InventoryLocation dst, int timeout_ms) |
| static proto native bool | ClearInventoryReservation (EntityAI item, InventoryLocation dst) |
| static proto native bool | HasInventoryReservation (EntityAI item, InventoryLocation dst) |
| Internally: HasInventoryReservationEx(item, dst, FindInventoryReservationMode.LEGACY, FindInventoryReservationMode.LEGACY). | |
| static proto native bool | HasInventoryReservationCanAdd (EntityAI item, InventoryLocation dst) |
| Internally: !HasInventoryReservationEx(item, dst, FindInventoryReservationMode.ITEM, FindInventoryReservationMode.DST). | |
| static proto native bool | HasInventoryReservationEx (EntityAI item, InventoryLocation dst, FindInventoryReservationMode itemMode, FindInventoryReservationMode parentMode) |
| itemMode will iterate over item reservations, parentMode will iterate over parent reservations | |
| static proto native bool | GetInventoryReservationCount (EntityAI item, InventoryLocation dst) |
| const float | c_MaxItemDistanceRadius = 2.5 |
| anti-cheats | |
| static proto native bool | CheckRequestSrc (notnull Man requestingPlayer, notnull InventoryLocation src, float radius) |
| static proto native bool | CheckDropRequest (notnull Man requestingPlayer, notnull InventoryLocation src, float radius) |
| static proto native bool | CheckTakeItemRequest (notnull Man requestingPlayer, notnull InventoryLocation src, notnull InventoryLocation dst, float radius) |
| static proto native bool | CheckMoveToDstRequest (notnull Man requestingPlayer, notnull InventoryLocation src, notnull InventoryLocation dst, float radius) |
| static proto native bool | CheckSwapItemsRequest (notnull Man requestingPlayer, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, float radius) |
| static proto native bool | CheckManipulatedObjectsDistances (notnull EntityAI e0, notnull EntityAI e1, float radius) |
script counterpart to engine's class Inventory
Definition at line 80 of file inventory.c.
Definition at line 926 of file inventory.c.
References FindFreeLocationFor(), and LocationAddEntity().
|
staticprotected |
Referenced by AddInventoryReservationEx().
|
inlineprotected |
Definition at line 718 of file inventory.c.
References AddInventoryReservation(), InventoryLocation::DumpToStringNullSafe(), g_Game, Debug::InventoryReservationLog(), and LogManager::IsInventoryReservationLogEnable().
Referenced by WeaponManager::InventoryReservation(), DeferredSwapEntities::ReserveInventory(), and ReserveInventory().
|
inlineprotected |
Returns true if item is considered reachable within inventory.
Definition at line 442 of file inventory.c.
References ErrorEx, and GetInventoryOwner().
|
protected |
Returns count of attachments attached to this item.
Referenced by BodyPartHeatProperties(), InventoryItem::DamageItemAttachments(), Entity::EEInit(), ManBase::FindCargoByBaseType(), Entity::GetAttachmentByConfigTypeName(), Entity::GetAttachmentByType(), GetClosestCarWheel(), Entity::GetInventoryAndCargoWeight(), ManBase::GetMagazineToReload(), InventoryItem::GetNumberOfItems(), ClosableContainer::RecomputeContainers(), SetInactive(), Entity::SetInvisibleRecursive(), and ThrowAllItemsInInventory().
Referenced by ActionAttachOnSelection::FindSlotIdToAttachOrCombine().
|
protected |
|
protected |
|
inlineprotected |
Definition at line 961 of file inventory.c.
References FindFreeLocationFor().
Referenced by CanAddEntityIntoHands(), and CanAddEntityIntoInventory().
Test if entity can be put into hands.
Definition at line 978 of file inventory.c.
References CanAddEntityInto().
Referenced by ManBase::OnQuickBarSingleUse().
Test if entity can be put to the inventory (Cargo, ProxyCargo, Attachment).
Definition at line 970 of file inventory.c.
References CanAddEntityInto().
|
inlineprotected |
Definition at line 906 of file inventory.c.
References FindFreeLocationFor().
|
protected |
|
staticprotected |
Referenced by CanForceSwapEntitiesEx().
|
inlinestaticprotected |
Definition at line 666 of file inventory.c.
References CanForceSwapEntities(), and InventoryLocation::GetSlot().
Referenced by HandEventBase::CanPerformEvent(), HandEventSwap::CanPerformEvent(), WeaponManager::CanSwapMagazine(), LayoutHolder::CanSwapOrTakeToHandsEx(), Icon::DraggingOverSwap(), ItemManager::GetChosenCombinationFlag(), HandGuardBase::GuardCondition(), ManBase::OnQuickBarSingleUse(), WeaponManager::PrepareInventoryLocationForMagazineSwap(), Icon::Swap(), and ValidateSwap().
|
inlineprotected |
Returns if entity can be removed from its current location.
Definition at line 939 of file inventory.c.
References GetCurrentInventoryLocation(), and LocationCanRemoveEntity().
|
protected |
|
staticprotected |
Referenced by CanSwapEntitiesEx().
Definition at line 630 of file inventory.c.
References CanSwapEntities(), and InventoryLocation::GetSlot().
Referenced by WeaponManager::CanSwapMagazine(), LayoutHolder::CanSwapOrTakeToHandsEx(), AttachmentCategoriesRow::Combine(), PlayerContainer::DraggingOver(), AttachmentCategoriesRow::DraggingOverHeader(), ClosableContainer::DraggingOverHeader(), HandsContainer::DraggingOverHeader(), VicinityContainer::DraggingOverIcon(), ItemManager::GetChosenCombinationFlag(), HandsContainer::GetCombinationFlags(), InventoryGridController::GetQuickbarItemColor(), HandGuardBase::GuardCondition(), PlayerContainer::OnDropReceivedFromGhostArea(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), VicinityContainer::OnDropReceivedFromIcon(), ManBase::OnQuickBarSingleUse(), EntityAI::PredictiveTakeOrSwapAttachment(), WeaponManager::PrepareInventoryLocationForMagazineSwap(), AttachmentCategoriesRow::Select(), Attachments::Select(), Container::Select(), HandsPreview::Select(), PlayerContainer::Select(), VicinitySlotsContainer::Select(), ZombieContainer::Select(), EntityAI::SwapEntitiesImpl(), HumanInventory::SwappingToPreviousLocation(), ClosableContainer::TakeAsAttachment(), and HandsContainer::TakeAsAttachment().
|
staticprotected |
|
staticprotected |
Referenced by VicinityItemManager::AddVicinityItems().
|
staticprotected |
Referenced by HandEventBase::CheckRequest().
|
staticprotected |
Referenced by HandEventBase::CheckRequestSrc().
|
staticprotected |
Referenced by HandEventBase::CheckRequest(), and HandEventSwap::CheckRequest().
|
staticprotected |
|
staticprotected |
Referenced by HandStateEquipped::OnEntry(), and EntityAI::PredictiveMoveItemFromHandsToInventory().
|
inlineprotected |
Definition at line 764 of file inventory.c.
References ClearInventoryReservation(), InventoryLocation::DumpToStringNullSafe(), g_Game, Debug::InventoryReservationLog(), and LogManager::IsInventoryReservationLogEnable().
Referenced by ClearInventoryReservation(), DeferredSwapEntities::ClearInventoryReservation(), WeaponManager::InventoryReservation(), WeaponManager::OnSyncJuncture(), WeaponManager::OnWeaponActionEnd(), and DeferredSwapEntities::ReserveInventory().
|
protected |
almost identical to EnumerateInventory except it does not return items
Referenced by BotTestSwapInternal::OnEntry().
Referenced by MenuDefaultCharacterData::EquipDefaultCharacter().
Create Entity of specified type in cargo of entity.
|
protected |
Create Entity of specified type in cargo of entity at coordinates (row, col).
| typeName | type to create |
| row | the row of cargo to be created at |
| col | the column of cargo to be created at |
Definition at line 876 of file inventory.c.
References Error(), FindFirstFreeLocationForNewEntity(), InventoryLocation::GetCol(), InventoryLocation::GetFlip(), InventoryLocation::GetIdx(), InventoryLocation::GetParent(), InventoryLocation::GetRow(), InventoryLocation::GetSlot(), and InventoryLocation::GetType().
Referenced by AK101_Base::OnDebugSpawn(), AK74_Base::OnDebugSpawn(), AKM_Base::OnDebugSpawn(), Aug_Base::OnDebugSpawn(), B95_base::OnDebugSpawn(), CarScript::OnDebugSpawn(), Colt1911_Base::OnDebugSpawn(), CZ61_Base::OnDebugSpawn(), CZ75_Base::OnDebugSpawn(), Deagle_Base::OnDebugSpawn(), FAL_Base::OnDebugSpawn(), FNX45_Base::OnDebugSpawn(), Glock19_Base::OnDebugSpawn(), M14_Base::OnDebugSpawn(), M4A1_Base::OnDebugSpawn(), MakarovIJ70_Base::OnDebugSpawn(), Mosin9130_Base::OnDebugSpawn(), Mp133Shotgun_Base::OnDebugSpawn(), MP5K_Base::OnDebugSpawn(), PP19_Base::OnDebugSpawn(), R12_Base::OnDebugSpawn(), Rifle_Base::OnDebugSpawn(), Ruger1022_Base::OnDebugSpawn(), Saiga_Base::OnDebugSpawn(), SVD_Base::OnDebugSpawn(), Truck_01_Covered::OnDebugSpawn(), UMP45_Base::OnDebugSpawn(), BotTestSwapInternal::OnEntry(), Car::SpawnAdditionalItems(), PluginBase::SpawnEntityAsAttachment(), Entity::SpawnInInventoryOrGroundPos(), and Car::SpawnUniversalParts().
|
inlineprotected |
Definition at line 1266 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), OnInventoryFailure(), SetGroundPosByOwner(), and TakeToDst().
Referenced by SetInactive(), and ThrowEntityFromInventory().
|
inlineprotected |
Definition at line 1328 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), SetGroundPosByOwnerBounds(), and TakeToDst().
Referenced by DropAllItemsInInventoryInBounds().
|
inlineprotected |
Definition at line 1293 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), SetGroundPosByTransform(), and TakeToDst().
|
inlineprotected |
Definition at line 862 of file inventory.c.
References GetInventoryOwner().
|
inlineprotected |
Definition at line 845 of file inventory.c.
References GetCurrentInventoryLocation(), InventoryLocation::GetParent(), InventoryLocation::GetType(), inventoryDebugPrint(), and LogManager::IsInventoryMoveLogEnable().
Referenced by Entity::EEInit().
|
protected |
|
staticprotected |
Referenced by ExtendInventoryReservationEx().
|
inlineprotected |
Definition at line 741 of file inventory.c.
References InventoryLocation::DumpToStringNullSafe(), ExtendInventoryReservation(), g_Game, Debug::InventoryReservationLog(), and LogManager::IsInventoryReservationLogEnable().
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id).
Referenced by ManBase::CheckForGag(), Car::CheckVitalItem(), MenuDefaultCharacterData::EquipDefaultCharacter(), Entity::FindAttachmentBySlotName(), ActionAttachOnSelection::FindSlotIdToAttachOrCombine(), BotStateBase::OnEntry(), AnalyticsManagerClient::OnItemAttachedAtPlayer(), EntityAI::PredictiveTakeOrSwapAttachment(), DayZPlayer::ProcessVoiceEvent(), Entity::SetInvisibleRecursive(), and ManBase::UpdateCorpseStateVisual().
Returns attached entity in slot (you can use EntityAI.GetActionComponentName to get slot id).
References slotName.
Referenced by RecipeBase::Do().
|
protected |
FindFirstFreeLocationForNewEntity.
| [in] | item_type | item type that would be placed in inventory |
| [out] | loc | the InventoryLocation the item can be placed to |
Referenced by ManBase::CreateCopyOfItemInInventory(), and CreateInInventory().
|
protected |
FindFreeLocationFor.
| [in] | item | item that would be placed in inventory |
| [out] | loc | the InventoryLocation the item can be placed to |
Referenced by AddEntityToInventory(), CanAddEntityInto(), CanAddEntityToInventory(), ManBase::HandleRemoteItemManipulation(), EntityAI::PredictiveMoveItemFromHandsToInventory(), InventoryItem::SplitIntoStackMax(), InventoryItem::SplitIntoStackMaxEx(), TakeEntityToInventory(), and HumanInventory::TakeEntityToInventory().
|
protected |
FindFreeLocationForEx.
| [in] | item | item that would be placed in inventory |
| [out] | loc | the InventoryLocation the item can be placed to |
|
protected |
Returns placeholder entity for slot (naked arms, legs etc).
Referenced by ManBase::UpdateCorpseStateVisual().
|
protected |
|
inlineprotected |
Definition at line 1252 of file inventory.c.
|
protected |
Referenced by BodyPartHeatProperties(), InventoryItem::DamageItemAttachments(), Entity::EEInit(), ManBase::FindCargoByBaseType(), Entity::GetAttachmentByConfigTypeName(), Entity::GetAttachmentByType(), GetClosestCarWheel(), Entity::GetInventoryAndCargoWeight(), ManBase::GetMagazineToReload(), InventoryItem::GetNumberOfItems(), ClosableContainer::RecomputeContainers(), SetInactive(), and ThrowAllItemsInInventory().
Referenced by Entity::CanDisplayAnyAttachmentSlot(), HasAttachmentSlot(), and Entity::SetInvisibleRecursive().
|
protected |
Referenced by Entity::CanDisplayAnyAttachmentSlot(), Entity::EEInit(), Entity::EEItemAttached(), Entity::GetSlotsCountCorrect(), HasAttachmentSlot(), and Entity::SetInvisibleRecursive().
|
protected |
cargo
Referenced by BodyPartHeatProperties(), InventoryItem::CanReceiveAttachment(), Entity::CanReceiveItemIntoCargo(), Entity::CanSwapItemInCargo(), Entity::EEInit(), Entity::EEItemAttached(), Entity::GetInventoryAndCargoWeight(), InventoryItem::GetNumberOfItems(), IsObjectObstructedProxy(), StopCooling(), and ThrowAllItemsInInventory().
Returns true if the item is currently attached and outputs attachment slot id and name.
Definition at line 456 of file inventory.c.
References GetCurrentInventoryLocation(), InventoryLocation::GetSlot(), InventorySlots::GetSlotName(), InventoryLocation::GetType(), and InventorySlots::INVALID.
Referenced by ManBase::HideHairSelections().
|
protected |
Referenced by Entity::CanReleaseAttachment(), CanRemoveEntity(), HumanInventory::DropEntity(), EEInit(), GetCurrentAttachmentSlotInfo(), InventoryItem::GetQuantityMax(), IsAttachment(), IsInCargo(), HumanInventory::SwappingToPreviousLocation(), TakeEntityToCargoEx(), HumanInventory::TakeEntityToCargoEx(), HumanInventory::ThrowEntity(), and ThrowEntityFromInventory().
|
protected |
Referenced by TakeEntityToCargoEx(), and HumanInventory::TakeEntityToCargoEx().
|
inlinestaticprotected |
Definition at line 375 of file inventory.c.
References m_inventory_check_context.
Referenced by Container_Base::CanReceiveItemIntoCargo().
|
protected |
Engine native functions.
Referenced by AreChildrenAccessible(), EEDelete(), HumanInventory::GetManOwner(), Init(), IsCargoInHiearchy(), HumanInventory::LocalDestroyEntity(), HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl(), HumanInventory::ReplaceItemInHandsWithNewImpl(), TakeEntityAsAttachmentEx(), HumanInventory::TakeEntityAsAttachmentEx(), TakeEntityToCargoEx(), and HumanInventory::TakeEntityToCargoEx().
|
staticprotected |
|
protected |
|
protected |
Referenced by ManBase::HideHairSelections(), Entity::InitInherentSlotExclusionMap(), Entity::InitLegacySlotExclusionValuesDerived(), Entity::InitLegacySlotExclusionValuesImplicit(), EntityAI::PredictiveTakeOrSwapAttachment(), and HumanInventory::SwappingToPreviousLocation().
Referenced by Entity::CanReleaseAttachment().
Definition at line 188 of file inventory.c.
References GetAttachmentSlotId(), and GetAttachmentSlotsCount().
|
staticprotected |
Internally: HasInventoryReservationEx(item, dst, FindInventoryReservationMode.LEGACY, FindInventoryReservationMode.LEGACY).
Referenced by WeaponManager::InventoryReservation(), HandStateEquipped::OnEntry(), ManBase::OnQuickBarSingleUse(), DeferredSwapEntities::ReserveInventory(), and ReserveInventory().
|
staticprotected |
Internally: !HasInventoryReservationEx(item, dst, FindInventoryReservationMode.ITEM, FindInventoryReservationMode.DST).
|
staticprotected |
itemMode will iterate over item reservations, parentMode will iterate over parent reservations
Referenced by SlotToAnimType().
|
protected |
|
inlineprotected |
script functions
called by engine right after creation of entity
Definition at line 831 of file inventory.c.
References GetInventoryOwner().
|
inlineprotected |
Returns true if this Inventory owner is an attachment of something.
Definition at line 410 of file inventory.c.
References GetCurrentInventoryLocation(), and InventoryLocation::GetType().
|
inlineprotected |
Returns true if inventory owner or his hiearchy parents are in cargo.
Definition at line 423 of file inventory.c.
References GetInventoryOwner(), InventoryLocation::GetType(), and InventoryLocation::IsValid().
|
inlineprotected |
Returns true if this Inventory owner is in cargo of something.
Definition at line 397 of file inventory.c.
References GetCurrentInventoryLocation(), and InventoryLocation::GetType().
Referenced by EntityLightSource::CheckIfParentIsInCargo().
|
protected |
Referenced by ManBase::OnQuickBarSingleUse().
|
protected |
Referenced by VicinityContainer::UpdateInterval().
Definition at line 1346 of file inventory.c.
References Error(), g_Game, InventoryLocation::GetItem(), InventoryLocation::GetType(), inventoryDebugPrint(), and LogManager::IsInventoryMoveLogEnable().
Referenced by ManBase::RemoveAllItems().
|
staticprotected |
Referenced by AddEntityToInventory(), and ReplaceItemWithNewLambdaBase::UndoRemoveOldItemFromLocation().
|
staticprotected |
Referenced by LocationCanAddEntityEx(), and TransferInventory().
|
inlinestaticprotected |
Definition at line 350 of file inventory.c.
References LocationCanAddEntity().
|
staticprotected |
|
inlinestaticprotected |
Definition at line 380 of file inventory.c.
References LocationCanMoveEntity(), and m_inventory_check_context.
Referenced by ValidateSyncMove().
|
staticprotected |
|
staticprotected |
Referenced by ReplaceItemWithNewLambdaBase::CreateNewEntity(), SpawnEntity(), InventoryItem::SplitIntoStackMax(), InventoryItem::SplitIntoStackMaxEx(), InventoryItem::SplitIntoStackMaxToInventoryLocationEx(), InventoryItem::SplitItemToInventoryLocation(), ThrowEntityFromInventory(), and ActionUncoverHeadBase::UncoverHead().
|
staticprotected |
|
staticprotected |
Referenced by EntityAI::PredictiveMoveItemFromHandsToInventory().
|
staticprotected |
|
staticprotected |
Referenced by ReplaceItemWithNewLambdaBase::RemoveOldItemFromLocation().
|
staticprotected |
Referenced by HandActionBase::Action(), HandStartAction::OnEntry(), and OnServerInventoryCommandStatic().
|
staticprotected |
Referenced by HandActionBase::Action(), HandleDropMagazine(), PluginBase::MoveItemToCorrectPosition(), WeaponStateBase::OnAbort(), HandStartAction::OnEntry(), HandStateBase::OnEntry(), WeaponStateBase::OnEntry(), WeaponStateBase::OnExit(), OnServerInventoryCommandStatic(), PluginBase::RepairItem(), and TakeToDst().
|
staticprotected |
Referenced by HandGuardBase::GuardCondition().
|
protected |
|
protected |
|
inlinestaticprotected |
helper function for swap
Definition at line 1192 of file inventory.c.
Referenced by MakeSrcAndDstForSwap().
|
inlinestaticprotected |
helper function for ForceSwap
Definition at line 1223 of file inventory.c.
Referenced by ForceSwapEntities(), and HumanInventory::ForceSwapEntities().
|
inlinestaticprotected |
helper function for swap
Definition at line 1211 of file inventory.c.
References MakeDstForSwap().
Referenced by HandleSwapEntities(), HumanInventory::SwapEntities(), and SwapEntities().
|
protected |
|
protected |
synchronization
|
protected |
Referenced by DropEntity().
|
protected |
|
protected |
|
protected |
|
inlinestaticprotected |
Definition at line 471 of file inventory.c.
References HandEventBase::DumpToString(), InventoryLocation::DumpToStringNullSafe(), Error(), g_Game, InventoryLocation::GetItem(), LogManager::IsSyncLogEnable(), InventoryLocation::IsValid(), LocationSwap(), LocationSyncMoveEntity(), Serializer::Read(), InventoryLocation::ReadFromContext(), and syncDebugPrint().
|
inlineprotected |
db load hooks
Definition at line 837 of file inventory.c.
|
protected |
db store hook
|
inlineprotected |
Definition at line 1363 of file inventory.c.
References Error(), ReplaceItemWithNewLambdaBase::Execute(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and ReplaceItemWithNewLambdaBase::m_OldItem.
|
protected |
Referenced by Entity::EEInventoryOut().
|
staticprotected |
|
staticprotected |
|
staticprotected |
Referenced by InventoryInputUserData::SendServerSwap().
|
staticprotected |
Referenced by InventoryInputUserData::SendServerMove().
|
protected |
|
inlinestaticprotected |
Definition at line 1257 of file inventory.c.
References GameConstants::INVENTORY_ENTITY_DROP_OVERLAP_DEPTH, Math3D::MatrixIdentity4(), and PrepareDropEntityPos().
Referenced by HandEventRemove::CanPerformEventEx(), HandEventRemove::CheckRequestEx(), DropEntity(), OnEntry(), ActionUnpackGift::OnFinishProgressServer(), and StaticConstructionMethods::SpawnConstructionMaterialPiles().
|
inlinestaticprotected |
Definition at line 1309 of file inventory.c.
References Math::RandomFloat(), vector::RotateAroundZero(), vector::Up, and Vector().
Referenced by DropEntityInBounds().
|
inlinestaticprotected |
Definition at line 1286 of file inventory.c.
References GameConstants::INVENTORY_ENTITY_DROP_OVERLAP_DEPTH, and PrepareDropEntityPos().
Referenced by DropEntityWithTransform().
|
inlineprotected |
Definition at line 1247 of file inventory.c.
|
inlineprotected |
Definition at line 1179 of file inventory.c.
References inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeEntityToInventory().
|
inlineprotected |
Definition at line 1130 of file inventory.c.
References GetInventoryOwner(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeEntityAsTargetAttachmentEx().
|
inlineprotected |
Definition at line 1185 of file inventory.c.
References inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeEntityToTargetInventory().
|
inlineprotected |
put item as attachment of target
Definition at line 1137 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), InventoryLocation::SetAttachment(), and TakeToDst().
Referenced by TakeEntityAsAttachmentEx().
|
inlineprotected |
Definition at line 1080 of file inventory.c.
References inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeEntityToInventory().
|
inlineprotected |
Definition at line 1098 of file inventory.c.
References Error(), GetCurrentInventoryLocation(), GetFlipCargo(), GetInventoryOwner(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), InventoryLocation::SetCargo(), and TakeToDst().
|
inlineprotected |
Definition at line 1012 of file inventory.c.
References Error(), FindFreeLocationFor(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeToDst().
Referenced by TakeEntityAsAttachment(), and TakeEntityToCargo().
|
inlineprotected |
Put item into into cargo of another entity.
Definition at line 1087 of file inventory.c.
References inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeEntityToTargetInventory().
|
inlineprotected |
Put item into into cargo on specific cargo location of another entity.
Definition at line 1115 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), InventoryLocation::SetCargoAuto(), and TakeToDst().
|
inlineprotected |
helper that finds location first, then moves the entity into it
Definition at line 1031 of file inventory.c.
References Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), and TakeToDst().
Referenced by TakeEntityAsTargetAttachment(), and TakeEntityToTargetCargo().
|
inlineprotected |
Definition at line 1056 of file inventory.c.
References LocationSyncMoveEntity(), and InventoryInputUserData::SendServerMove().
Referenced by DropEntity(), DropEntityInBounds(), DropEntityWithTransform(), TakeEntityAsTargetAttachmentEx(), TakeEntityToCargoEx(), TakeEntityToInventory(), TakeEntityToTargetCargoEx(), TakeEntityToTargetInventory(), and ThrowEntityFromInventory().
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
reservations
Definition at line 714 of file inventory.c.
Referenced by ActionBase::InventoryReservation(), ActionRemoveSeed::InventoryReservation(), ActionTakeArrow::InventoryReservation(), ActionTakeArrowToHands::InventoryReservation(), ActionTakeHybridAttachment::InventoryReservation(), ActionTakeItem::InventoryReservation(), FirearmActionAttachMagazine::InventoryReservation(), FirearmActionAttachMagazineQuick::InventoryReservation(), WeaponManager::InventoryReservation(), SendServerHandEventViaJuncture(), SetEmoteLockState(), TakeToDst(), TryAcquireInventoryJunctureFromServer(), and TryAcquireTwoInventoryJuncturesFromServer().
|
protected |
Definition at line 715 of file inventory.c.
Referenced by InventoryItem::CombineItemsClient(), HandGuardBase::GuardCondition(), HandleForceSwapEntities(), HandleSwapEntities(), HandleTakeToDst(), HandStateBase::OnEntry(), InventoryItem::OnRightClick(), DeferredSwapEntities::ReserveInventory(), HandEventBase::ReserveInventory(), ReserveInventory(), ReserveInventory(), and ValidateSwap().
|
protected |
anti-cheats
Definition at line 815 of file inventory.c.
Referenced by HandEventBase::CheckRequest(), HandEventSwap::CheckRequest(), HandEventBase::CheckRequestSrc(), ManBase::HandleRemoteItemManipulation(), PlayerCheckSwapItemsRequest(), ValidateDestroy(), ValidateSwap(), and ValidateSyncMove().
|
staticprotected |
Definition at line 82 of file inventory.c.
Referenced by GetInventoryCheckContext(), and LocationCanMoveEntitySyncCheck().