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

◆ NeedInventoryJunctureFromServer()

override bool ManBase::NeedInventoryJunctureFromServer ( notnull EntityAI item,
EntityAI currParent,
EntityAI newParent )
inlineprotected

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

5345 {
5346 if (g_Game.IsMultiplayer())
5347 {
5349 switch (t)
5350 {
5351 case DayZPlayerInstanceType.INSTANCETYPE_AI_SINGLEPLAYER:
5352 return false;
5353 case DayZPlayerInstanceType.INSTANCETYPE_CLIENT:
5354 case DayZPlayerInstanceType.INSTANCETYPE_SERVER:
5355 case DayZPlayerInstanceType.INSTANCETYPE_AI_SERVER:
5356 case DayZPlayerInstanceType.INSTANCETYPE_AI_REMOTE:
5357 case DayZPlayerInstanceType.INSTANCETYPE_REMOTE:
5358 return true; // Might help mitigate "megabugged" (desync)
5359
5360 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] " + GetDebugName(this) + " STS=" + GetSimulationTimeStamp() + " NeedInventoryJunctureFromServer item=" + Object.GetDebugName(item) + " currPar=" + currParent + " newPar=" + newParent);
5361
5362 bool i_owned = GetHumanInventory().HasEntityInInventory(item);
5363
5364 bool cp_owned = false;
5365 if (currParent)
5366 cp_owned = GetHumanInventory().HasEntityInInventory(currParent);
5367
5368 bool np_owned = false;
5369 if (newParent)
5370 np_owned = GetHumanInventory().HasEntityInInventory(newParent);
5371
5372 bool all_owned = i_owned && cp_owned && (np_owned || (newParent == null));
5373 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] " + GetDebugName(this) + " STS=" + GetSimulationTimeStamp() + " NeedInventoryJunctureFromServer=" + !all_owned + " i_pwn=" + i_owned + " cp_pwn=" + cp_owned + " np_pwn=" + np_owned);
5374
5375 return !all_owned;
5376 default:
5377 Error("[syncinv] unsupported instance type t=" + t);
5378 break;
5379 }
5380 }
5381 return false;
5382 }
void syncDebugPrint(string s)
DayZGame g_Game
Определения DayZGame.c:4074
override string GetDebugName()
Определения dayzplayer.c:1191
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1084
proto native DayZPlayerInstanceType GetInstanceType()
class LOD Object
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), g_Game, GetDebugName(), GetInstanceType(), LogManager::IsSyncLogEnable() и syncDebugPrint().