benilla-re systems structs docs

s_fmtSpeed

global · ui

Address
0x854c5c · 8 bytes, up to 0x854c63
Type
const char[8]
Meaning
Holds the format %s %.2f of a weapon's speed cell
Confidence
verified, proof one
Finding
ui/tooltipitemstats#speed-and-damage-per-second

Finding: Speed and damage per second in ui: Item damage, armor and stat lines

The first damage line of a weapon (class 2) has a right cell, the word SPEED and the delay in seconds as "%s %.2f", a literal rather than a key; every other line has an empty right cell. After the loop, a weapon with at least one damage line adds DPS_TEMPLATE with one number: the sum over the slots of (minimum + maximum) / 2 taken from the unrounded floats, divided by the delay in seconds. A slot without a line adds nothing to the sum. Ammunition shows neither. There is no guard for a delay of 0.

The derivation is in the doc.