Jump to content
Korean Random
Sign in to follow this  
BlackSun

Tank turret damage in marker possible? (still need help)

Recommended Posts

Hi!

 

I started doing a XVM config to show the turret damage (like with the vehicle info mod when you mouseover a tank) above everyone's head in the marker to see how scary someone is.
However I quickly ran into a problem: I have no idea how macros work in XVM and if it is even possible to do it.

I know that I can do simple check like {{vehicle=something?yes|no}}, but:

  1. Is there a way to get which turret he has?
  2. Is it possible to do lesser-greater check? {{level<5?yes|no}}
  3. Is it possible to get my vehicle tier to compare to the marker vehicle? {{level<{{mylevel}}?yes|no}}
  4. Is it possible to do basic math inside a macro? {{level<{{mylevel}}-2?yes|no}}

Only these macros are available? https://github.com/xergio/xvm/blob/master/doc/macros.txt

 

Tried to search those, but didn't really find any information,

Thank you!

Edited by BlackSun

Share this post


Link to post

Short link
Share on other sites

That's some old list. Go to https://bitbucket.org/XVM/xvm/src/a2baa8a7cc59323285e19f997d4c268aca275008/release/doc/?at=default or on your PC to res_mods\mods\shared_resources\xvm\doc to find up-to-date list of available macros.

 

1. The {{turret}} macro.

2. Yes.

3. Not sure what you want to compare.

4. No. Use Python macros for this.

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

That's some old list. Go to https://bitbucket.org/XVM/xvm/src/a2baa8a7cc59323285e19f997d4c268aca275008/release/doc/?at=default or on your PC to res_mods\mods\shared_resources\xvm\doc to find up-to-date list of available macros.

oh, thank you very much!!

 

edit: it seems like {{turret}} shows only if it's the stock turret or not, some vehicle has more than 2 turrets, so I cannot use that to decide which turret they use (to show the correct alpha dmg they have)

edit2: I'm done with it, used the python macro and it was easy, thanks for the help (again)!

Edited by BlackSun

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...