1 [
ComponentEditorProps(
category:
"GameScripted/Spectating", description:
"Displays a colored sphere over an entity - if FactionAffiliationComponent is present")]
24 override void EOnFrame(IEntity owner,
float timeSlice)
77 m_Entity.GetWorld().GetCurrentCamera(camMat);
100 if (affiliatedFaction)
101 color = affiliatedFaction.GetFactionColor().PackToInt();
104 int flags = ShapeFlags.NOOUTLINE;
106 flags |= ShapeFlags.TRANSP;
117 owner.GetTransform(mat);
123 string name = owner.GetName();
124 int textcolor = color;
134 string name = owner.GetName();
139 owner.GetTransform(mat);
151 vector minAbsolute = min;
152 minAbsolute[2] = 0.001;
157 m_ShapeHealth = Shape.Create(ShapeType.BBOX, hpcolor, 0, min, max);
173 super.OnPostInit(owner);
174 SetEventMask(owner, EntityEvent.FRAME);