L L4D2node

CAI_Expresser::Speak

0x005d3540 · 177 bytes · __thiscall

_ZN13CAI_Expresser5SpeakER11CAI_ConceptPKcPcjP16IRecipientFilter

Decompiled

undefined (6 params)

/* CAI_Expresser::Speak(CAI_Concept&, char const*, char*, unsigned int, IRecipientFilter*) */

undefined4 __thiscall
CAI_Expresser::Speak
          (CAI_Expresser *this,CAI_Concept *param_1,char *param_2,char *param_3,uint param_4,
          IRecipientFilter *param_5)

{
  uint uVar1;
  int *piVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined *puVar5;
  AI_CriteriaSet local_3c [44];
  
  uVar4 = 0xffffffff;
  uVar1 = *(uint *)(this + 0x40);
  if ((((uVar1 != 0xffffffff) &&
       (puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
      (*(uint *)(puVar5 + 8) == uVar1 >> 0xc)) &&
     (piVar2 = *(int **)(puVar5 + 4), piVar2 != (int *)0x0)) {
    puVar3 = (undefined4 *)(**(code **)(*piVar2 + 0xc))(piVar2);
    uVar4 = *puVar3;
  }
  *(undefined4 *)(param_1 + 4) = uVar4;
  AI_CriteriaSet::AI_CriteriaSet(local_3c);
                    /* try { // try from 005d359e to 005d35c7 has its CatchHandler @ 005d35f3 */
  GatherCriteria(this,local_3c,param_1,param_2);
  uVar4 = Speak(this,param_1,local_3c,param_3,param_4,param_5);
  AI_CriteriaSet::~AI_CriteriaSet(local_3c);
  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)