L L4D2node

VOX_GroupInitAllLRUs

0x000f2620 · 178 bytes · unknown

_Z20VOX_GroupInitAllLRUsv

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* VOX_GroupInitAllLRUs() */

void VOX_GroupInitAllLRUs(void)

{
  sentencegroup_t *psVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (DAT_00350424 < 1) {
    iVar3 = 0;
  }
  else {
    iVar3 = 0;
    iVar4 = 0;
    do {
      iVar2 = iVar4 + 1;
      *(short *)(g_SentenceGroups + 2 + iVar4 * 6) = (short)iVar3;
      iVar3 = iVar3 + *(short *)(g_SentenceGroups + iVar4 * 6);
      iVar4 = iVar2;
    } while (iVar2 < DAT_00350424);
  }
  _DAT_0035048c = 0;
  CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)&g_GroupLRU);
  iVar4 = 0;
  _DAT_00350490 = g_GroupLRU;
  CUtlVector<unsigned_char,CUtlMemory<unsigned_char,int>>::EnsureCount
            ((CUtlVector<unsigned_char,CUtlMemory<unsigned_char,int>> *)&g_GroupLRU,iVar3);
  if (0 < DAT_00350424) {
    do {
      while (psVar1 = (sentencegroup_t *)(g_SentenceGroups + iVar4 * 6), *(short *)psVar1 == 0) {
        iVar4 = iVar4 + 1;
        if (DAT_00350424 <= iVar4) {
          return;
        }
      }
      VOX_LRUInit(psVar1);
      iVar4 = iVar4 + 1;
    } while (iVar4 < DAT_00350424);
  }
  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)