CrosshairLayer record
public sealed record CrosshairLayer An override a gamemode, a weapon or any Plugin lays over a crosshair with ICrosshair.Set. Every key left null leaves the crosshair as it was.
What the player sees is the shown style’s record, then the player’s own values for the keys the style lets them set, then every layer, lowest priority first and ties in the order they were set. A layer’s keys beat the player’s, and its locks take the player’s values away even for keys it doesn’t set. Nothing a layer does shows a crosshair the player turned off with crosshair 0.
new CrosshairLayer("shotgun")
{
Priority = CrosshairLayer.Weapon,
Gap = 12,
Thickness = 2,
Locked = [CrosshairKey.Gap]
};
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1