L L4D2node

CFish::Event_Killed

0x006a3450 · 92 bytes · __cdecl

_ZN5CFish12Event_KilledERK15CTakeDamageInfo

Decompiled

undefined (1 param)

/* CFish::Event_Killed(CTakeDamageInfo const&) */

void CFish::Event_Killed(CTakeDamageInfo *param_1)

{
  if (param_1[0x105] != (CTakeDamageInfo)0x0) {
    (**(code **)(*(int *)param_1 + 0x224))(param_1,param_1 + 0x105);
    param_1[0x105] = (CTakeDamageInfo)0x0;
  }
  if (param_1[0x104] != (CTakeDamageInfo)0x2) {
    (**(code **)(*(int *)param_1 + 0x21c))(param_1,param_1 + 0x104);
    param_1[0x104] = (CTakeDamageInfo)0x2;
  }
  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)