L L4D2node

CNavArea::MarkAsDamaging

0x009862b0 · 42 bytes · __thiscall

_ZN8CNavArea14MarkAsDamagingEf

Decompiled

undefined (2 params)

/* CNavArea::MarkAsDamaging(float) */

void __thiscall CNavArea::MarkAsDamaging(CNavArea *this,float param_1)

{
  *(int *)(this + 0x70) =
       (int)(param_1 / *(float *)(gpGlobals + 0x1c) + 0.5) + *(int *)(gpGlobals + 0x18);
  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)