BlackSun

[0.9.17.0.1] Tank shell damages in vehicle markers

1 post in this topic

Hi!

 

I created a python macro for the XVM to show the vehicle shell damages. To use you just have to use this macro: {{py:blacksun.dmg('{{name}}')}}.

It also has a {{py:blacksun.level({{level}})}} macro to color and mark the vehicle tiers according to your vehicle tier. Green means lower, white means same and red means bigger.  There is a "+" or "-" mark for each tier difference. (So if your tank is T5 you'll see T3 as green "3--", T4 as green "4-" etc)

 

I attached the script and an example on how to use it. The py file goes into the "res_mods/configs/xvm/py_macro" folder. You don't have to do anything else to use it.

 

How it looks like:

s5NXpWc.jpg

 

Sidenote: This is my first ever python code, so the code might be a little silly.

 

blacksun.py

 

example.zip

Edited by BlackSun
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now