DEPRECATED.
TODO(kumarjac): Probably should be called through inventory juncture, we shouldn't allow the client to delete until the server says it is okay as there can be more reasons than "cheater" for it to be rejected such as desync
Do not check for action validity on remotes or when performing through juncture. Juncture locks guarentee the item is safe to interact with and the server has validated the command at this point. Checking at this point is both wasteful and can result in a failure which leads to desync
Do not check for action validity on remotes or when performing through juncture. Juncture locks guarentee the item is safe to interact with and the server has validated the command at this point. Checking at this point is both wasteful and can result in a failure which leads to desync
См. определение в файле DayZPlayerInventory.c строка 2641
2642 {
2644
2646 {
2653
2654 return true;
2655 }
2656
2659
2660 #ifdef ENABLE_LOGGING
2662 {
2664 }
2665 #endif
2666
2668 {
2669 #ifdef ENABLE_LOGGING
2671 {
2673 }
2674 #endif
2675
2676 Error(
"[syncinv] HandleInputData remote input (cmd=DESTROY) dropped, item not in bubble");
2677 return true;
2678 }
2679
2684 {
2685 #ifdef ENABLE_LOGGING
2687 {
2689 }
2690 #endif
2691
2692 return true;
2693 }
2694
2699 {
2700 #ifdef ENABLE_LOGGING
2702 {
2704 }
2705 #endif
2706
2707 return true;
2708 }
2709
2710 #ifdef ENABLE_LOGGING
2712 {
2714 }
2715 #endif
2716
2718
2720 return true;
2721 }
InventoryValidationResult
bool PlayerCheckDropRequest(notnull InventoryLocation src, float radius)
bool PlayerCheckRequestSrc(notnull InventoryLocation src, float radius)
DayZPlayer GetDayZPlayerOwner()
proto native void ObjectDelete(Object obj)
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
const float c_MaxItemDistanceRadius
anti-cheats
script counterpart to engine's class Inventory
static string DumpToStringNullSafe(InventoryLocation loc)
bool ReadFromContext(ParamsReadContext ctx)
proto native EntityAI GetItem()
returns item of current inventory location
InventoryValidationResult m_Result
static bool IsInventoryMoveLogEnable()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, InventoryLocation::DumpToStringNullSafe(), Error(), GetDayZPlayerOwner(), GetGame(), InventoryLocation::GetItem(), Debug::InventoryMoveLog(), LogManager::IsInventoryMoveLogEnable(), InventoryValidation::m_IsJuncture, InventoryValidation::m_IsRemote, InventoryValidation::m_Result, CGame::ObjectDelete(), PlayerCheckDropRequest(), PlayerCheckRequestSrc(), InventoryLocation::ReadFromContext() и ToString().