Skip to content
EvilEngine.Api.Weapons

ProjectileBlur record struct

public readonly record struct ProjectileBlur

Copies of a sprite drawn in a line behind a projectile, spread and brightened by how far it moved since the last frame, as Source blurs the AR2 ball.

Assembly
EvilEngine.Api
Commit
4ff877b1

Members

ProjectileBlur constructor

public ProjectileBlur(ContentId Sprite, double Size, int Count)

Its sprite, width and how many copies.

Sprite property

public ContentId Sprite { get; init; }

The material drawn facing the view.

Size property

public double Size { get; init; }

How wide each copy draws, in meters.

Count property

public int Count { get; init; }

How many copies, the nearest a gap behind the projectile and each next one a gap further.

Spacing property

public double Spacing { get; init; }

The widest gap between copies, in meters.

Share property

public double Share { get; init; }

The gap as a share of how far the projectile moved since the last frame, up to the widest.

Start property

public double Start { get; init; }

How far the projectile moves in a frame, in meters, before any blur shows.

Full property

public double Full { get; init; }

How far it moves in a frame, in meters, for the blur to show at full brightness. Between the two the brightness grows evenly.

Faintest property

public double Faintest { get; init; }

The brightness of the furthest copy, from 0 to 1, with the nearest at 1 and the ones between evenly in between.