Calculate DPS for weapons?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

ApoxNM
Posts: 783
Joined: Wed, 5. Dec 18, 06:17
x4

Calculate DPS for weapons?

Post by ApoxNM »

Hi there,

while working on customized weapon for a mod I went to discord got this formula from DeadAir: (damage * maxhits) / (reload time)
(this is considering "bullet_arg_turret_l_plasma_01_mk1_macro" only)

So that would be 1029

However, I still do not understand how the turret values effect DPS.

How does this line:
<reload rate="0.5" time="1" />
from the file "turret_par_l_plasma_01_mk1_macro" factor into DPS?

Also I seem to have a problem when changing only bullet_ values, that it actually doesn't increase fire rate, even when doubling the reload time.

- Also, how is "Average Turret output (MW)" calculated?

- what does this line mean exactly: <ammunition value="2" reload="9" />

- what's the difference between realod rate and reload time?

- How does <heat value="5756" /> factor into DPS?

I would appreciate any clarification on this!
Thank you.
User avatar
Shuulo
Posts: 1633
Joined: Mon, 14. Apr 08, 17:03
x4

Re: Calculate DPS for weapons?

Post by Shuulo »

Hello :)
You can check this table to see how I calculate things for a bullet.
And for other questions:
- The reload parameter in a turret itself does not impact DPS, its a leftover from XR (previous game) I believe.
- <ammunition value="2" reload="9" /> is a weapon clip, so it does 2 shots with the fire rate you set in "reload", and then it takes 9 seconds to reload the full clip again.
- reload rate is how many bullets it will shot in one second, reload time is time in seconds between shots. Just use whatever more practical for your case.
- heat does not impact DPS itself, but an overheated gun (turrets dont have heat) will, obviously, not shoot, lowering its SUSTAINED DPS.
ApoxNM
Posts: 783
Joined: Wed, 5. Dec 18, 06:17
x4

Re: Calculate DPS for weapons?

Post by ApoxNM »

Shuulo wrote: Thu, 20. Jun 24, 11:15 Hello :)
You can check this table to see how I calculate things for a bullet.
And for other questions:
- The reload parameter in a turret itself does not impact DPS, its a leftover from XR (previous game) I believe.
- <ammunition value="2" reload="9" /> is a weapon clip, so it does 2 shots with the fire rate you set in "reload", and then it takes 9 seconds to reload the full clip again.
- reload rate is how many bullets it will shot in one second, reload time is time in seconds between shots. Just use whatever more practical for your case.
- heat does not impact DPS itself, but an overheated gun (turrets dont have heat) will, obviously, not shoot, lowering its SUSTAINED DPS.
Hello Shuulo :)

thank you very much for getting back to me.
This table is actually perfect, I have been scratching my head doing calculations and got confused :gruebel:

Hope you are doing well, wishing the whole team a great week!

Return to “X4: Foundations - Scripts and Modding”