L L4D2node

CCoreDispInfo::SetTriIndices

0x000c37c0 · 82 bytes · __thiscall

_ZN13CCoreDispInfo13SetTriIndicesEittt

Decompiled

undefined (5 params)

/* CCoreDispInfo::SetTriIndices(int, unsigned short, unsigned short, unsigned short) */

void __thiscall
CCoreDispInfo::SetTriIndices
          (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);
    *puVar1 = param_2;
    puVar1[1] = param_3;
    puVar1[2] = param_4;
    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)