benilla-re systems structs docs

CGReputationInfo::GetFactionStandingReaction

function · ui · primitive

Address
0x4d63a0 · 93 bytes, up to 0x4d63fc
Signature
uint32_t __thiscall (CGReputationInfo *this)
Meaning
Returns the rank 0 to 7 of the player's standing with a faction, by thresholds from -6000 to 42000
Confidence
verified, proof one
Name from
the community database (idb)
Finding
objectlayer/reaction#faction-toward-a-unit

Finding: Faction toward a unit in objectlayer: reaction

0x606530(template, B) is a faction template's reaction toward unit B. A missing row on either side is 3. When B is controlled by the active player, three rules come first: a contested guard template (flag 0x1000) is hostile, 1, to a player flagged contested, bit 8 of PLAYER_FLAGS; a forced reaction for the template's faction is returned; a faction with a reputation slot returns the player's standing rank. Otherwise the templates are compared. 0x6061e0 calls it with A's template and caps the result at 6; when A is persuaded by B (field 18 holds B's GUID) or B has bit 14 of its unit flags, a rank of 2 to 4 rises by one, for a reputation faction only.

The derivation is in the doc.

Callers 6

Callees 1

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