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

◆ PlayerCheckRequestSrc()

bool PlayerCheckRequestSrc ( notnull InventoryLocation src,
float radius )
protected

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

2477 {
2478 bool result = true;
2479
2480 EntityAI ent = src.GetParent();
2481 if ( ent )
2482 {
2483 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
2484 if (player)
2485 {
2486 if ( GetDayZPlayerOwner() != player )
2487 {
2488 if (player.IsAlive())
2489 {
2490 if (!player.IsRestrained() && !player.IsUnconscious())
2491 {
2492 return false;
2493 }
2494 }
2495 }
2496 }
2497 }
2498
2499 if ( result )
2500 {
2501 result = CheckRequestSrc( GetManOwner(), src, radius);
2502 }
2503
2504 return result;
2505 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
bool CheckRequestSrc()
Определения Hand_Events.c:104
Определения PlayerBaseClient.c:2

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

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