L L4D2node

_GLOBAL__sub_I_gEntList

0x0039cc50 · 1304 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void _GLOBAL__sub_I_gEntList(void)

{
  int iVar1;
  int iVar2;
  
  UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
  UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
  vec2_origin._0_4_ = 0;
  vec2_origin._4_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  g_DeleteList = 0;
  _DAT_00fdb2e0 = 0;
  DAT_00fdb2e4 = 0;
  DAT_00fdb2e8 = 0;
  _DAT_00fdb2ec = 0;
  __cxa_atexit(CUtlVector<IServerNetworkable*,CUtlMemory<IServerNetworkable*,int>>::~CUtlVector,
               &g_DeleteList,&__dso_handle);
  CGlobalEntityList::CGlobalEntityList((CGlobalEntityList *)gEntList);
  __cxa_atexit(CGlobalEntityList::~CGlobalEntityList,gEntList,&__dso_handle);
  g_AimManager._0_4_ = &PTR_OnEntityCreated_00c78588;
  g_AimManager._4_4_ = 0;
  g_AimManager._8_4_ = 0;
  g_AimManager._12_4_ = 0;
  g_AimManager._16_4_ = 0;
  g_AimManager._20_4_ = 0;
  __cxa_atexit(CAimTargetManager::~CAimTargetManager,g_AimManager,&__dso_handle);
  g_SimThinkManager._0_4_ = &PTR_OnEntityCreated_00c785a0;
  g_SimThinkManager._8196_4_ = 0;
  g_SimThinkManager._8200_4_ = 0;
  g_SimThinkManager._8204_4_ = 0;
  g_SimThinkManager._8208_4_ = 0;
  g_SimThinkManager._8212_4_ = 0;
  CUtlMemory<simthinkentry_t,int>::Purge
            ((CUtlMemory<simthinkentry_t,int> *)(g_SimThinkManager + 0x2004));
  g_SimThinkManager._8212_4_ = g_SimThinkManager._8196_4_;
  iVar1 = 0;
  do {
    *(undefined2 *)(g_SimThinkManager + iVar1 * 2 + 4) = 0xffff;
    iVar1 = iVar1 + 1;
  } while (iVar1 != 0x1000);
  __cxa_atexit(CSimThinkManager::~CSimThinkManager,g_SimThinkManager,&__dso_handle);
  g_PostClientManager = 0;
  _DAT_00fdb2b4 = 0;
  DAT_00fdb2b8 = 0;
  DAT_00fdb2bc = 0;
  _DAT_00fdb2c0 = 0;
  __cxa_atexit(CPostClientMessageManager::~CPostClientMessageManager,&g_PostClientManager,
               &__dso_handle);
  g_EntsByClassname = 0;
  _DAT_00fc9104 = 0;
  _DAT_00fc9108 = 0;
  DAT_00fc910c = 0;
  _DAT_00fc9110 = 0;
                    /* try { // try from 0039ced2 to 0039ced6 has its CatchHandler @ 0039d168 */
  CUtlVector<CUtlVector<EntsByStringList_t,CUtlMemory<EntsByStringList_t,int>>,CUtlMemory<CUtlVector<EntsByStringList_t,CUtlMemory<EntsByStringList_t,int>>,int>>
  ::SetCount((CUtlVector<CUtlVector<EntsByStringList_t,CUtlMemory<EntsByStringList_t,int>>,CUtlMemory<CUtlVector<EntsByStringList_t,CUtlMemory<EntsByStringList_t,int>>,int>>
              *)&g_EntsByClassname,0x200);
  iVar1 = g_EntsByClassname;
  iVar2 = 0;
  do {
    *(undefined4 *)(iVar1 + 0xc + iVar2) = 0;
    *(undefined4 *)(iVar1 + 8 + iVar2) = 0;
    iVar2 = iVar2 + 0x14;
  } while (iVar2 != 0x2800);
  DAT_00fc9116 = 1;
  _DAT_00fc9118 = 0x1ff;
  __cxa_atexit(CUtlHash<EntsByStringList_t,CEntsByStringHashFuncs,CEntsByStringHashFuncs>::~CUtlHash
               ,&g_EntsByClassname,&__dso_handle);
  g_NotifyList = &PTR_AddEntity_00c785c8;
  _DAT_00fdb290 = &DAT_00c785ec;
  _DAT_00fdb294 = 0;
  _DAT_00fdb298 = 0;
  _DAT_00fdb29c = 0;
  _DAT_00fdb2a0 = 0;
  _DAT_00fdb2a4 = 0;
  __cxa_atexit(CNotifyList::~CNotifyList,&g_NotifyList,&__dso_handle);
  g_TouchManager._0_4_ = &PTR_OnEntityCreated_00c78600;
  g_TouchManager._4_4_ = 0;
  g_TouchManager._8_4_ = 0;
  g_TouchManager._12_4_ = 0;
  g_TouchManager._16_4_ = 0;
  g_TouchManager._20_4_ = 0;
  __cxa_atexit(CEntityTouchManager::~CEntityTouchManager,g_TouchManager,&__dso_handle);
  CAutoGameSystemPerFrame::CAutoGameSystemPerFrame
            ((CAutoGameSystemPerFrame *)g_EntityListSystem,"CEntityListSystem");
  g_EntityListSystem._0_4_ = &PTR_Name_00c78628;
  g_EntityListSystem[0xc] = 0;
  __cxa_atexit(CEntityListSystem::~CEntityListSystem,g_EntityListSystem,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)restart_entities,"respawn_entities",RespawnEntities,
             "Respawn all the entities in the map.",0x4040,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,restart_entities,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)report_entities_command,"report_entities",report_entities,
             "Lists all entities",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,report_entities_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)report_touchlinks_command,"report_touchlinks",report_touchlinks,
             "Lists all touchlinks",0x4000,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,report_touchlinks_command,&__dso_handle);
  ConCommand::ConCommand
            ((ConCommand *)report_simthinklist_command,"report_simthinklist",report_simthinklist,
             "Lists all simulating/thinking entities",0,(int_____char_const__char *)0x0);
  __cxa_atexit(ConCommand::~ConCommand,report_simthinklist_command,&__dso_handle);
  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.



        
        

⚠ This function has no mangled symbol — it may be internal/static. The Linux gamedata field uses @-prefix symbol resolution which requires an exported mangled name. You'll need a Linux byte signature for this one (extract via extract_signature.java).


          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)