Example mod for Unit DPS measurement.

Everything about mods can be found here.

Moderator: Morax

Example mod for Unit DPS measurement.

Postby Uveso » 05 Feb 2019, 05:46

This is an example mod for DPS measurement.

You need to open the debug log window with [F9] to see the DPS output printing.

The mod works simple.
Just let a unit attack another unit.

The debug log will show something like this on the first hit:
Code: Select all
INFO: * OnDamage: I am under Attack! - Galactic Colossus (Experimental Assault Bot)


After the unit is killed, we will see the DPS count:
Code: Select all
INFO: * OnKilled: Unit [ uaa0310 - CZAR ] killed Unit [ ual0401 - Galactic Colossus ] with - DPS= 2793 - DamageAmount= 100000 - KillTime= 35.800018310547 - Hits= 100


http://faforever.uveso.de/forum/DPSMeter-v1.zip

If someone is interested in continue this, feel free to use this mod as base.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest