ICrosshairs interface
public interface ICrosshairs Every player’s crosshair in a session, as the server holds it: the layers set over it and the events played on it. The host sends each player their part whenever it changes and plays the events on their screen, so nothing here needs the client.
A Plugin reaches it through its context’s Crosshairs, where its layers are named <id>:<name> for it and go when it unloads. The host’s own crosshair_play, crosshair_hold and crosshair_release commands and just map-shot --crosshair-layer and --crosshair-hold drive it too.
crosshairs.Everyone.Set(new CrosshairLayer("ctf:teams") { Locked = [CrosshairKey.Colour] });
crosshairs.Of(sniper)?.Set(new CrosshairLayer("ctf:scope") { Priority = CrosshairLayer.Weapon, Hidden = true });
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1