L L4D2node

INextBot::INextBot

0x00755210 · 542 bytes · __thiscall

_ZN8INextBotC2Ev

Decompiled

undefined (1 param)

/* INextBot::INextBot() */

void __thiscall INextBot::INextBot(INextBot *this)

{
  INextBot *pIVar1;
  INextBot *pIVar2;
  NextBotManager *this_00;
  undefined4 uVar3;
  
  *(undefined ***)this = &PTR__INextBot_00ca9408;
  *(undefined ***)(this + 0x28) = &PTR_NetworkStateChanged_00c0b6e0;
  *(undefined4 *)(this + 0x2c) = 0;
  *(undefined4 *)(this + 0x30) = 0xbf800000;
  *(undefined ***)(this + 0x34) = &PTR_NetworkStateChanged_00c23e10;
  *(undefined4 *)(this + 0x38) = 0xbf800000;
                    /* try { // try from 0075525e to 00755262 has its CatchHandler @ 0075546f */
  ILocomotion::ILocomotion((ILocomotion *)(this + 0x3c),this);
                    /* try { // try from 00755270 to 00755274 has its CatchHandler @ 0075546b */
  INextBotComponent::INextBotComponent((INextBotComponent *)(this + 0xa8),this);
  *(undefined ***)(this + 0xa8) = &PTR__IBody_00bfa728;
                    /* try { // try from 0075528c to 00755290 has its CatchHandler @ 00755469 */
  INextBotComponent::INextBotComponent((INextBotComponent *)(this + 0xbc),this);
  *(undefined ***)(this + 0xbc) = &PTR__IIntention_00bfa8a8;
  *(undefined ***)(this + 0xd0) = &PTR__IIntention_00bfa980;
                    /* try { // try from 007552b2 to 007552b6 has its CatchHandler @ 0075542e */
  INextBotComponent::INextBotComponent((INextBotComponent *)(this + 0xd4),this);
  *(undefined ***)(this + 0xd4) = &PTR__IVision_00caa2e8;
  *(undefined ***)(this + 0xec) = &PTR_NetworkStateChanged_00c0b6e0;
  *(undefined4 *)(this + 0xf0) = 0;
  *(undefined4 *)(this + 0xf4) = 0xbf800000;
  *(undefined4 *)(this + 0x100) = 0;
  *(undefined4 *)(this + 0x104) = 0;
  *(undefined4 *)(this + 0x108) = 0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0xffffffff;
  pIVar1 = this + 0x11c;
  do {
    *(undefined ***)pIVar1 = &PTR_NetworkStateChanged_00c23e10;
    pIVar2 = pIVar1 + 8;
    *(undefined4 *)(this + (int)(pIVar1 + (0x120 - (int)(this + 0x11c)))) = 0xbf800000;
    pIVar1 = pIVar2;
  } while (pIVar2 != this + 0x21c);
  *(undefined4 *)(this + 0x21c) = 0;
  *(undefined4 *)(this + 0x220) = 0;
  *(undefined4 *)(this + 0x224) = 100;
  *(undefined4 *)(this + 0x228) = 0;
  *(undefined4 *)(this + 0x22c) = 0;
  *(undefined4 *)(this + 0x10) = 0xfffffc19;
  *(undefined4 *)(this + 8) = 0xffffffff;
  *(undefined4 *)(this + 4) = 0;
  *(undefined4 *)(this + 0x18) = 0;
  if (*(float *)(this + 0x38) != -1.0) {
    (**(code **)(*(int *)(this + 0x34) + 4))(this + 0x34,this + 0x38);
    *(undefined4 *)(this + 0x38) = 0xbf800000;
  }
  if (*(float *)(this + 0x30) != -1.0) {
                    /* try { // try from 007553c2 to 00755421 has its CatchHandler @ 00755472 */
    (**(code **)(*(int *)(this + 0x28) + 4))(this + 0x28,this + 0x30);
    *(undefined4 *)(this + 0x30) = 0xbf800000;
  }
  *(undefined4 *)(this + 0x1c) = vec3_origin;
  *(undefined4 *)(this + 0x20) = DAT_01053d4c;
  *(undefined4 *)(this + 0x24) = DAT_01053d50;
  this_00 = (NextBotManager *)TheNextBots();
  uVar3 = NextBotManager::Register(this_00,this);
  *(undefined4 *)(this + 8) = uVar3;
  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)