Hi,
i'm trying to extract firerate from transdata /itemtable
so, if you do transdata /itemtable /help
there is no /firerate option available (there is /firedelay, but that's not it)
however if you try, /firerate is accepted as a parameter and returns values for weapons.
now, I don't know how to convert these values to what I read in the XML.
For example, for the recoilless cannon (firerate 16) transdata returns 125
But do not despair!
extract with transdata /itemtable /criteria:"w" /damage /averagedamage
then do:
averageDamage*360/damage = firerate
how to extract firerate from transdata
- AssumedPseudonym
- Fleet Officer
- Posts: 1190
- Joined: Thu Aug 29, 2013 5:18 am
- Location: On the other side of the screen.
The /fireRate switch gives the same value as (typGetProperty weaponType 'fireRate). In one of my utility mods, I use (divide 2000 (typGetProperty weaponType 'fireRate)) to get the XML fireRate value. It’s… mostly accurate; weapons with an odd number fireRate return their fireRate-plus-one.digdug wrote:averageDamage*360/damage = firerate
Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)
My mods on Xelerus: Click here!
Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
- AssumedPseudonym
- Fleet Officer
- Posts: 1190
- Joined: Thu Aug 29, 2013 5:18 am
- Location: On the other side of the screen.
Actually, I think I remember having seen somewhere that the odd number fireRate weapons interact slightly differently with fireRateAdj and speed enhancements. For most intents and purposes, though, odd numbers are the same as odd-plus-one, yeah.
Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)
My mods on Xelerus: Click here!
Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)