Page 1 of 1
Display DPS v2.1
Posted: 08 May 2008, 15:46
by TheFatController
I figured this could use its own thread since it was quite popular on UF and this is the first time i've updated it in almost a year.
Display DPS v2.1

- Shows damage done to allied units (or all units in replay and spectator mode) in Worms style white floating numbers.
- Also shows EMP damage.
- Can't show damage done to enemies in a normal game as that information is not available to luaui.
Change Log v2.1
- HUGE loading time improvement for widget, thanks to [LCC]Licho for pointing this out
Change Log v2.0
- Performance tweaks
- Made code easier to read for reference (proper variable names etc)
- Now each unit has its own DPS timer rather than being tied to a global clock
- Now shows damage after unit has died
- Now shows in red the damage of the shot(s) that killed a unit (dgun for big big numbers!)
Download and extract the zip file to
spring/luaui/
http://pw3n.net/widgets/gui_display_dps.zip
Re: Display DPS v2.0
Posted: 08 May 2008, 15:50
by TheFatController
Better picture of new death damage
Re: Display DPS v2.0
Posted: 09 May 2008, 17:31
by el_matarife
I'm going to go ahead and clarify for everyone that this is just a damage taken widget, it doesn't show damage dealt to enemies. Still, it is pretty useful to keep track of the damage your units are taking.
Also, it does show damage taken by enemies when you're either spectating or analyzing your replay, which makes this a must have for replay analysis.
Re: Display DPS v2.1
Posted: 27 May 2008, 19:40
by TheFatController
Bump - everyone using v2.0 must upgrade so you can grab that favorate DSD startpoint faster!
Re: Display DPS v2.1
Posted: 27 May 2008, 20:41
by smoth
so it is a damage taken indication correct? Not damage given to the enemy..
Re: Display DPS v2.1
Posted: 27 May 2008, 20:43
by KDR_11k
It can't access the enemy's damage. You can still see both sides' damages in testing if you use spectator mode and godmode.
Re: Display DPS v2.1
Posted: 27 May 2008, 20:46
by smoth
cool, that oughta be pretty handy then :).
Re: Display DPS v2.1
Posted: 27 May 2008, 21:04
by lurker
Is the issue just a lack of running the callin? It would be simple enough to guess, or, better, set up a relay in gadgetland.
Also, despite the HUGE BOLD TEXT, for most people this will have no effect at all, it's just that some this widget used to take ages to load for some unknown reason, caused by it adding a value to unitdefs.
Re: Display DPS v2.1
Posted: 27 May 2008, 21:46
by Pxtl
On the lack of information on damage dealt - is that a cheat issue, or simply that the widget lacks this information? Becuase it seems fair to know damage dealt if the target is visible - you know how well you hit it, and the damage is deterministic, so it seems reasonable to know how much you did.
Re: Display DPS v2.1
Posted: 28 May 2008, 18:24
by Forboding Angel
I use this widget religiously, in fact i've even started a cult recently.
Thanks Controller, It will be going in evo the moment I get home.
Re: Display DPS v2.1
Posted: 28 May 2008, 19:57
by TheFatController
Lurker - I thought the slowdown was caused by calling GetUnitDefDimensions on every unit model in the mod in a row rather than adding to the defs (didn't greatly test just fixed and happy)
As for the widget not showing all damage, it shows all the damage that passes through UnitDamaged so if the way that works was changed the widget would just start working. The way i feel is UnitDamaged should be called for all enemies that dont have "hideDamage = true" in their defs.