ComposeTextEmote
function · ui · orchestration
- Address
0x49b200· 761 bytes, up to0x49b4f8- Signature
void __fastcall (uint64_t *performer, int32_t textId, const char *targetName, uint32_t emoteNum)- Meaning
- Picks the template of a text emote and shows its sentence as an event line
- Confidence
- verified, proof one
- Finding
- ui/chatemote#the-sentence-column
Finding: The sentence column in ui: received text emotes
The composer returns without a line when the target name pointer is null (last error 0x57), the active
player object is missing, the performer has no name record, or the text id is negative, past the
EmotesText maximum or without a row. The row holds the sixteen EmotesTextData ids EmoteText[0..15] at
+0xc; the column is gender | untargeted | performerIsMe | targetIsMe.
| bit | value | set when |
|---|---|---|
| 0 | 1 | the performer is not the active player and the target name equals the player's own name (SStrCmp, case-sensitive) |
| 1 | 2 | the performer GUID is the active player's; the target compare is skipped |
| 2 | 4 | the target name is empty |
| 3 | 8 | the performer record's +0x13c is 1 |
The derivation is in the doc.
Callers 2
Callees 10
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- FireChatEvent ui
- DBCache::NameCache::GetRecord dbcache
- CGUnit_C::GetUnitName objectlayer
- CGUnit_C::PlayTextEmoteVoice objectlayer
- SStrCmp storm
- SStrPrintf storm
- SErrSetLastError storm
- SLogWrite storm
Calls and jumps by a bare address, from tables/calls.tsv.