L L4D2node

CLogicCompare::DoCompare

0x006eac90 · 483 bytes · __thiscall

_ZN13CLogicCompare9DoCompareEP11CBaseEntityf

Decompiled

undefined (3 params)

/* CLogicCompare::DoCompare(CBaseEntity*, float) */

void __thiscall CLogicCompare::DoCompare(CLogicCompare *this,CBaseEntity *param_1,float param_2)

{
  variant_t *pvVar1;
  float local_40;
  float local_3c;
  float local_38;
  float local_34;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  
  local_40 = *(float *)(this + 0x444);
  if (local_40 != param_2) {
    local_3c = param_2;
    variant_t::Set((variant_t *)(this + 0x478),1,&local_3c);
    local_30 = *(undefined4 *)(this + 0x478);
    local_2c = *(undefined4 *)(this + 0x47c);
    local_28 = *(undefined4 *)(this + 0x480);
    local_24 = *(undefined4 *)(this + 0x484);
    local_20 = *(undefined4 *)(this + 0x488);
    CBaseEntityOutput::FireOutput((CBaseEntityOutput *)(this + 0x478),&local_30,param_1,this,0);
    if (*(float *)(this + 0x444) <= param_2 && param_2 != *(float *)(this + 0x444)) {
      pvVar1 = (variant_t *)(this + 0x490);
      local_38 = param_2;
      variant_t::Set(pvVar1,1,&local_38);
      local_30 = *(undefined4 *)(this + 0x490);
      local_2c = *(undefined4 *)(this + 0x494);
      local_28 = *(undefined4 *)(this + 0x498);
      local_24 = *(undefined4 *)(this + 0x49c);
      local_20 = *(undefined4 *)(this + 0x4a0);
    }
    else {
      pvVar1 = (variant_t *)(this + 0x448);
      local_34 = param_2;
      variant_t::Set(pvVar1,1,&local_34);
      local_30 = *(undefined4 *)(this + 0x448);
      local_2c = *(undefined4 *)(this + 0x44c);
      local_28 = *(undefined4 *)(this + 0x450);
      local_24 = *(undefined4 *)(this + 0x454);
      local_20 = *(undefined4 *)(this + 0x458);
    }
    CBaseEntityOutput::FireOutput((CBaseEntityOutput *)pvVar1,&local_30,param_1,this,0);
    return;
  }
  variant_t::Set((variant_t *)(this + 0x460),1,&local_40);
  local_30 = *(undefined4 *)(this + 0x460);
  local_2c = *(undefined4 *)(this + 0x464);
  local_28 = *(undefined4 *)(this + 0x468);
  local_24 = *(undefined4 *)(this + 0x46c);
  local_20 = *(undefined4 *)(this + 0x470);
  CBaseEntityOutput::FireOutput((CBaseEntityOutput *)(this + 0x460),&local_30,param_1,this,0);
  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)