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

◆ PredictiveTakeToDst()

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

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

845 {
846 if (!ScriptInputUserData.CanStoreInputUserData())
847 {
848 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeToDst input data not sent yet, cannot allow another input action");
849 return false;
850 }
851
852 if (NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
853 return JunctureTakeToDst(src, dst);
854 else
855 return TakeToDstImpl(InventoryMode.PREDICTIVE, src, dst);
856 }
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:839
bool TakeToDstImpl(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
Определения 3_Game/DayZ/Entities/Man.c:868
bool NeedInventoryJunctureFromServer(notnull EntityAI item, EntityAI currParent, EntityAI newParent)
Определения 3_Game/DayZ/Entities/Man.c:163
proto void Print(void var)
Prints content of variable to console/log.

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