L L4D2node

InfectedBehavior::OnIgnite

0x00a2fc90 · 311 bytes · __cdecl

_ZN16InfectedBehavior8OnIgniteEP8Infected

Decompiled

undefined (1 param)

/* InfectedBehavior::OnIgnite(Infected*) */

Infected * InfectedBehavior::OnIgnite(Infected *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  int *in_stack_0000000c;
  
  iVar1 = (**(code **)(*in_stack_0000000c + 0x590))();
  if (iVar1 != 0) {
    if (in_stack_0000000c[0x40] != -1) {
      (**(code **)(*in_stack_0000000c + 0x214))();
      in_stack_0000000c[0x40] = -1;
    }
    puVar2 = ::operator_new(0x5c);
    *(undefined4 *)param_1 = 1;
    puVar2[8] = 0;
    puVar2[9] = 0;
    puVar2[10] = 0;
    puVar2[3] = 0;
    puVar2[4] = 0;
    puVar2[5] = 0;
    puVar2[6] = 0;
    puVar2[7] = 0;
    puVar2[2] = 0;
    *(undefined1 *)(puVar2 + 0xc) = 0;
    *(undefined1 *)((int)puVar2 + 0x31) = 0;
    puVar2[0xb] = 0;
    *puVar2 = &PTR__InfectedBurn_00d234e8;
    puVar2[1] = &PTR__InfectedBurn_00d2364c;
    puVar2[0xe] = &PTR_NetworkStateChanged_00c0b6e0;
    puVar2[0xf] = 0;
    puVar2[0x10] = 0xbf800000;
    puVar2[0x11] = &PTR_NetworkStateChanged_00c0b6e0;
    puVar2[0x12] = 0;
    puVar2[0x13] = 0xbf800000;
    puVar2[0x14] = &PTR_NetworkStateChanged_00c0b6e0;
    puVar2[0x15] = 0;
    puVar2[0x16] = 0xbf800000;
    *(undefined4 **)(param_1 + 4) = puVar2;
    *(undefined4 *)(param_1 + 8) = 0;
    *(undefined4 *)(param_1 + 0xc) = 3;
    return param_1;
  }
  *(undefined4 *)param_1 = 0;
  *(undefined4 *)(param_1 + 4) = 0;
  *(undefined4 *)(param_1 + 8) = 0;
  *(undefined4 *)(param_1 + 0xc) = 1;
  return param_1;
}

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)