Forged Alliance Forever Forged Alliance Forever Forums 2017-11-23T05:33:51+02:00 /feed.php?f=41&t=15486 2017-11-23T05:33:51+02:00 2017-11-23T05:33:51+02:00 /viewtopic.php?t=15486&p=156929#p156929 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
looks like you are really interested in this.

That's why i want so share a smal mod from my private collection to show how dps etc. are calculated.
The mod wil also add some additional informations to the Tooltip: (enable "Display more Unit Stats")

SmartTip.png
You will se 3 different DPS stats for every weapon. (It's my debug mod for dps calculation)

Damage: Are the calculations from the game. This needs the option "Display more Unit Stats" enabled!
Hussar: These numbers are based on the unitmanger "UnitsAnalyzer.lua.GetWeaponSpecs()"
Uveso: My own calculations about dps ^^

(Why 3 ????; Well, we need at least 1 helper variable added to some units to make a accurate dps calculation of all weapons. - But that's another story)

And on the last line you can see the unitID and the corresponding mod name for the unit.

You can find the dps calculations in one file:
Code:
\Mods\SmartUnitTooltip\hook\lua\ui\game\unitviewDetail.lua

There you can see how the tooltip is hooked into the game and the different dps calculation functions for each weapongroup.
(Starting line 305 "function GetWeaponDPS(bp,weapon)")

You can use everything from the mod if you do me a favor.
If you find a better calculation or a bug, please tell me/us :)

Greetings, Uveso.

Statistics: Posted by Uveso — 23 Nov 2017, 05:33


]]>
2017-11-23T00:02:48+02:00 2017-11-23T00:02:48+02:00 /viewtopic.php?t=15486&p=156922#p156922 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]> Statistics: Posted by Zsombi — 23 Nov 2017, 00:02


]]>
2017-11-20T19:45:47+02:00 2017-11-20T19:45:47+02:00 /viewtopic.php?t=15486&p=156852#p156852 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
Zsombi wrote:
Again, going by the wiki, RoT is calculated value yet, it is not since we have to give it... :?


Rot is not always a calculated value. You can set it in most weapons types (you need to adjust or sync reload timers too on some). But it depends of the weapon itself.

You can change it in units blueprints, or by using some methods (Weapon:ChangeRateOfFire(MyNewValue) or by Applying a Buff).

I currently making a mod that changes Rof of weapons in real time (by switching between stances (Normal -> offensive) or by upgrading the weapons). And it works.

Why do you care about Rof ?

Statistics: Posted by Franck83 — 20 Nov 2017, 19:45


]]>
2017-11-20T19:34:24+02:00 2017-11-20T19:34:24+02:00 /viewtopic.php?t=15486&p=156851#p156851 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
Dot = Damage over Time.
DotTime is the dot duration (must be in seconds since 2.5 ticks has no sense, must be integer values).
DotPulses is the number of pulses in DotTime.

DoTPulses = 15 pulses of 1 damage during 2.5s.

RateofFire = 10 means that each second 10 x (15 pulses of 1 damages during 2.5s are applied).

So DPS is increasing overtime to reach maximum effect.

Second 1 = 150 pulses of 1 damage
Second 2 = 300 pulses of 1 damages are active
Second 2.5 = 375 pulses of 1 damages are active (peak dps)
Second 3 = 375 pulses actives (some of the first one are out of timer after 2.5s)....

This seems to simulate well a flamer weapon.

Statistics: Posted by Franck83 — 20 Nov 2017, 19:34


]]>
2017-11-20T19:09:15+02:00 2017-11-20T19:09:15+02:00 /viewtopic.php?t=15486&p=156849#p156849 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
Franck83 wrote:
The subject is more complex than it seems. ...


Let's take an example. Back Ops ACU UEF flamer weapon:
code snippet

Code:
    Damage = 1,
    DoTPulses = 15,
    DoTTime = 2.5,
    RateOfFire = 10,


Does this mean that the projectile's 1 damage value will be applied 15 times in a span of time measured in 2.5 ticks ( 0,25 sec. ? ) ... times 10?

Again, going by the wiki, RoT is calculated value yet, it is not since we have to give it... :?
I still don't understand. :oops: There are several other time-defining parameters already .. so what is it's use, the logic in it's function, if it's a calculated value why do we have to define it why isn't it actually calculated internally, when I define it what other values do I have to take into account and which one why, so on.

Statistics: Posted by Zsombi — 20 Nov 2017, 19:09


]]>
2017-11-20T18:19:40+02:00 2017-11-20T18:19:40+02:00 /viewtopic.php?t=15486&p=156838#p156838 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
RoF is easy to understand for beams weapons. Just one value to change. In modding, editing unit bp or using Weapon:ChangeRateOfFire(MyNewValue) will be ok.

But for some kind of weapons (missiles, bombs...) you can have reload timers. Doubling Rof will not be always effective. Sometimes, you can be in desync with reload timers.

Statistics: Posted by Franck83 — 20 Nov 2017, 18:19


]]>
2017-11-20T16:32:06+02:00 2017-11-20T16:32:06+02:00 /viewtopic.php?t=15486&p=156817#p156817 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]>
speed2 wrote:
1s = 10 ticks

Thanks.

What about RateOfFire?

This is the Wiki page on the subject. However whichever unit .bp i look at there is only one value associated with that property. Why is that, and where is it used outside perhaps displayed description text?

Spoiler: show
I even looked at FAF-ized bp files but those are not much better than the vanilla files when it comes to code description comments. The game is quite old, the faf team & contributors have achieved quite a lot, yet there is still no proper guide.. the documentation on the wiki I linked to above is rudimentary at best.

Statistics: Posted by Zsombi — 20 Nov 2017, 16:32


]]>
2017-11-19T14:58:46+02:00 2017-11-19T14:58:46+02:00 /viewtopic.php?t=15486&p=156745#p156745 <![CDATA[Re: Blueprint question.. RoF, DoTT.]]> Statistics: Posted by speed2 — 19 Nov 2017, 14:58


]]>
2017-11-19T14:32:50+02:00 2017-11-19T14:32:50+02:00 /viewtopic.php?t=15486&p=156741#p156741 <![CDATA[Blueprint question.. RoF, DoTT.]]>
DoTT, the wiki states that it's value is measured in ticks, so how much is that in 'everyday' time measurements? Is 1 tick 1 sec. or is it 0,1 sec.? For ex. how long would 2.5 mean? or 0.5? in simple numbers that is a half, but in sec. or mil.sec. a half is not 0.5 but 0.30 .

Thanks.

Statistics: Posted by Zsombi — 19 Nov 2017, 14:32


]]>