L L4D2node

CCoreDispInfo::InitDispInfo

0x000be520 · 302 bytes · __thiscall

_ZN13CCoreDispInfo12InitDispInfoEiifPK9CDispVertPK8CDispTri

Decompiled

undefined (6 params)

/* CCoreDispInfo::InitDispInfo(int, int, float, CDispVert const*, CDispTri const*) */

void __thiscall
CCoreDispInfo::InitDispInfo
          (CCoreDispInfo *this,int param_1,int param_2,float param_3,CDispVert *param_4,
          CDispTri *param_5)

{
  int iVar1;
  Vector *pVVar2;
  int iVar3;
  int iVar4;
  Vector *local_16c4;
  float local_16b0 [289];
  float local_122c [289];
  Vector local_da8 [3480];
  
  iVar1 = 1 << ((byte)param_1 & 0x1f);
  iVar4 = iVar1 + 1;
  iVar4 = iVar4 * iVar4;
  if (0 < iVar4) {
    iVar3 = 0;
    pVVar2 = local_da8;
    do {
      *(undefined4 *)pVVar2 = *(undefined4 *)param_4;
      *(undefined4 *)(pVVar2 + 4) = *(undefined4 *)(param_4 + 4);
      *(undefined4 *)(pVVar2 + 8) = *(undefined4 *)(param_4 + 8);
      local_16b0[iVar3] = *(float *)(param_4 + 0xc);
      local_122c[iVar3] = *(float *)(param_4 + 0x10);
      iVar3 = iVar3 + 1;
      param_4 = param_4 + 0x14;
      pVVar2 = pVVar2 + 0xc;
    } while (iVar3 != iVar4);
  }
  local_16c4 = local_da8;
  InitDispInfo(this,param_1,param_2,param_3,local_122c,local_16c4,local_16b0);
  iVar3 = 0;
  iVar4 = (iVar1 << ((byte)param_1 & 0x1f)) * 2;
  if (0 < iVar4) {
    do {
      *(undefined2 *)(*(int *)(this + 0x1bc) + 6 + iVar3 * 8) = *(undefined2 *)(param_5 + iVar3 * 2)
      ;
      iVar3 = iVar3 + 1;
    } while (iVar3 != iVar4);
  }
  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)