L L4D2node

CAI_ExpresserWithFollowup::DispatchFollowupThroughQueue

0x005b1a60 · 248 bytes · __cdecl

_ZN25CAI_ExpresserWithFollowup28DispatchFollowupThroughQueueERK11CAI_ConceptPKcRKN14CResponseQueue21CFollowupTargetSpec_tEfP11CBaseEntity

Decompiled

undefined (5 params)

/* CAI_ExpresserWithFollowup::DispatchFollowupThroughQueue(CAI_Concept const&, char const*,
   CResponseQueue::CFollowupTargetSpec_t const&, float, CBaseEntity*) */

void CAI_ExpresserWithFollowup::DispatchFollowupThroughQueue
               (CAI_Concept *param_1,char *param_2,CFollowupTargetSpec_t *param_3,float param_4,
               CBaseEntity *param_5)

{
  char cVar1;
  char *pcVar2;
  AI_CriteriaSet local_3c [44];
  
  AI_CriteriaSet::AI_CriteriaSet(local_3c);
  if (param_5 != (CBaseEntity *)0x0) {
                    /* try { // try from 005b1a80 to 005b1b59 has its CatchHandler @ 005b1b5f */
    cVar1 = (**(code **)(*(int *)param_5 + 0x16c))(param_5);
    if (cVar1 != '\0') {
      pcVar2 = (char *)GetResponseName((CTerrorPlayer *)param_5);
      AI_CriteriaSet::AppendCriteria(local_3c,"Subject",pcVar2,1.0);
      AI_CriteriaSet::AppendCriteria(local_3c,"From",pcVar2,1.0);
      goto LAB_005b1aba;
    }
  }
  pcVar2 = "";
  if (*(char **)(param_5 + 0x154) != (char *)0x0) {
    pcVar2 = *(char **)(param_5 + 0x154);
  }
  AI_CriteriaSet::AppendCriteria(local_3c,"From",pcVar2,1.0);
LAB_005b1aba:
  AI_CriteriaSet::Merge(local_3c,param_2);
  CResponseQueue::Add((CResponseQueue *)g_ResponseQueueManager._12_4_,(CAI_Concept *)param_1,
                      local_3c,param_4 + *(float *)(gpGlobals + 0xc),param_3,param_5);
  AI_CriteriaSet::~AI_CriteriaSet(local_3c);
  return;
}

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)