L L4D2node

SV_ModelIndex

0x00209ee0 · 55 bytes · __cdecl

_Z13SV_ModelIndexPKc

Decompiled

undefined (1 param)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* SV_ModelIndex(char const*) */

int SV_ModelIndex(char *param_1)

{
  int iVar1;
  int iVar2;
  
  if (_DAT_003e52c4 != (int *)0x0) {
    iVar1 = (**(code **)(*_DAT_003e52c4 + 0x34))(_DAT_003e52c4,param_1);
    iVar2 = -1;
    if (iVar1 != 0xffff) {
      iVar2 = iVar1;
    }
    return iVar2;
  }
  return -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)