L L4D2node

CTerrorWeapon::SuppressHelpingHands

0x0053c840 · 243 bytes · __thiscall

_ZN13CTerrorWeapon20SuppressHelpingHandsEf

Decompiled

undefined (2 params)

/* CTerrorWeapon::SuppressHelpingHands(float) */

void __thiscall CTerrorWeapon::SuppressHelpingHands(CTerrorWeapon *this,float param_1)

{
  float fVar1;
  longdouble lVar2;
  
  if (param_1 <= 0.0) {
    param_1 = *(float *)(survivor_helping_hand_inhibit_duration._28_4_ + 0x2c);
  }
  fVar1 = *(float *)(this + 0x1544);
  if ((0.0 < fVar1) && (lVar2 = (longdouble)CountdownTimer::Now(), param_1 <= fVar1 - (float)lVar2))
  {
    return;
  }
  lVar2 = (longdouble)CountdownTimer::Now();
  if ((float)lVar2 + param_1 != *(float *)(this + 0x1544)) {
    (**(code **)(*(int *)(this + 0x153c) + 4))(this + 0x153c,this + 0x1544);
    *(float *)(this + 0x1544) = (float)lVar2 + param_1;
  }
  if (param_1 == *(float *)(this + 0x1540)) {
    return;
  }
  (**(code **)(*(int *)(this + 0x153c) + 4))(this + 0x153c,this + 0x1540);
  *(float *)(this + 0x1540) = param_1;
  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)