L L4D2node

ResponseRulePartition::Count

0x005b4020 · 37 bytes · __thiscall

_ZN21ResponseRulePartition5CountEv

Decompiled

undefined (1 param)

/* ResponseRulePartition::Count() */

int __thiscall ResponseRulePartition::Count(ResponseRulePartition *this)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = 0;
  iVar2 = 0;
  do {
    iVar1 = iVar3 + 0x12;
    iVar3 = iVar3 + 0x38;
    iVar2 = iVar2 + (uint)*(ushort *)(this + iVar1);
  } while (iVar3 != 0x3800);
  return iVar2;
}

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)