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
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.
public ProjectileGlow(double Red, double Green, double Blue, double Size) Its colour and size.
public double Red { get; init; } How red, from 0 to 1.
public double Green { get; init; } How green, from 0 to 1.
public double Blue { get; init; } How blue, from 0 to 1.
public double Size { get; init; } How wide it draws, in meters.
public double Blink { get; init; } Seconds between blinks, or 0 to glow steadily.
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.
public double Pulse { get; init; } How far its width swings either way, in meters, or 0 to hold steady.
public double PulseRate { get; init; } How fast it pulses, in radians per second.
public bool Rolled { get; init; } Whether the sprite turns to its own fixed angle, picked when it first shows.
public ProjectileFlicker? Flicker { get; init; } A second sprite flickering over it, or null for none.
public ProjectileBlur? Blur { get; init; } Copies of a sprite trailing behind it while it moves fast, or null for none.