L L4D2node

ServerDemoPacket_BaseEntity::CompareAndCacheModifiedFields

0x00596550 · 242 bytes · __thiscall

_ZN27ServerDemoPacket_BaseEntity29CompareAndCacheModifiedFieldsERKS_

Decompiled

undefined (2 params)

/* ServerDemoPacket_BaseEntity::CompareAndCacheModifiedFields(ServerDemoPacket_BaseEntity const&) */

bool __thiscall
ServerDemoPacket_BaseEntity::CompareAndCacheModifiedFields
          (ServerDemoPacket_BaseEntity *this,ServerDemoPacket_BaseEntity *param_1)

{
  undefined4 uVar1;
  uint uVar2;
  
  uVar2 = 0;
  *(undefined4 *)this = 0;
  if (*(int *)(this + 0x10) != *(int *)(param_1 + 0x10)) {
    *(int *)(this + 0x10) = *(int *)(param_1 + 0x10);
    uVar2 = 4;
    *(undefined4 *)this = 4;
  }
  if (((*(float *)(param_1 + 0x1c) != *(float *)(this + 0x1c)) ||
      (*(float *)(param_1 + 0x20) != *(float *)(this + 0x20))) ||
     (*(float *)(param_1 + 0x24) != *(float *)(this + 0x24))) {
    *(float *)(this + 0x1c) = *(float *)(param_1 + 0x1c);
    uVar2 = uVar2 | 0x40;
    *(undefined4 *)(this + 0x20) = *(undefined4 *)(param_1 + 0x20);
    uVar1 = *(undefined4 *)(param_1 + 0x24);
    *(uint *)this = uVar2;
    *(undefined4 *)(this + 0x24) = uVar1;
  }
  if (((*(float *)(param_1 + 0x28) != *(float *)(this + 0x28)) ||
      (*(float *)(param_1 + 0x2c) != *(float *)(this + 0x2c))) ||
     (*(float *)(param_1 + 0x30) != *(float *)(this + 0x30))) {
    *(float *)(this + 0x28) = *(float *)(param_1 + 0x28);
    uVar2 = uVar2 | 0x80;
    *(undefined4 *)(this + 0x2c) = *(undefined4 *)(param_1 + 0x2c);
    uVar1 = *(undefined4 *)(param_1 + 0x30);
    *(uint *)this = uVar2;
    *(undefined4 *)(this + 0x30) = uVar1;
  }
  if (this[0xe] != param_1[0xe]) {
    uVar2 = uVar2 | 0x10;
    this[0xe] = param_1[0xe];
    *(uint *)this = uVar2;
  }
  if (this[0x18] != param_1[0x18]) {
    uVar2 = uVar2 | 0x20;
    this[0x18] = param_1[0x18];
    *(uint *)this = uVar2;
  }
  if (*(int *)(this + 0x34) != *(int *)(param_1 + 0x34)) {
    *(int *)(this + 0x34) = *(int *)(param_1 + 0x34);
    uVar2 = uVar2 | 0x400;
  }
  *(uint *)this = uVar2 | 3;
  return uVar2 != 0;
}

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)