benilla-re systems structs docs

CGDuelInfo::OnDuelWinner

function · ui · orchestration

Address
0x4d4ba0 · 154 bytes, up to 0x4d4c39
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Handles SMSG_DUEL_WINNER by printing the winner line
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/duel#countdown-and-result

Finding: Countdown and result in ui: duels

SMSG_DUEL_COUNTDOWN carries the time in milliseconds; the handler stores it divided by 1000 as the seconds and starts the ProcessCountdown timer: each second it prints DUEL_COUNTDOWN with the remaining seconds as a system line in the chat and re-arms itself until the count is 0. SMSG_DUEL_COMPLETE ends a duel that is current: a flag of 0 shows ERR_DUEL_CANCELLED (310); DUEL_FINISHED (383) is signalled, the flag GUID is cleared and the countdown timer is killed. SMSG_DUEL_WINNER prints DUEL_WINNER_KNOCKOUT for a flag of 0, DUEL_WINNER_RETREAT otherwise, with the two names, as a system line.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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