mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user