L L4D2node

CodeForPhonemeByIndex

0x000da980 · 30 bytes · __cdecl

_Z21CodeForPhonemeByIndexi

Decompiled

undefined (1 param)

/* CodeForPhonemeByIndex(int) */

undefined4 CodeForPhonemeByIndex(int param_1)

{
  if ((uint)param_1 < 0x36) {
    return (&DAT_00340184)[param_1 * 6];
  }
  return 0x5f;
}

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)