L L4D2node

CTerrorGameRules::GetScavengeRoundHalfScore

0x00508b60 · 53 bytes · __thiscall

_ZN16CTerrorGameRules25GetScavengeRoundHalfScoreEbi

Decompiled

undefined (3 params)

/* CTerrorGameRules::GetScavengeRoundHalfScore(bool, int) */

undefined4 __thiscall
CTerrorGameRules::GetScavengeRoundHalfScore(CTerrorGameRules *this,bool param_1,int param_2)

{
  _param_1 = (uint)param_1;
  if (param_2 < 1) {
    param_2 = 1;
    if (0 < *(int *)(this + 0x450)) {
      param_2 = *(int *)(this + 0x450);
    }
  }
  return *(undefined4 *)(this + (((_param_1 ^ 1) - 2) + param_2 * 2) * 4 + 0x3ac);
}

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)