CHLTVClientState::ProcessUserMessage
0x00169d50 · 183 bytes · __thiscall
_ZN16CHLTVClientState18ProcessUserMessageEP15SVC_UserMessage
Decompiled
undefined (2 params)
/* CHLTVClientState::ProcessUserMessage(SVC_UserMessage*) */
void __thiscall
CHLTVClientState::ProcessUserMessage(CHLTVClientState *this,SVC_UserMessage *param_1)
{
undefined4 uVar1;
CHLTVClientState *pCVar2;
int iVar3;
uint uVar4;
uint uVar5;
int in_GS_OFFSET;
int aiStack_50 [2];
int iStack_48;
uint auStack_44 [5];
CHLTVClientState *local_30 [4];
int local_20;
local_20 = *(int *)(in_GS_OFFSET + 0x14);
local_30[0] = this;
iVar3 = *(int *)(param_1 + 0x50) + 7 >> 3;
uVar4 = iVar3 + 3;
uVar5 = iVar3 + 6;
if (-1 < (int)uVar4) {
uVar5 = uVar4;
}
iVar3 = -(((uVar5 & 0xfffffffc) + 0xf & 0xfffffff0) + 0x10);
*(int *)((int)auStack_44 + iVar3) = *(int *)(param_1 + 0x50);
*(SVC_UserMessage **)((int)aiStack_50 + iVar3 + 4) = param_1 + 0x54;
*(int *)((int)&iStack_48 + iVar3) = (int)local_30 + iVar3;
*(undefined4 *)((int)aiStack_50 + iVar3) = 0x169da7;
CBitRead::ReadBits(*(CBitRead **)((int)aiStack_50 + iVar3 + 4),*(void **)((int)&iStack_48 + iVar3)
,*(int *)((int)auStack_44 + iVar3));
*(undefined4 *)((int)auStack_44 + iVar3 + 8) = 0xffffffff;
uVar1 = *(undefined4 *)(param_1 + 0x50);
*(uint *)((int)auStack_44 + iVar3) = uVar5 & 0xfffffffc;
*(int *)((int)&iStack_48 + iVar3) = (int)local_30 + iVar3;
*(undefined4 *)((int)auStack_44 + iVar3 + 4) = uVar1;
*(SVC_UserMessage **)((int)aiStack_50 + iVar3 + 4) = param_1 + 0x78;
*(undefined4 *)((int)aiStack_50 + iVar3) = 0x169dc9;
bf_write::StartWriting
(*(bf_write **)((int)aiStack_50 + iVar3 + 4),*(void **)((int)&iStack_48 + iVar3),
*(int *)((int)auStack_44 + iVar3),*(int *)((int)auStack_44 + iVar3 + 4),
*(int *)((int)auStack_44 + iVar3 + 8));
pCVar2 = local_30[0];
*(undefined4 *)((int)auStack_44 + iVar3 + 4) = 0;
*(undefined4 *)((int)auStack_44 + iVar3) = 0;
*(SVC_UserMessage **)((int)&iStack_48 + iVar3) = param_1;
*(undefined4 *)((int)aiStack_50 + iVar3 + 4) = *(undefined4 *)(pCVar2 + 0x49ec);
*(undefined4 *)((int)aiStack_50 + iVar3) = 0x169dee;
CHLTVServer::SendNetMsg
(*(INetMessage **)((int)aiStack_50 + iVar3 + 4),*(bool *)((int)&iStack_48 + iVar3),
*(bool *)((int)auStack_44 + iVar3));
if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
return;
}
/* WARNING: Subroutine does not return */
*(undefined **)((int)aiStack_50 + iVar3) = &UNK_00169e07;
__stack_chk_fail();
}
SourceMod gamedata
paste intoaddons/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.
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.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.