L L4D2node

SurvivorElevatorRide::OnStart

0x00921540 · 241 bytes · __thiscall

_ZN20SurvivorElevatorRide7OnStartEP11SurvivorBotP6ActionIS0_E

Decompiled

undefined (3 params)

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

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

{
  int iVar1;
  SurvivorLegsWait *this_00;
  int *piVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  this_00 = ::operator_new(0x44);
                    /* try { // try from 00921568 to 0092156c has its CatchHandler @ 00921659 */
  SurvivorLegsWait::SurvivorLegsWait(this_00,0.0);
  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 009215b2 to 009215b6 has its CatchHandler @ 00921637 */
    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 != (SurvivorLegsWait *)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)