L L4D2node

CBaseEntity::InputKill

0x00600640 · 192 bytes · __cdecl

_ZN11CBaseEntity9InputKillER11inputdata_t

Decompiled

undefined (1 param)

/* CBaseEntity::InputKill(inputdata_t&) */

void CBaseEntity::InputKill(inputdata_t *param_1)

{
  uint uVar1;
  code *UNRECOVERED_JUMPTABLE;
  int *piVar2;
  char cVar3;
  undefined4 uVar4;
  undefined *puVar5;
  undefined4 uStack00000008;
  
  uVar1 = *(uint *)(param_1 + 0x220);
  if ((((uVar1 != 0xffffffff) &&
       (puVar5 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar5 != (undefined *)0xfffffffc)) &&
      (*(uint *)(puVar5 + 8) == uVar1 >> 0xc)) &&
     (piVar2 = *(int **)(puVar5 + 4), piVar2 != (int *)0x0)) {
    (**(code **)(*piVar2 + 0x104))(piVar2,param_1);
    (**(code **)(*(int *)param_1 + 0x50))(param_1,0);
  }
  cVar3 = (**(code **)(*(int *)param_1 + 0x16c))(param_1);
  if (cVar3 == '\0') {
    UTIL_Remove((CBaseEntity *)param_1);
    return;
  }
  UNRECOVERED_JUMPTABLE = *(code **)(*engine + 0x94);
  uVar4 = (**(code **)(*engine + 0x40))(engine,*(undefined4 *)(param_1 + 0x30));
  uStack00000008 = UTIL_VarArgs("kickid %d CBaseEntity::InputKill()\n",uVar4);
                    /* WARNING: Could not recover jumptable at 0x006006d6. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*UNRECOVERED_JUMPTABLE)();
  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)