benilla-re systems structs docs

CGUnit_C::CanCooperate

function · objectlayer · primitive

Address
0x606ba0 · 117 bytes, up to 0x606c14
Signature
bool __thiscall (CGUnit_C *this, CGUnit_C *other)
Meaning
Returns whether two different uncharmed units have templates with equal group masks
Confidence
verified, proof one
Name from
the community database (idb)
Finding
objectlayer/reaction#assisting-cooperating-and-interacting

Finding: Assisting, cooperating and interacting in objectlayer: reaction

0x6066f0(this = A, B) lets A assist B when B is selectable (bit 25 clear) and A's reaction is 4 or more. A controlled B's dueling player must share A's duel and team; a free-for-all one needs A's too; a missing player passes. An uncontrolled B passes for an uncontrolled A. Else, with a live charmer or creator unit, B fails on its own bit 8 and takes that unit's PvP flag; without one, it takes its own. A corpse needs a reaction of 4. Cooperating needs two uncharmed units, not one, with equal group masks. Interacting needs a selectable B with NPC flags, both reactions at least 3, and for a ghost A, a creature seen by ghosts.

The derivation is in the doc.

Callers 9

Callees 0

None by a direct call or jump.

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