L L4D2node

CDataObjectAccessSystem::Init

0x00481070 · 1312 bytes · __thiscall

_ZN23CDataObjectAccessSystem4InitEv

Decompiled

undefined (1 param)

/* CDataObjectAccessSystem::Init() */

undefined4 __thiscall CDataObjectAccessSystem::Init(CDataObjectAccessSystem *this)

{
  undefined4 *puVar1;
  int iVar2;
  
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c18558;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<touchlink_t>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<touchlink_t>::KeyFunc;
                    /* try { // try from 004810cf to 004810d3 has its CatchHandler @ 004815c4 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<touchlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<touchlink_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<touchlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<touchlink_t>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<touchlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<touchlink_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<touchlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<touchlink_t>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x10) == 0) {
    *(undefined4 **)(this + 0x10) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c18578;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<groundlink_t>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<groundlink_t>::KeyFunc;
                    /* try { // try from 0048116a to 0048116e has its CatchHandler @ 004815b8 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<groundlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<groundlink_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<groundlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<groundlink_t>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<groundlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<groundlink_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<groundlink_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<groundlink_t>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0xc) == 0) {
    *(undefined4 **)(this + 0xc) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c18598;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<StepSimulationData>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<StepSimulationData>::KeyFunc;
                    /* try { // try from 00481202 to 00481206 has its CatchHandler @ 004815ee */
  CUtlVector<CUtlVector<CEntityDataInstantiator<StepSimulationData>::HashEntry,CUtlMemory<CEntityDataInstantiator<StepSimulationData>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<StepSimulationData>::HashEntry,CUtlMemory<CEntityDataInstantiator<StepSimulationData>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<StepSimulationData>::HashEntry,CUtlMemory<CEntityDataInstantiator<StepSimulationData>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<StepSimulationData>::HashEntry,CUtlMemory<CEntityDataInstantiator<StepSimulationData>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x14) == 0) {
    *(undefined4 **)(this + 0x14) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c185b8;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<ModelScale>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<ModelScale>::KeyFunc;
                    /* try { // try from 0048129a to 0048129e has its CatchHandler @ 004815e2 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<ModelScale>::HashEntry,CUtlMemory<CEntityDataInstantiator<ModelScale>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<ModelScale>::HashEntry,CUtlMemory<CEntityDataInstantiator<ModelScale>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<ModelScale>::HashEntry,CUtlMemory<CEntityDataInstantiator<ModelScale>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<ModelScale>::HashEntry,CUtlMemory<CEntityDataInstantiator<ModelScale>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x18) == 0) {
    *(undefined4 **)(this + 0x18) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c185d8;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<CWatcherList>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<CWatcherList>::KeyFunc;
                    /* try { // try from 00481332 to 00481336 has its CatchHandler @ 00481598 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x1c) == 0) {
    *(undefined4 **)(this + 0x1c) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c185f8;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<physicspushlist_t>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<physicspushlist_t>::KeyFunc;
                    /* try { // try from 004813ca to 004813ce has its CatchHandler @ 004815fa */
  CUtlVector<CUtlVector<CEntityDataInstantiator<physicspushlist_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<physicspushlist_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<physicspushlist_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<physicspushlist_t>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<physicspushlist_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<physicspushlist_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<physicspushlist_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<physicspushlist_t>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x20) == 0) {
    *(undefined4 **)(this + 0x20) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c18618;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<vphysicsupdateai_t>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<vphysicsupdateai_t>::KeyFunc;
                    /* try { // try from 00481462 to 00481466 has its CatchHandler @ 004815d4 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,CUtlMemory<CEntityDataInstantiator<vphysicsupdateai_t>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x24) == 0) {
    *(undefined4 **)(this + 0x24) = puVar1;
  }
  puVar1 = ::operator_new(0x28);
  *puVar1 = &PTR__CEntityDataInstantiator_00c185d8;
  puVar1[1] = 0;
  puVar1[2] = 0;
  puVar1[3] = 0;
  puVar1[4] = 0;
  puVar1[5] = 0;
  puVar1[6] = CEntityDataInstantiator<CWatcherList>::CompareFunc;
  puVar1[7] = CEntityDataInstantiator<CWatcherList>::KeyFunc;
                    /* try { // try from 004814fa to 004814fe has its CatchHandler @ 004815d2 */
  CUtlVector<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,CUtlMemory<CUtlVector<CEntityDataInstantiator<CWatcherList>::HashEntry,CUtlMemory<CEntityDataInstantiator<CWatcherList>::HashEntry,int>>,int>>
              *)(puVar1 + 1),0x40);
  iVar2 = 0;
  do {
    *(undefined4 *)(puVar1[1] + 0xc + iVar2) = 0;
    *(undefined4 *)(puVar1[1] + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x500);
  *(undefined1 *)(puVar1 + 8) = 1;
  puVar1[9] = 0x3f;
  if (*(int *)(this + 0x28) != 0) {
    return 1;
  }
  *(undefined4 **)(this + 0x28) = puVar1;
  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)