L L4D2node

CDispInfo::CopyCoreDispData

0x00139ef0 · 386 bytes · __thiscall

_ZN9CDispInfo16CopyCoreDispDataEP7model_tPK25MaterialSystem_SortInfo_tPK13CCoreDispInfob

Decompiled

undefined (5 params)

/* CDispInfo::CopyCoreDispData(model_t*, MaterialSystem_SortInfo_t const*, CCoreDispInfo const*,
   bool) */

undefined4 __thiscall
CDispInfo::CopyCoreDispData
          (CDispInfo *this,model_t *param_1,MaterialSystem_SortInfo_t *param_2,
          CCoreDispInfo *param_3,bool param_4)

{
  undefined4 uVar1;
  int iVar2;
  CCoreDispInfo *pCVar3;
  CDispInfo *pCVar4;
  int iVar5;
  
  iVar2 = (**(code **)(*(int *)this + 0x18))(this);
  *(undefined4 *)(this + 0x168) = *(undefined4 *)(param_2 + *(short *)(iVar2 + 0x12) * 8 + 4);
  if (!param_4) {
    iVar2 = 0;
    pCVar3 = param_3;
    pCVar4 = this;
    do {
      *(undefined4 *)(this + iVar2 * 8 + 0x1bc) = *(undefined4 *)(param_3 + iVar2 * 8 + 0x78);
      *(undefined4 *)(this + iVar2 * 8 + 0x1c0) = *(undefined4 *)(param_3 + iVar2 * 8 + 0x7c);
      iVar2 = iVar2 + 1;
      *(undefined4 *)(pCVar4 + 0x18c) = *(undefined4 *)(pCVar3 + 0x18);
      *(undefined4 *)(pCVar4 + 400) = *(undefined4 *)(pCVar3 + 0x1c);
      *(undefined4 *)(pCVar4 + 0x194) = *(undefined4 *)(pCVar3 + 0x20);
      pCVar3 = pCVar3 + 0xc;
      pCVar4 = pCVar4 + 0xc;
    } while (iVar2 != 4);
    iVar5 = 0;
    iVar2 = 0;
    do {
      *(undefined4 *)(this + iVar2 + 0x1e0) = *(undefined4 *)(param_3 + iVar2 + 0x130);
      *(undefined4 *)(this + iVar2 + 0x1e4) = *(undefined4 *)(param_3 + iVar2 + 0x134);
      *(undefined4 *)(this + iVar2 + 0x1e8) = *(undefined4 *)(param_3 + iVar2 + 0x138);
      iVar2 = iVar2 + 0xc;
      *(undefined4 *)(this + iVar5 + 0x210) = *(undefined4 *)(param_3 + iVar5 + 0x160);
      *(undefined4 *)(this + iVar5 + 0x214) = *(undefined4 *)(param_3 + iVar5 + 0x164);
      *(undefined2 *)(this + iVar5 + 0x218) = *(undefined2 *)(param_3 + iVar5 + 0x168);
      iVar5 = iVar5 + 10;
    } while (iVar2 != 0x30);
    *(undefined4 *)(this + 0x140) = *(undefined4 *)(param_3 + 0x1dc);
    *(undefined4 *)(this + 0x144) = *(undefined4 *)(param_3 + 0x1e0);
    *(undefined4 *)(this + 0x148) = *(undefined4 *)(param_3 + 0x1e4);
    *(undefined4 *)(this + 0x14c) = *(undefined4 *)(param_3 + 0x1e8);
    *(undefined4 *)(this + 0x150) = *(undefined4 *)(param_3 + 0x1ec);
    *(undefined4 *)(this + 0x154) = *(undefined4 *)(param_3 + 0x1f0);
    *(undefined4 *)(this + 0x158) = *(undefined4 *)(param_3 + 500);
    *(undefined4 *)(this + 0x15c) = *(undefined4 *)(param_3 + 0x1f8);
    *(undefined4 *)(this + 0x160) = *(undefined4 *)(param_3 + 0x1fc);
    uVar1 = *(undefined4 *)(param_3 + 0x200);
    *(undefined4 *)(this + 0x20) = 0;
    *(undefined4 *)(this + 0x164) = uVar1;
  }
  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)