L L4D2node

VOX_Init

0x000f3cf0 · 271 bytes · unknown

Decompiled

undefined (0 params)

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

void VOX_Init(void)

{
  g_entnamelastsaved = 0;
  _V_memset(&g_entnames,0,0x1a00);
  _V_memset(&g_rgmapnames,0,0x60);
  g_cmapnames = 0;
  _DAT_00350478 = 0;
  CUtlMemory<char,int>::Purge((CUtlMemory<char,int> *)&g_SentenceFile);
  _DAT_0035048c = 0;
  _DAT_0035047c = g_SentenceFile;
  CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)&g_GroupLRU);
  DAT_00350438 = 0;
  _DAT_00350490 = g_GroupLRU;
  if ((DAT_00350430 < 900) && (-1 < DAT_00350434)) {
    DAT_00350430 = 900;
    if (g_Sentences == (void *)0x0) {
      g_Sentences = malloc(0x2a30);
    }
    else {
      g_Sentences = realloc(g_Sentences,0x2a30);
    }
  }
  _DAT_0035043c = g_Sentences;
  VOX_ListClear();
  VOX_ReadSentenceFile("scripts/sentences.txt");
  VOX_LookupMapnames();
  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)