22 foreach (
auto shape : m_Shapes)
48 m_OwnerPosition = human.GetBonePositionWS(human.GetBoneIndexByName(
"Head"));
78 int alpha = 0x33000000;
79 int colour = 0x00FF0000;
92 m_Shapes.Insert(shape);
98 m_Shapes.Insert(shape);
105 if (!other.IsTransport())
115 if (other.IsScenery())
128 if (entity.IsAnimal() || entity.IsZombie())
134 if (other.GetCollisionRadius() < 0.05)
144 if (other.IsScenery())
154 if (!other.CanObstruct() && !other.IsTransport())
vector m_DirectionFunc
The size of the boundig box, centered.
enum ProcessDirectDamageFlags m_Owner
vector m_OwnerDirection
The position of the owner in world space.
vector m_Transform[4]
If 'OnDebug' is to be called.
bool m_DebugEnabled
How much should the direction be favoured.
vector m_OwnerPosition
The owner performing the snap callback.
vector m_Extents
The true center of the bounding box of the object to be dropped in model space.
Super root of all classes in Enforce script.
override bool OnQuery(Object other)
override bool OnFirstContact(Object other)
override bool OnCollide(Object other)
void ~EntityPlacementCallback()
override void OnDebug(vector p0, vector p1, bool hasHit, bool found)
void EntityPlacementCallback()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static const float PI_HALF
static proto float Sin(float angle)
Returns sinus of angle in radians.