L L4D2node

VOX_LookupString

0x000f1130 · 234 bytes · unknown

Decompiled

undefined (0 params)

char * VOX_LookupString(char *param_1,int *param_2,byte *param_3,undefined2 *param_4,
                       undefined4 *param_5)

{
  char *pcVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  if (param_3 != (byte *)0x0) {
    *param_3 = 0;
  }
  if (param_4 != (undefined2 *)0x0) {
    *param_4 = 0xffff;
  }
  if (param_5 != (undefined4 *)0x0) {
    *param_5 = 0;
  }
  iVar3 = DAT_00350438;
  iVar4 = 0;
  iVar5 = 0;
  if (0 < DAT_00350438) {
    do {
      pcVar1 = *(char **)(g_Sentences + iVar4);
      iVar2 = _V_stricmp(param_1,pcVar1);
      if (iVar2 == 0) {
        if (param_2 != (int *)0x0) {
          *param_2 = iVar5;
        }
        if (param_3 != (byte *)0x0) {
          *param_3 = *(byte *)(g_Sentences + 8 + iVar4) & 1;
        }
        if (param_4 != (undefined2 *)0x0) {
          *param_4 = *(undefined2 *)(g_Sentences + 10 + iVar4);
        }
        if (param_5 != (undefined4 *)0x0) {
          *param_5 = *(undefined4 *)(g_Sentences + 4 + iVar4);
        }
        iVar3 = _V_strlen(pcVar1);
        return pcVar1 + iVar3 + 1;
      }
      iVar5 = iVar5 + 1;
      iVar4 = iVar4 + 0xc;
    } while (iVar5 != iVar3);
  }
  return (char *)0x0;
}

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)