L L4D2node

GetHitboxSetName

0x003fc550 · 42 bytes · __cdecl

_Z16GetHitboxSetNameP10CStudioHdri

Decompiled

undefined (2 params)

/* GetHitboxSetName(CStudioHdr*, int) */

undefined1 * GetHitboxSetName(CStudioHdr *param_1,int param_2)

{
  int *piVar1;
  
  if ((param_1 != (CStudioHdr *)0x0) &&
     (piVar1 = (int *)(*(int *)param_1 + *(int *)(*(int *)param_1 + 0xb0) + param_2 * 0xc),
     piVar1 != (int *)0x0)) {
    return (undefined1 *)((int)piVar1 + *piVar1);
  }
  return &DAT_00d539c2;
}

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)