18 void ClearDebugShapes()
22 foreach (
auto shape : m_Shapes)
32 override void OnSetup()
48 m_OwnerPosition = human.GetBonePositionWS(human.GetBoneIndexByName(
"Head"));
53 float headingAngle = hic.GetHeadingAngle() +
Math.PI_HALF;
72 override void OnDebug(
vector p0,
vector p1,
bool hasHit,
bool found)
78 int alpha = 0x33000000;
79 int colour = 0x00FF0000;
92 m_Shapes.Insert(shape);
98 m_Shapes.Insert(shape);
103 override bool OnFirstContact(
Object other)
105 if (!other.IsTransport())
113 override bool OnQuery(
Object other)
115 if (other.IsScenery())
126 if (
Class.CastTo(entity, other))
128 if (entity.IsAnimal() || entity.IsZombie())
134 if (other.GetCollisionRadius() < 0.05)
142 override bool OnCollide(
Object other)
144 if (other.IsScenery())
154 if (!other.CanObstruct() && !other.IsTransport())