Jump to content
Korean Random
Sign in to follow this  
sku

Alpha damage of own gun

Recommended Posts

Hi,

i was wondering if there is some way (python call?) to get the alpha damage of the currently used gun.

What i had in mind is a value in players panel / over target marker that shows me the hits needed to kill a target (for clippers and seeing +- 25% RNG boundaries)

 

Share this post


Link to post

Short link
Share on other sites

Mouse over your ammo and you see the average damage per shot.

 

I dont want to know the alpha damage of my gun, but use that value for calculating how many shots i need to kill the target ( 390 alpha gun / 468 hp enemy = 1.2 -> 1 shot if RNG is with you)

 

Found something in configs/vxm/py_macro/vinfo.py

@xvm.export('vinfo.gun_reload', deterministic=False)
def gun_reload():
    typeDescriptor = _typeDescriptor()
    return None if not typeDescriptor else "%.1f" % (typeDescriptor.gun['reloadTime'])

Can i add my own export to make a macro here? If so, what is the field for alpha damage in typeDescriptor.gun?

 

Edit: Also i dont know much about python, do i need to compile this?

Edited by sku

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