L L4D2node

SurvivorDebugApproach::OnStart

0x00929120 · 243 bytes · __thiscall

_ZN21SurvivorDebugApproach7OnStartEP11SurvivorBotP6ActionIS0_E

Decompiled

undefined (3 params)

/* SurvivorDebugApproach::OnStart(SurvivorBot*, Action<SurvivorBot>*) */

SurvivorDebugApproach * __thiscall
SurvivorDebugApproach::OnStart(SurvivorDebugApproach *this,SurvivorBot *param_1,Action *param_2)

{
  int iVar1;
  SurvivorLegsApproach *this_00;
  int *piVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  this_00 = ::operator_new(0x9050);
                    /* try { // try from 0092914a to 0092914e has its CatchHandler @ 00929239 */
  SurvivorLegsApproach::SurvivorLegsApproach(this_00,(Vector *)(param_1 + 0x34));
  piVar2 = (int *)(**(code **)(*(int *)param_2 + 0x9a8))(param_2);
  if (piVar2[0x18] < 0xf) {
    puVar3 = ::operator_new(0x38);
    *puVar3 = &PTR__Behavior_00d00308;
    puVar3[1] = &PTR__Behavior_00d003d0;
                    /* try { // try from 00929194 to 00929198 has its CatchHandler @ 00929217 */
    CFmtStrN<32>::CFmtStrN((CFmtStrN<32> *)(puVar3 + 3),"%s");
    puVar3[2] = this_00;
    iVar1 = piVar2[0x18];
    piVar2[0x18] = iVar1 + 1;
    piVar2[iVar1 + 9] = (int)puVar3;
  }
  else {
    piVar2 = (int *)(**(code **)(*piVar2 + 0xb0))(piVar2);
    uVar4 = (**(code **)(*piVar2 + 0x13c))(piVar2);
    DevMsg("%3.2f: %s: PushLegsStack: Overflow\n",(double)*(float *)(gpGlobals + 0xc),uVar4);
    if (this_00 != (SurvivorLegsApproach *)0x0) {
      (**(code **)(*(int *)this_00 + 4))(this_00);
    }
  }
  *(undefined4 *)this = 0;
  *(undefined4 *)(this + 4) = 0;
  *(undefined4 *)(this + 8) = 0;
  return this;
}

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)