4 protected vector m_vMinBounds;
7 protected vector m_vMaxBounds;
11 vector GetMinBoundsVector()
18 vector GetMaxBoundsVector()
27 protected ref Shape m_DebugShape;
41 return GetGame().GetWorld().QueryEntitiesByOBB(prefabData.GetMinBoundsVector(), prefabData.GetMaxBoundsVector(), transform,
CheckEntity,
FilterEntity, EQueryEntitiesFlags.ALL | EQueryEntitiesFlags.WITH_OBJECT);
48 if (!damageManager || !damageManager.IsDestroyed())
57 return ent.IsInherited(ChimeraCharacter);
63 SCR_SpawnPositionComponentManager manager = SCR_SpawnPositionComponentManager.GetInstance();
65 manager.AddSpawnPosition(
this);
71 super.OnPostInit(owner);
72 SetEventMask(owner, EntityEvent.INIT);
83 EntitySpawnParams
params =
new EntitySpawnParams();
84 params.TransformMode = ETransformMode.WORLD;
87 owner.GetTransform(
params.Transform);
89 int shapeFlags = ShapeFlags.WIREFRAME;
90 m_DebugShape = Shape.Create(ShapeType.BBOX, Color.CYAN, shapeFlags, prefabData.GetMinBoundsVector(), prefabData.GetMaxBoundsVector());
92 m_DebugShape.SetMatrix(
params.Transform);
96 override event void _WB_AfterWorldUpdate(IEntity owner,
float timeSlice)
104 owner.GetTransform(transform);
105 m_DebugShape.SetMatrix(transform);
118 SCR_SpawnPositionComponentManager manager = SCR_SpawnPositionComponentManager.GetInstance(
false);
120 manager.DeleteSpawnPosition(
this);