Color nuke telegraph circles by launcher relation (self/ally/enemy)

The blast-radius warning circle was always red, so players couldn't
tell who launched an incoming nuke. Now it's green for your own
nukes, yellow for ally/teammate nukes, and red for everyone else's.

Each telegraph carries a relation (0=self, 1=friendly, 2=enemy),
classified from the per-tick relation matrix — the same friend/foe
logic alt-view uses — and passed to the shader as a per-instance
attribute. Replay/spectator mode (no local player) stays all red.
Colors are tunable via the nukeTelegraph slice in render-settings.json.
This commit is contained in:
evanpelle
2026-06-12 15:32:25 -07:00
parent 32011d2ed2
commit 03b405eea7
9 changed files with 278 additions and 20 deletions
+7 -1
View File
@@ -299,9 +299,15 @@ export interface RenderSettings {
pulseAmplitude: number; // alpha pulse ±
pulseSpeed: number; // pulse frequency (radians/sec)
fillAlphaOffset: number; // inner fill is baseAlpha minus this
colorR: number; // circle color
colorR: number; // circle color — enemy nukes
colorG: number;
colorB: number;
selfColorR: number; // circle color — own nukes
selfColorG: number;
selfColorB: number;
allyColorR: number; // circle color — ally/teammate nukes
allyColorG: number;
allyColorB: number;
};
moveIndicator: {
startRadius: number; // screen px — initial distance from center