s_drunkCosineMean
global · objectlayer
- Address
0x80c5d4· 4 bytes, up to0x80c5d7- Type
const float- Meaning
- Holds 0.333333, the factor that takes the mean of the three drunk sway cosines
- Confidence
- verified, proof one
- Finding
- objectlayer/unitbody#drunk-sway
Finding: Drunk sway in objectlayer: unit body each frame
0x60ab20(time, drunkenness) is the sway angle: the drunkenness times 0.75° (0x80c4bc) times the
mean of three cosines at slow, unrelated rates. 0x60aba0 clamps a pitch to ±π/2.
The derivation is in the doc.