L L4D2node

Tank::IsAbleToBreak

0x00adfba0 · 40 bytes · __thiscall

_ZNK4Tank13IsAbleToBreakEPK11CBaseEntity

Decompiled

undefined (2 params)

/* Tank::IsAbleToBreak(CBaseEntity const*) const */

bool __thiscall Tank::IsAbleToBreak(Tank *this,CBaseEntity *param_1)

{
  bool bVar1;
  
  if (param_1 != (CBaseEntity *)0x0) {
    bVar1 = true;
    if (param_1[0x105] != (CBaseEntity)0x2) {
      bVar1 = param_1[0x186] == (CBaseEntity)0x6;
    }
    return bVar1;
  }
  return false;
}

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)