L L4D2node

CVoteController::NotifyVoteFailed

0x00b3ff20 · 163 bytes · __thiscall

_ZN15CVoteController16NotifyVoteFailedEv

Decompiled

undefined (1 param)

/* CVoteController::NotifyVoteFailed() */

void __thiscall CVoteController::NotifyVoteFailed(CVoteController *this)

{
  int *piVar1;
  undefined4 uVar2;
  undefined **local_2c [8];
  
  piVar1 = *(int **)(*(int *)(this + 0x540) + *(int *)(this + 0x440) * 4);
  uVar2 = (**(code **)(*piVar1 + 8))(piVar1);
  UTIL_LogPrintf("Vote failed \"%s %s\"\n",
                 *(int *)(*(int *)(this + 0x540) + *(int *)(this + 0x440) * 4) + 4,uVar2);
  CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_2c);
  local_2c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
                    /* try { // try from 00b3ff7d to 00b3ff81 has its CatchHandler @ 00b3ffc3 */
  CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_2c);
                    /* try { // try from 00b3ff85 to 00b3ffac has its CatchHandler @ 00b3ffd5 */
  CRecipientFilter::MakeReliable((CRecipientFilter *)local_2c);
  UserMessageBegin((IRecipientFilter *)local_2c,"VoteFail");
  MessageWriteByte(*(int *)(this + 0x444));
  MessageEnd();
  local_2c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
  CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_2c);
  return;
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

Just a Signatures{} block, ready to drop into a gamedata file. Wire it up in your plugin however you like - SDKCall, DHooks, raw memory ops, or anything else.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)