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

◆ PlayerCheckRequestDst()

bool PlayerCheckRequestDst ( notnull InventoryLocation src,
notnull InventoryLocation dst,
float radius )
protected

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

2508 {
2509 bool result = true;
2510
2511 EntityAI ent = dst.GetParent();
2512 if ( ent )
2513 {
2514 PlayerBase player = PlayerBase.Cast(ent.GetHierarchyRootPlayer());
2515 if (player)
2516 {
2517 if ( GetDayZPlayerOwner() != player )
2518 {
2519 if (player.IsAlive())
2520 {
2521 if (!player.IsRestrained() && !player.IsUnconscious())
2522 {
2523 return false;
2524 }
2525 }
2526 }
2527 }
2528 }
2529
2530 if ( result )
2531 {
2532 result = CheckMoveToDstRequest( GetManOwner(), src, dst, radius);
2533 }
2534
2535 return result;
2536 }
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
Определения PlayerBaseClient.c:2

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

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