L L4D2node

CItemDefibrillator::OnStopAction

0x00541b10 · 57 bytes · __thiscall

_ZN18CItemDefibrillator12OnStopActionEP13CTerrorPlayer

Decompiled

undefined (2 params)

/* CItemDefibrillator::OnStopAction(CTerrorPlayer*) */

void __thiscall CItemDefibrillator::OnStopAction(CItemDefibrillator *this,CTerrorPlayer *param_1)

{
  (**(code **)(*(int *)param_1 + 0x7fc))(param_1,0x2e,0);
  CBaseEntity::StopSound((CBaseEntity *)param_1,"Defibrillator.UseStart");
  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)