L L4D2node

TankIntention::Reset

0x00aefe30 · 225 bytes · __thiscall

_ZN13TankIntention5ResetEv

Decompiled

undefined (1 param)

/* TankIntention::Reset() */

void __thiscall TankIntention::Reset(TankIntention *this)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  
  piVar1 = (int *)(**(code **)(*(int *)this + 0xb0))(this);
  uVar2 = (**(code **)(*piVar1 + 0xb4))(piVar1);
  *(undefined4 *)(this + 0x18) = uVar2;
  piVar1 = *(int **)(this + 0x1c);
  if (piVar1 != (int *)0x0) {
    (**(code **)(*piVar1 + 4))(piVar1);
  }
  puVar3 = ::operator_new(0x34);
  puVar3[8] = 0;
  puVar3[9] = 0;
  puVar3[10] = 0;
  puVar3[3] = 0;
  puVar3[4] = 0;
  puVar3[5] = 0;
  puVar3[6] = 0;
  puVar3[7] = 0;
  puVar3[2] = 0;
  *(undefined1 *)(puVar3 + 0xc) = 0;
  *(undefined1 *)((int)puVar3 + 0x31) = 0;
  puVar3[0xb] = 0;
  *puVar3 = &PTR__TankBehavior_00d39748;
  puVar3[1] = &PTR__TankBehavior_00d398ac;
  puVar4 = ::operator_new(0x38);
  *puVar4 = &PTR__Behavior_00d39bc8;
  puVar4[1] = &PTR__Behavior_00d39c90;
                    /* try { // try from 00aefefe to 00aeff02 has its CatchHandler @ 00aeff11 */
  CFmtStrN<32>::CFmtStrN((CFmtStrN<32> *)(puVar4 + 3),"%s",&DAT_00d539c2);
  puVar4[2] = puVar3;
  *(undefined4 **)(this + 0x1c) = puVar4;
  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)