Loading...
  OR  Zero-K Name:    Password:   

About dps

11 posts, 1371 views
Post comment
Filter:    Player:  
sort
13 years ago
About damage per second/damage.
I've a widget that shows the damage a unit receieve. I've noticed that all planes recieve 148 (or was it 248, I can't remember perfectly) dps from a chainsaw instead of the 150 it should, per second. I say "should" because the unit description says so when you press space bar and click over the unit.
There is also the stricker commander that makes very much more damage that the description of unit says. The com had no extra weapon and was making roughly 75% more damage than it should have. I think it was against Jacks but I'm guessing he does this to every other units.
I've been trying to follow other units as well but it has been a bit hard so as of now these are the only one I'm 100% sure they make different damage than they should.
I'll post here as I see more of these weird facts.
+0 / -0
13 years ago
u do know space click isnt the most accuarate calculation of dps
+0 / -0


13 years ago
Space click often lies as it does not take enough data into account. For example heatrays have damage falloff with range and missile turret has a scripted reload.

The DPS widget should show exactly what is going on although it probably has rounding. Spring also has low precision on weapon damages such that damage is often slightly less (insignificantly so) than the value in the unitdef, for example a 10 damage weapon will take 11 shots to kill something with 100 hp.

As for armour types there are none for normal damage, iirc fire does less damage to Pyros and EMP does less damage to Ticks, Venom and Faraday.
+0 / -0
13 years ago
i do not think it is due to spring having "low precision on weapon damage" as damage and health are floats and a unit can for example take "175.354589" damage from a hit.

from my experience i think it is due to area damage of the weapon.
if the weapon deals 150, that is on a direct to the center of the target.
but as projectiles always explode slightly away from the center (at border of hitbox) the damage is a bit lower.
+0 / -0


13 years ago
> from my experience i think it is due to area damage of the weapon.
Should not be true for "impactOnly = true" weapons. I have tested (with PreDamaged) and Bandits do 7.8000 damage on hitting something, it's like Spring applies some constant offset when deciding damages. Also Bandit shoots with 2 framesbetween each shot 6 times and then once with a gap of 4 frames. This pattern repeats; 6 times a gap of 2 frame and 7th has 4.

The strange thing is Bandit has a damage of 8 and reload time 0.107 in the unitdef. 0.107 best rounds off to 1 shot every 3 frames not every 2 frames.
+0 / -0


13 years ago
Anyway I don't particularly care that unit damages in the game are not what they are set to in the unitdef. The game was balanced with this strange numerical behaviour.

It is annoying that the numbers are displayed incorrectly in the help files but idk what to do about that.
+0 / -0


13 years ago
we could override display with some tag but meh..
+0 / -0


13 years ago
I think I've figured it out. Disabling XP gain causes the Bandit to fire once every three gameframes as it (almost) should; as soon as it gets any XP it will use the pattern described by Google Frog.

Perhaps a mantis post is in order...
+0 / -0
Skasi
13 years ago
That's 'cause XP gain increases firerate and "powerscale" (whatever that is).

Don't tell me you didn't know.
http://code.google.com/p/zero-k/source/browse/trunk/mods/zk/gamedata/modrules.lua#82
+0 / -0


13 years ago
Obviously I knew - how do you think I turned off XP gain?

My point is that the resultant DPS increase is far too high (for reference: a Ravager (2s base reload) with the same amount of XP also loses 1 gameframe of reload time, which is almost no difference)
+0 / -0
13 years ago
[I]morphurdamnunits wrote:"I've a widget that shows the damage a unit receieve. I've noticed that all planes recieve 148 (or was it 248, I can't remember perfectly) dps from a chainsaw instead of the 150 it should, per second."
Technically chainsaws should do more DPS when the target is coming against the chansaiw and less when the target is going away from the chainsaw. Not that I know how the widget actually calculate though.
+0 / -0