L L4D2node

CMapLoadHelper::BoundsCheck_texinfo

0x001cfe80 · 83 bytes · __thiscall

_ZN14CMapLoadHelper19BoundsCheck_texinfoEi

Decompiled

undefined (2 params)

/* CMapLoadHelper::BoundsCheck_texinfo(int) */

int __thiscall CMapLoadHelper::BoundsCheck_texinfo(CMapLoadHelper *this,int param_1)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = GetLoadName(this);
  iVar2 = GetMap();
  if ((param_1 < *(int *)(iVar2 + 0x58)) && (-1 < param_1)) {
    return param_1;
  }
  Sys_Error("Couldn\'t load corrupted map %s",uVar1);
  return param_1;
}

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)