ServerDemoPacket_BaseAnimatingOverlay::WriteModifiedDataToBuffer
0x00597d40 · 293 bytes · __thiscall
_ZN37ServerDemoPacket_BaseAnimatingOverlay25WriteModifiedDataToBufferEP15CCircularBuffer
Decompiled
undefined (2 params)
/* ServerDemoPacket_BaseAnimatingOverlay::WriteModifiedDataToBuffer(CCircularBuffer*) */
void __thiscall
ServerDemoPacket_BaseAnimatingOverlay::WriteModifiedDataToBuffer
(ServerDemoPacket_BaseAnimatingOverlay *this,CCircularBuffer *param_1)
{
uint uVar1;
uint uVar2;
int iVar3;
ServerDemoPacket_BaseAnimatingOverlay *pSVar4;
if (((byte)this[0x1e4] & 1) != 0) {
CCircularBuffer::Write(param_1,this,1);
}
iVar3 = 0;
pSVar4 = this + 0xc;
if (*this != (ServerDemoPacket_BaseAnimatingOverlay)0x0) {
do {
while( true ) {
uVar2 = 2 << ((char)iVar3 * '\t' & 0x1fU);
uVar1 = *(uint *)(this + 0x1e4);
if ((uVar2 * 2 & 0xff & uVar1) == 0) break;
CCircularBuffer::Write(param_1,pSVar4 + -8,4);
uVar1 = *(uint *)(this + 0x1e4);
if ((uVar1 & uVar2 * 4 & 0xff) != 0) goto LAB_00597ded;
LAB_00597d7e:
if ((uVar1 & (uVar2 & 0xf) << 4) == 0) goto LAB_00597d8c;
LAB_00597e21:
iVar3 = iVar3 + 1;
CCircularBuffer::Write(param_1,pSVar4,4);
pSVar4 = pSVar4 + 0x20;
if ((int)(uint)(byte)*this <= iVar3) {
return;
}
}
if ((uVar1 & uVar2 * 4 & 0xff) == 0) goto LAB_00597d7e;
LAB_00597ded:
CCircularBuffer::Write(param_1,pSVar4 + -4,4);
if ((*(uint *)(this + 0x1e4) & (uVar2 & 0xf) << 4) != 0) goto LAB_00597e21;
LAB_00597d8c:
iVar3 = iVar3 + 1;
pSVar4 = pSVar4 + 0x20;
} while (iVar3 < (int)(uint)(byte)*this);
}
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.