DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CheckForTakeItem()

bool DayZPlayer::CheckForTakeItem ( EntityAI item)
inlineprotected

anti-cheat condition

См. определение в файле DayZPlayerImplement.c строка 3684

3685 {
3686 bool restrained = IsRestrained(); // IsRestrained()
3687 bool unconscious = IsUnconscious(); // IsRestrained()
3688
3689 ItemBase ib = ItemBase.Cast(item);
3690 if (ib && (PlayerBase.DEBUG_INVENTORY_ACCESS || !IsAlive() || restrained || unconscious || ib.CanBeMovedOverride()))
3691 return true;
3692 return false;
3693 }
class GP5GasMask extends MaskBase ItemBase
bool IsRestrained()

Перекрестные ссылки IsRestrained().

Используется в CheckForDropItem().