mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 06:13:09 +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:
@@ -260,7 +260,13 @@
|
||||
"fillAlphaOffset": 0.6,
|
||||
"colorR": 1,
|
||||
"colorG": 0,
|
||||
"colorB": 0
|
||||
"colorB": 0,
|
||||
"selfColorR": 0,
|
||||
"selfColorG": 1,
|
||||
"selfColorB": 0,
|
||||
"allyColorR": 1,
|
||||
"allyColorG": 1,
|
||||
"allyColorB": 0
|
||||
},
|
||||
"moveIndicator": {
|
||||
"startRadius": 13,
|
||||
|
||||
Reference in New Issue
Block a user