benilla-re systems structs docs

s_drunkThresholds

global · objectlayer

Address
0x80af68 · 12 bytes, up to 0x80af73
Type
float[3]
Meaning
Holds the drunk thresholds 0.01, 0.5 and 0.9
Confidence
verified, proof one
Finding
objectlayer/playerfields#drunk-messages

Finding: Drunk messages in objectlayer: player fields

PLAYER_BYTES_3 byte 1 is the drunk level, min(b,100)·0.01 as f32. For the active player it also updates the target, name plates and camera. It tests the thresholds 0.01, 0.5 and 0.9 in that order, as k = 0, 1 and 2: a rise across threshold k (old < t ≤ new) prints DRUNK_MESSAGE_SELF%d (_OTHER%d with the name) for k + 2 and skips threshold k + 1; a fall across it (new < t ≤ old) prints k + 1. A rise across two thresholds prints only the lower one's message, and a rise across all three prints messages 2 and 4; a fall across two prints both, the lower first. A NaN level crosses nothing.

The derivation is in the doc.