Jump to content
Korean Random
Sign in to follow this  
Gorkde

How to show squad/Clan/Team members names only?

Recommended Posts

I want to see the names of my squad or clan players while playing a Team match or when we play as squad a random game.

But ONLY of them not from random players in my team of a random game.

 

Is there a way to change the config so it shows it that way? If I set the name to enable it will show up all player names on my side even random players.

 

Any Idea?

markers.xc

markersAliveNormal.xc

Share this post


Link to post

Short link
Share on other sites

So assume you want Tank Name (row 1) above Player Name (row 2):
- get the Y coordinates for rows 1 and 2 - Y1 and Y2
- your Tank Name definition needs conditional Y position
  - if squad, Y = Y1
  - else, Y = Y2
  - alpha is constant 100
- your Player Name definition needs conditional alpha
  - if squad, alpha = 100
  - else, alpha = 0
  - Y positioning is constant, Y2

This conditional stuff is the same as what you see in the minimap files. (If you want Player Name over Tank Name, then you simply give Player Name a conditional alpha macro.)

As for the above also working for clanmates, IDK if {{clan=clanname?}} works?

----- ----- -----

Update 1: {{clan=clanname?}} does not work -- the macro cannot read / compare the name of the clan.
The only way I know is to use {{clanicon?}} and make sure that only your clan has clan icons.
To achieve this, go to your modxvm.com settings, and ensure that the "Top clans counted" slider at the bottom is at 0.
Then set your own clanicons in \res_mods\mods\shared_resources\xvm\res\clanicons\[server]\clan

If you combine this with what I've posted above,
your Tank Name Y-position macro will look like this: "y": "{{squad?-50|{{clanicon?-50|-36}}}}" and
your Player Name alpha macro will look like this: "alpha": "{{squad?100|{{clanicon?100|0}}}}"
(values are from my own config)

 

----- ----- -----

 

Update 2: vlad's suggestion below to use {{my-clan}} should work.

Accordingly, the macros using my method will be "y": "{{squad?-50|{{my-clan?-50|-36}}}}" and "alpha": "{{squad?100|{{my-clan?100|0}}}}"

Edited by scyorkie

Share this post


Link to post

Short link
Share on other sites
I want to see the names of my squad or clan players while playing a Team match or when we play as squad a random game

 

try these:

"format": "{{my-clan?{{name}}|{{squad?{{name}}|}}}}"
or
"format": "<font size='{{my-clan?13|{{squad?13|0}}}}'>{{name}}</font>"
or as in default cfg:
"format": "<font size='{{battletype?13|{{squad?13|0}}}}'>{{name}}</font>"
Edited by vlad_cs_sr

Share this post


Link to post

Short link
Share on other sites

{{clan=clanname?}} does not work -- the macro cannot read / compare the name of the clan.

{{clan=[clanname]?}} or {{clannb=clanname?}}

Share this post


Link to post

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...