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

◆ EvaluateCollision()

void Hologram::EvaluateCollision ( ItemBase action_item = null)
inlineprotected

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

433 {
434 #ifdef DIAG_DEVELOPER
435 m_CollisionDetails = "";
436 #endif
437
438 if (!m_Player.CanPlaceItem(m_Projection))
439 {
440 #ifdef DIAG_DEVELOPER
441 m_CollisionDetails += "[Player]";
442 #endif
443 SetIsColliding(true);
444
445 }
447 {
448 SetIsColliding(true);
449 }
450 else if ( m_Projection.IsInherited( TrapSpawnBase ))
451 {
452 #ifdef DIAG_DEVELOPER
453 DebugText("Inherits from TrapSpawnBase, checking IsPlaceableAtposition", true);
454 #endif
455
456 TrapSpawnBase trapSpawnBase;
457 Class.CastTo(trapSpawnBase, m_Projection);
458 SetIsColliding(!trapSpawnBase.IsPlaceableAtPosition(m_Projection.GetPosition()));
459 }
460 else if (m_Projection.IsInherited(TrapBase))
461 {
462 #ifdef DIAG_DEVELOPER
463 DebugText("Inherits from TrapBase, checking IsPlaceableAtposition", true);
464 #endif
465 TrapBase trapBase;
466 Class.CastTo(trapBase, m_Projection);
467 SetIsColliding(!trapBase.IsPlaceableAtPosition(m_Projection.GetPosition()));
468 }
469 else
470 {
471 SetIsColliding(false);
472 }
473 }
void TrapBase()
Определения TrapBase.c:48
bool IsCollidingZeroPos()
Определения Hologram.c:663
bool IsInTerrain()
Определения Hologram.c:889
EntityAI m_Projection
Определения Hologram.c:22
bool HeightPlacementCheck()
Checks height relative to player's position.
Определения Hologram.c:821
bool IsUnderwater()
Определения Hologram.c:845
bool IsCollidingAngle()
Определения Hologram.c:507
bool IsCollidingGPlot()
Определения Hologram.c:651
PlayerBase m_Player
Определения Hologram.c:23
bool IsPlacementPermitted()
Checks if the item can be legally placed (usually checked by action as well)
Определения Hologram.c:807
bool IsCollidingBBox(ItemBase action_item=null)
Определения Hologram.c:540
bool IsBaseViable()
Определения Hologram.c:587
void SetIsColliding(bool is_colliding)
Определения Hologram.c:1293
bool IsCollidingPlayer()
Определения Hologram.c:1337
bool IsClippingRoof()
Определения Hologram.c:475
bool IsHidden()
Определения Hologram.c:1329
bool IsFloating()
Определения Hologram.c:1316
override bool IsPlaceableAtPosition(vector position)
Определения Trap_FishNet.c:37

Перекрестные ссылки Class::CastTo(), HeightPlacementCheck(), IsBaseViable(), IsClippingRoof(), IsCollidingAngle(), IsCollidingBBox(), IsCollidingGPlot(), IsCollidingPlayer(), IsCollidingZeroPos(), IsFloating(), IsHidden(), IsInTerrain(), TrapSpawnBase::IsPlaceableAtPosition(), IsPlacementPermitted(), IsUnderwater(), m_Player, m_Projection и SetIsColliding().

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