L L4D2node

CInfectedZooMaker::Spawn

0x008d1ad0 · 405 bytes · __thiscall

_ZN17CInfectedZooMaker5SpawnEv

Decompiled

undefined (1 param)

/* CInfectedZooMaker::Spawn() */

void __thiscall CInfectedZooMaker::Spawn(CInfectedZooMaker *this)

{
  char cVar1;
  int iVar2;
  
  if (Spawn()::refDirectorNoSB == '\0') {
    iVar2 = __cxa_guard_acquire(&Spawn()::refDirectorNoSB);
    if (iVar2 != 0) {
                    /* try { // try from 008d1c33 to 008d1c37 has its CatchHandler @ 008d1ca9 */
      ConVarRef::ConVarRef((ConVarRef *)&Spawn()::refDirectorNoSB,"director_no_survivor_bots",true);
      __cxa_guard_release(&Spawn()::refDirectorNoSB);
    }
  }
  if (Spawn()::refDirectorNoSZ == '\0') {
    iVar2 = __cxa_guard_acquire(&Spawn()::refDirectorNoSZ);
    if (iVar2 != 0) {
                    /* try { // try from 008d1beb to 008d1bef has its CatchHandler @ 008d1c93 */
      ConVarRef::ConVarRef((ConVarRef *)&Spawn()::refDirectorNoSZ,"director_no_specials",true);
      __cxa_guard_release(&Spawn()::refDirectorNoSZ);
    }
  }
  if (Spawn()::refDirectorNoCull == '\0') {
    iVar2 = __cxa_guard_acquire(&Spawn()::refDirectorNoCull);
    if (iVar2 != 0) {
                    /* try { // try from 008d1c67 to 008d1c6b has its CatchHandler @ 008d1c7d */
      ConVarRef::ConVarRef((ConVarRef *)&Spawn()::refDirectorNoCull,"z_no_cull",true);
      __cxa_guard_release(&Spawn()::refDirectorNoCull);
    }
  }
  cVar1 = ConVarRef::IsValid((ConVarRef *)&Spawn()::refDirectorNoSB);
  if (cVar1 != '\0') {
    (**(code **)(*Spawn()::refDirectorNoSB + 8))(Spawn()::refDirectorNoSB,1);
  }
  cVar1 = ConVarRef::IsValid((ConVarRef *)&Spawn()::refDirectorNoSZ);
  if (cVar1 != '\0') {
    (**(code **)(*Spawn()::refDirectorNoSZ + 8))(Spawn()::refDirectorNoSZ,1);
  }
  cVar1 = ConVarRef::IsValid((ConVarRef *)&Spawn()::refDirectorNoCull);
  if (cVar1 != '\0') {
    (**(code **)(*Spawn()::refDirectorNoCull + 8))(Spawn()::refDirectorNoCull,1);
  }
  (**(code **)(*engine + 0x94))(engine,"director_stop\nnb_delete_all\n");
  CPointEntity::Spawn((CPointEntity *)this);
                    /* WARNING: Could not recover jumptable at 0x008d1b83. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*(int *)this + 0x6c))();
  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)