L L4D2node

CModelSoundsCache::CModelSoundsCache

0x00469c10 · 156 bytes · __thiscall

_ZN17CModelSoundsCacheC1ERKS_

Decompiled

undefined (2 params)

/* CModelSoundsCache::CModelSoundsCache(CModelSoundsCache const&) */

void __thiscall
CModelSoundsCache::CModelSoundsCache(CModelSoundsCache *this,CModelSoundsCache *param_1)

{
  int iVar1;
  int iVar2;
  
  *(undefined ***)this = &PTR_Save_00c15be0;
  *(undefined4 *)(this + 4) = 0;
  *(undefined4 *)(this + 8) = 0;
  *(undefined4 *)(this + 0xc) = 0;
  *(undefined4 *)(this + 0x10) = 0;
  *(undefined4 *)(this + 0x14) = 0;
  iVar1 = *(int *)(param_1 + 0x10);
  if (iVar1 != 0) {
    CUtlVector<unsigned_short,CUtlMemory<unsigned_short,int>>::GrowVector
              ((CUtlVector<unsigned_short,CUtlMemory<unsigned_short,int>> *)(this + 4),iVar1);
                    /* try { // try from 00469c84 to 00469c88 has its CatchHandler @ 00469cb5 */
    CUtlVector<unsigned_short,CUtlMemory<unsigned_short,int>>::ShiftElementsRight
              ((CUtlVector<unsigned_short,CUtlMemory<unsigned_short,int>> *)(this + 4),0,iVar1);
    if (0 < iVar1) {
      iVar2 = 0;
      do {
        *(undefined2 *)(*(int *)(this + 4) + iVar2) = *(undefined2 *)(*(int *)(param_1 + 4) + iVar2)
        ;
        iVar2 = iVar2 + 2;
      } while (iVar2 != iVar1 * 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)