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

◆ PlayerCheckRequestSrc()

bool PlayerCheckRequestSrc ( notnull InventoryLocation src,
float radius )
protected

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

2467 {
2468 bool result = true;
2469
2470 EntityAI ent = src.GetParent();
2471 if ( ent )
2472 {
2473 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
2474 if (player)
2475 {
2476 if ( GetDayZPlayerOwner() != player )
2477 {
2478 if (player.IsAlive())
2479 {
2480 if (!player.IsRestrained() && !player.IsUnconscious())
2481 {
2482 return false;
2483 }
2484 }
2485 }
2486 }
2487 }
2488
2489 if ( result )
2490 {
2491 result = CheckRequestSrc( GetManOwner(), src, radius);
2492 }
2493
2494 return result;
2495 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
bool CheckRequestSrc()
Определения Hand_Events.c:104
Определения Building.c:6
Определения PlayerBaseClient.c:2

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

Используется в ValidateDestroy(), ValidateSwap() и ValidateSyncMove().