L L4D2node

CExpressionEvaluator::MakeTerm

0x00b85030 · 195 bytes · __thiscall

_ZN20CExpressionEvaluator8MakeTermERP8ExprNode

Decompiled

undefined (2 params)

/* CExpressionEvaluator::MakeTerm(ExprNode*&) */

uint __thiscall CExpressionEvaluator::MakeTerm(CExpressionEvaluator *this,ExprNode **param_1)

{
  int iVar1;
  CExpressionEvaluator *pCVar2;
  char cVar3;
  uint uVar4;
  CExpressionEvaluator *pCVar5;
  int iVar6;
  
  uVar4 = MakeFactor(this,param_1);
  if ((char)uVar4 != '\0') {
    do {
      if (this[4] != (CExpressionEvaluator)0x21) {
        return uVar4 & 0xff;
      }
      cVar3 = MakeExprNode(this,param_1,0x21,1,*param_1,0);
      if (cVar3 == '\0') break;
      iVar1 = *(int *)(this + 8);
      iVar6 = *(int *)(this + 0xc);
      pCVar5 = (CExpressionEvaluator *)(iVar1 + iVar6);
      if (*pCVar5 == (CExpressionEvaluator)0x20) {
        pCVar2 = (CExpressionEvaluator *)(iVar1 + 1 + iVar6);
        do {
          pCVar5 = pCVar2;
          iVar6 = (int)pCVar5 - iVar1;
          *(int *)(this + 0xc) = iVar6;
          pCVar2 = pCVar5 + 1;
        } while (*pCVar5 == (CExpressionEvaluator)0x20);
      }
      *(int *)(this + 0xc) = iVar6 + 1;
      this[4] = *pCVar5;
      cVar3 = MakeFactor(this,(ExprNode **)(*param_1 + 4));
    } while (cVar3 != '\0');
    uVar4 = 0;
  }
  return uVar4;
}

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)