benilla-re systems structs docs

CGUnit_C::IsPVPUI

function · objectlayer · primitive

Address
0x605ff0 · 110 bytes, up to 0x60605d
Signature
bool __thiscall (CGUnit_C *this)
Meaning
Returns the PvP flag of the unit's charmer or creator, false when the unit has bit 8, else its own PvP flag
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 3

Callees 1

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