L L4D2node

Infected::CreateComponents

0x00a0c400 · 240 bytes · __thiscall

_ZN8Infected16CreateComponentsEv

Decompiled

undefined (1 param)

/* Infected::CreateComponents() */

void __thiscall Infected::CreateComponents(Infected *this)

{
  ZombieBotVision *this_00;
  ZombieBotLocomotion *this_01;
  ZombieBotBody *this_02;
  InfectedIntention *this_03;
  
  if (*(int *)(this + 0x1c9c) == 0) {
    this_01 = ::operator_new(0x150);
                    /* try { // try from 00a0c493 to 00a0c497 has its CatchHandler @ 00a0c519 */
    ZombieBotLocomotion::ZombieBotLocomotion(this_01,(INextBot *)(this + 0x1a3c));
    *(ZombieBotLocomotion **)(this + 0x1c9c) = this_01;
  }
  if (*(int *)(this + 0x1ca0) == 0) {
    this_02 = ::operator_new(200);
                    /* try { // try from 00a0c4c3 to 00a0c4c7 has its CatchHandler @ 00a0c517 */
    ZombieBotBody::ZombieBotBody(this_02,(INextBot *)(this + 0x1a3c));
    *(ZombieBotBody **)(this + 0x1ca0) = this_02;
  }
  if (*(int *)(this + 0x1ca4) == 0) {
    this_03 = ::operator_new(0x20);
                    /* try { // try from 00a0c4f3 to 00a0c4f7 has its CatchHandler @ 00a0c515 */
    InfectedIntention::InfectedIntention(this_03,(INextBot *)(this + 0x1a3c));
    *(InfectedIntention **)(this + 0x1ca4) = this_03;
  }
  if (*(int *)(this + 0x1ca8) != 0) {
    return;
  }
  this_00 = ::operator_new(0x16c);
                    /* try { // try from 00a0c463 to 00a0c467 has its CatchHandler @ 00a0c503 */
  ZombieBotVision::ZombieBotVision(this_00,(INextBot *)(this + 0x1a3c));
  *(ZombieBotVision **)(this + 0x1ca8) = this_00;
  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)