L L4D2node

CRifle_SG552::GetRateOfFire

0x00557dc0 · 47 bytes · __thiscall

_ZNK12CRifle_SG55213GetRateOfFireEv

Decompiled

undefined (1 param)

/* CRifle_SG552::GetRateOfFire() const */

longdouble __thiscall CRifle_SG552::GetRateOfFire(CRifle_SG552 *this)

{
  char cVar1;
  longdouble lVar2;
  
  cVar1 = CTerrorGun::IsOwnerZoomed((CTerrorGun *)this);
  if (cVar1 != '\0') {
    return (longdouble)(float)0x3e0a3d71;
  }
  lVar2 = (longdouble)CTerrorGun::GetRateOfFire((CTerrorGun *)this);
  return lVar2;
}

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)