L L4D2node

CSentence::ParseDataVersionOnePointZero

0x000de460 · 392 bytes · __thiscall

_ZN9CSentence28ParseDataVersionOnePointZeroER10CUtlBuffer

Decompiled

undefined (2 params)

/* CSentence::ParseDataVersionOnePointZero(CUtlBuffer&) */

void __thiscall CSentence::ParseDataVersionOnePointZero(CSentence *this,CUtlBuffer *param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  char local_1120 [256];
  char local_1020 [4096];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  while( true ) {
    CUtlBuffer::GetString(param_1,local_1020,0x1000);
    if (local_1020[0] == '\0') break;
    V_strncpy(local_1120,local_1020,0x100);
    CUtlBuffer::GetString(param_1,local_1020,0x1000);
    iVar1 = _V_stricmp(local_1020,"{");
    if (iVar1 != 0) break;
    iVar1 = _V_stricmp(local_1120,"PLAINTEXT");
    if (iVar1 == 0) {
      ParsePlaintext(this,param_1);
    }
    else {
      iVar1 = _V_stricmp(local_1120,"WORDS");
      if (iVar1 == 0) {
        ParseWords(this,param_1);
      }
      else {
        iVar1 = _V_stricmp(local_1120,"EMPHASIS");
        if (iVar1 == 0) {
          ParseEmphasis(this,param_1);
        }
        else {
          iVar1 = _V_stricmp(local_1120,"CLOSECAPTION");
          if (iVar1 == 0) {
            ParseCloseCaption(this,param_1);
          }
          else {
            iVar1 = _V_stricmp(local_1120,"OPTIONS");
            if (iVar1 == 0) {
              ParseOptions(this,param_1);
            }
          }
        }
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

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)