L L4D2node

CCoreDispInfo::GetTriIndices

0x000c3760 · 81 bytes · __thiscall

_ZN13CCoreDispInfo13GetTriIndicesEiRtS0_S0_

Decompiled

undefined (5 params)

/* CCoreDispInfo::GetTriIndices(int, unsigned short&, unsigned short&, unsigned short&) */

void __thiscall
CCoreDispInfo::GetTriIndices
          (CCoreDispInfo *this,int param_1,ushort *param_2,ushort *param_3,ushort *param_4)

{
  ushort *puVar1;
  int iVar2;
  
  if (((*(int *)(this + 0x1bc) != 0) && (-1 < param_1)) &&
     (iVar2 = 1 << ((byte)*(undefined4 *)(this + 0xc) & 0x1f), param_1 < iVar2 * iVar2 * 2)) {
    puVar1 = (ushort *)(*(int *)(this + 0x1bc) + param_1 * 8);
    *param_2 = *puVar1;
    *param_3 = puVar1[1];
    *param_4 = puVar1[2];
    return;
  }
  return;
}

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)