Hi,
i posted an addition in [v7.2] [INTERNATIONAL] [gz] CustomGroundShapeDecorator
Originally Posted by
gjuz
This is a Helper Class to display N-Stars or regular N-Edge
...
Rotation is optional, RotationSpeed: small int is faster
more examples:
PHP Code:
triangle: Vertices = 3
square: Vertices = 4
cross or plus: Vertices = 4, SkipVertices = 2
pentagon: Vertices = 5
pentagram: Vertices = 5, SkipVertices = 2, Angle = 45f
5-Star: Vertices = 5, SkipVertices = 2, Angle = 9f
2 trinagles: Vertices = 6, SkipVertices = 2
octagon: Vertices = 8
2 squares: Vertices = 8, SkipVertices = 2
3 trinagles: Vertices = 9, SkipVertices = 3
this is how i could be as /plugins/Default/Decorators/GroundShapeDecorator.cs
usage:
PHP Code:
new GroundShapeDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 255, 255, 5),
Radius = 10f,
Shape = GroundShape.NStar,
HasShadow = true,
Vertices = 5,
Angle = 45f,
SkipVertices = 1,
Rotation = false,
RotationSpeed = 30
};
request:
@KJ add this to your default files
greetz gjuz