Skip to content
EvilEngine.Api.Weapons

ProjectileGlow record struct

public readonly record struct ProjectileGlow

A glowing sprite drawn on a projectile, from red, green and blue from 0 to 1 and its size in meters.

Assembly
EvilEngine.Api
Commit
4ff877b1

Members

ProjectileGlow constructor

public ProjectileGlow(double Red, double Green, double Blue, double Size)

Its colour and size.

Red property

public double Red { get; init; }

How red, from 0 to 1.

Green property

public double Green { get; init; }

How green, from 0 to 1.

Blue property

public double Blue { get; init; }

How blue, from 0 to 1.

Size property

public double Size { get; init; }

How wide it draws, in meters.

Sprite property

public ContentId? Sprite { get; init; }

A material drawn facing the view in place of the projectile’s model, as Source draws the AR2 ball, or null for the engine’s own glow in the colour.

Pulse property

public double Pulse { get; init; }

How far its width swings either way, in meters, or 0 to hold steady.

PulseRate property

public double PulseRate { get; init; }

How fast it pulses, in radians per second.

Rolled property

public bool Rolled { get; init; }

Whether the sprite turns to its own fixed angle, picked when it first shows.

Flicker property

public ProjectileFlicker? Flicker { get; init; }

A second sprite flickering over it, or null for none.

Blur property

public ProjectileBlur? Blur { get; init; }

Copies of a sprite trailing behind it while it moves fast, or null for none.