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

◆ PredictiveTakeToDst()

override bool EntityAI::PredictiveTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/Man.c строка 738

739 {
740 if (!ScriptInputUserData.CanStoreInputUserData())
741 {
742 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeToDst input data not sent yet, cannot allow another input action");
743 return false;
744 }
745
746 if (NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
747 return JunctureTakeToDst(src, dst);
748 else
749 return TakeToDstImpl(InventoryMode.PREDICTIVE, src, dst);
750 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
bool JunctureTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
to dst juncture
Определения 3_Game/DayZ/Entities/Man.c:733
bool TakeToDstImpl(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
Определения 3_Game/DayZ/Entities/Man.c:762
bool NeedInventoryJunctureFromServer(notnull EntityAI item, EntityAI currParent, EntityAI newParent)
Определения 3_Game/DayZ/Entities/Man.c:170
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), JunctureTakeToDst(), NeedInventoryJunctureFromServer(), Print() и TakeToDstImpl().