L L4D2node

AI_Response::AI_Response

0x005a9180 · 446 bytes · __thiscall

_ZN11AI_ResponseC2ERKS_

Decompiled

undefined (2 params)

/* AI_Response::AI_Response(AI_Response const&) */

void __thiscall AI_Response::AI_Response(AI_Response *this,AI_Response *param_1)

{
  AI_Response AVar1;
  undefined4 uVar2;
  
  AVar1 = *param_1;
  *(undefined4 *)(this + 0x84) = 0;
  *this = AVar1;
  if (*(int *)(param_1 + 0x84) != 0) {
    uVar2 = (**(code **)(*g_pScriptVM + 0x40))(g_pScriptVM,*(int *)(param_1 + 0x84));
    *(undefined4 *)(this + 0x84) = uVar2;
  }
  *(undefined4 *)(this + 0x88) = *(undefined4 *)(param_1 + 0x88);
  *(undefined4 *)(this + 0x8c) = *(undefined4 *)(param_1 + 0x8c);
  *(undefined4 *)(this + 0x90) = *(undefined4 *)(param_1 + 0x90);
  *(undefined2 *)(this + 0x94) = *(undefined2 *)(param_1 + 0x94);
  *(undefined2 *)(this + 0x96) = *(undefined2 *)(param_1 + 0x96);
  this[0x98] = param_1[0x98];
  *(undefined4 *)(this + 0x99) = *(undefined4 *)(param_1 + 0x99);
  *(undefined4 *)(this + 0x9d) = *(undefined4 *)(param_1 + 0x9d);
                    /* try { // try from 005a9238 to 005a923c has its CatchHandler @ 005a933e */
  AI_ResponseParams::ScriptFollowup_t::ScriptFollowup_t
            ((ScriptFollowup_t *)(this + 0xa1),(ScriptFollowup_t *)(param_1 + 0xa1));
  uVar2 = *(undefined4 *)(param_1 + 0xb0);
  *(undefined4 *)(this + 0xb4) = 0;
  *(undefined4 *)(this + 0xb0) = uVar2;
  this[0xb8] = param_1[0xb8];
  *(undefined4 *)(this + 1) = *(undefined4 *)(param_1 + 1);
  *(undefined4 *)(this + 5) = *(undefined4 *)(param_1 + 5);
  *(undefined4 *)(this + 9) = *(undefined4 *)(param_1 + 9);
  *(undefined4 *)(this + 0xd) = *(undefined4 *)(param_1 + 0xd);
  *(undefined4 *)(this + 0x11) = *(undefined4 *)(param_1 + 0x11);
  *(undefined4 *)(this + 0x15) = *(undefined4 *)(param_1 + 0x15);
  *(undefined4 *)(this + 0x19) = *(undefined4 *)(param_1 + 0x19);
  *(undefined4 *)(this + 0x1d) = *(undefined4 *)(param_1 + 0x1d);
  *(undefined4 *)(this + 0x21) = *(undefined4 *)(param_1 + 0x21);
  *(undefined4 *)(this + 0x25) = *(undefined4 *)(param_1 + 0x25);
  *(undefined4 *)(this + 0x29) = *(undefined4 *)(param_1 + 0x29);
  *(undefined4 *)(this + 0x2d) = *(undefined4 *)(param_1 + 0x2d);
  *(undefined4 *)(this + 0x31) = *(undefined4 *)(param_1 + 0x31);
  *(undefined4 *)(this + 0x35) = *(undefined4 *)(param_1 + 0x35);
  *(undefined4 *)(this + 0x39) = *(undefined4 *)(param_1 + 0x39);
  *(undefined4 *)(this + 0x3d) = *(undefined4 *)(param_1 + 0x3d);
  *(undefined4 *)(this + 0x41) = *(undefined4 *)(param_1 + 0x41);
  *(undefined4 *)(this + 0x45) = *(undefined4 *)(param_1 + 0x45);
  *(undefined4 *)(this + 0x49) = *(undefined4 *)(param_1 + 0x49);
  *(undefined4 *)(this + 0x4d) = *(undefined4 *)(param_1 + 0x4d);
  *(undefined4 *)(this + 0x51) = *(undefined4 *)(param_1 + 0x51);
  *(undefined4 *)(this + 0x55) = *(undefined4 *)(param_1 + 0x55);
  *(undefined4 *)(this + 0x59) = *(undefined4 *)(param_1 + 0x59);
  *(undefined4 *)(this + 0x5d) = *(undefined4 *)(param_1 + 0x5d);
  *(undefined4 *)(this + 0x61) = *(undefined4 *)(param_1 + 0x61);
  *(undefined4 *)(this + 0x65) = *(undefined4 *)(param_1 + 0x65);
  *(undefined4 *)(this + 0x69) = *(undefined4 *)(param_1 + 0x69);
  *(undefined4 *)(this + 0x6d) = *(undefined4 *)(param_1 + 0x6d);
  *(undefined4 *)(this + 0x71) = *(undefined4 *)(param_1 + 0x71);
  *(undefined4 *)(this + 0x75) = *(undefined4 *)(param_1 + 0x75);
  *(undefined4 *)(this + 0x79) = *(undefined4 *)(param_1 + 0x79);
  *(undefined4 *)(this + 0x7d) = *(undefined4 *)(param_1 + 0x7d);
                    /* try { // try from 005a9331 to 005a9335 has its CatchHandler @ 005a936d */
  SetContext(this,*(char **)(param_1 + 0xb4));
  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)