benilla-re systems structs docs

s_attackErrorState

global · objectlayer

Address
0xc4d758 · 4 bytes, up to 0xc4d75b
Type
uint32_t
Meaning
Holds the attack error to repeat: 1 bad position, 2 bad facing
Confidence
verified, proof one
Finding
objectlayer/players#attack-error-repeat

Finding: Attack error repeat in objectlayer: players

Every frame the active player with a melee target (+0xc48) shows ERR_BADATTACKPOS (0xd8) when 0xc4d758 is 1 or ERR_BADATTACKFACING (0xd7) when it is 2, at most once per 4,000 ms. 0x5ecdb0(state) sets the state and restarts the delay.

The derivation is in the doc.