benilla-re systems structs docs

CGUnit_C::UpdateBreathState

function · objectlayer · primitive

Address
0x607710 · 235 bytes, up to 0x6077fa
Meaning
Sets +0xc58 bit 0x20 deep under a liquid surface or 0x40 in a flagged area, next check in 10 s
Confidence
verified, proof one
Finding
objectlayer/unitbody#breath
Test
objectlayer::attack_range_in_difftest

Finding: Breath in objectlayer: unit body each frame

0x607710(time) sets the breath state every 10 seconds: bit 0x20 of +0xc58 when a liquid surface lies more than 5 yards above the unit's top, else bit 0x40 in an area whose flags have bit 0. The model event $BTH turns them into a breath effect: drunk, bubbles or a cold breath.

The derivation is in the doc.

Callers 3

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.