Jump to content
Korean Random

Ник игрока на миникарте


cheva

Recommended Posts

Парни подскажите пожалуйста как сделать что-бы на миникарте отображались ники бойцов, оч. надо для ком.боев.

Сам не смог разобраться , прошу помощи.

Link to comment
Short link
Share on other sites

minimapLabelsTemplates.xc->def->nickSpotted->flags, добавьте флаги ally и enemy.

 

Я только заметил, что в дефолтном конфиге уже есть секция для командных боев.

"nickSpottedCompany": {
  "$ref": { "path": "def.nickSpotted" },
  "flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ],
  "format": "<font size='{{battletype?8|{{squad?8|0}}}}' color='{{squad?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|{{tk?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|#BFBFBF}}}}'><i>{{name%.7s~..}}</i></font>"
},

Если у вас нет ее, добавьте ее (minimapLabelsTemplates.xc).

Нужно тоже в minimapLabels.xc->labels->formats добавить ${ "minimapLabelsTemplates.xc":"def.vehicleSpottedCompany" }

 

При этих настройках, ники будут отображаются только для совзводных. Если хотите иначе, напишите.

Edited by konrad509
Link to comment
Short link
Share on other sites

Um, no. Only when {{battletype}} doesn't return any value, which is determined by substituted values for this macro in the file texts.xc.

But why are you asking me this? I think you should know it. Aren't you one of XVM experts? ;)

And what did you mean by 7/54?

Edited by konrad509
Link to comment
Short link
Share on other sites

minimapLabelsTemplates.xc->def->nickSpotted->flags, добавьте флаги ally и enemy.

 

Я только заметил, что в дефолтном конфиге уже есть секция для командных боев.

"nickSpottedCompany": {
  "$ref": { "path": "def.nickSpotted" },
  "flags": [ "ally", "squadman", "teamKiller", "spotted", "alive" ],
  "format": "<font size='{{battletype?8|{{squad?8|0}}}}' color='{{squad?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|{{tk?{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}|#BFBFBF}}}}'><i>{{name%.7s~..}}</i></font>"
},

Если у вас нет ее, добавьте ее (minimapLabelsTemplates.xc).

Нужно тоже в minimapLabels.xc->labels->formats добавить ${ "minimapLabelsTemplates.xc":"def.vehicleSpottedCompany" }

 

При этих настройках, ники будут отображаются только для совзводных. Если хотите иначе, напишите.

В ком. боях у меня так получилось kb_xvm_240.jpgi.gif , т.е.название техники союзных 2 раза а ника нет. Помоги пожалуйста.

Edited by cheva
Link to comment
Short link
Share on other sites

Извините, ошибся.

Должно будет ${ "minimapLabelsTemplates.xc":"def.nickSpottedCompany" }

konrad509 спасибо, работает.

Только ник и название техники лезут друг на друга.

Можно убрать в КБ на миникарте название техники?

post-38689-0-97812500-1479059204_thumb.jpg

Link to comment
Short link
Share on other sites

Да, можно.

 

Замените секцию vehicleSpotted с этим

"vehicleSpotted": {
  "$ref": { "path":"def.defaultItem" },
  "x": 2,
  "y": "{{squad?7|-1}}",
  "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
  "format": "<font size='{{battletype?8|0}}' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>"
},
Link to comment
Short link
Share on other sites

 

Да, можно.

 

Замените секцию vehicleSpotted с этим

"vehicleSpotted": {
  "$ref": { "path":"def.defaultItem" },
  "x": 2,
  "y": "{{squad?7|-1}}",
  "flags": [ "ally", "enemy", "squadman", "teamKiller", "spotted", "alive" ],
  "format": "<font size='{{battletype?8|0}}' color='{{.minimap.labelsData.colors.txt.{{sys-color-key}}}}'>{{vehicle}}</font>"
},

Шэф , увсе пропало :sob0: В рандоме хочу название техники а в КБ ники союзников.Так гибко можно настроить?

post-38689-0-06287800-1479140851_thumb.jpg

minimapLabelsTemplates.xc

Edited by cheva
Link to comment
Short link
Share on other sites

Прошу прощения если не ясно выразил свою хотелку.

В КБ-ях(укреп, ГК) на миникарте ники союзников и название техники противника, в рандоме только название техники.

Думаю такая конфа будет востребована не только у кэпов, но и у обычных бойцов, кто хочет грамотно играть.

Сейчас вот что имею wotkb5_240.jpgi.gif

 

А, вы хотели это сделать только для союзников?

Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...