CBaseEntity::SetTransmit
0x00600500 · 203 bytes · __thiscall
_ZN11CBaseEntity11SetTransmitEP18CCheckTransmitInfob
Decompiled
undefined (3 params)
/* CBaseEntity::SetTransmit(CCheckTransmitInfo*, bool) */
void __thiscall CBaseEntity::SetTransmit(CBaseEntity *this,CCheckTransmitInfo *param_1,bool param_2)
{
int *piVar1;
uint uVar2;
int iVar3;
uint *puVar4;
uint uVar5;
if (*(int *)(this + 0x30) == 0) {
uVar5 = 1;
iVar3 = 0;
uVar2 = 0;
}
else {
uVar2 = *(int *)(this + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
uVar5 = 1 << ((byte)uVar2 & 0x1f);
iVar3 = (uVar2 >> 5) << 2;
}
if ((*(uint *)(*(int *)(param_1 + 0x2008) + iVar3) & uVar5) == 0) {
iVar3 = ((int)uVar2 >> 5) * 4;
piVar1 = (int *)CServerNetworkProperty::GetNetworkParent
((CServerNetworkProperty *)(this + 0x24));
puVar4 = (uint *)(*(int *)(param_1 + 0x2008) + iVar3);
*puVar4 = *puVar4 | uVar5;
if (*(int *)(param_1 + 0x200c) != 0) {
if ((piVar1 == (int *)0x0) && (!param_2)) {
CServerNetworkProperty::RecomputePVSInformation((CServerNetworkProperty *)(this + 0x24));
return;
}
puVar4 = (uint *)(*(int *)(param_1 + 0x200c) + iVar3);
*puVar4 = *puVar4 | uVar5;
}
if (piVar1 != (int *)0x0) {
piVar1 = (int *)(**(code **)(*piVar1 + 0x1c))(piVar1);
/* WARNING: Could not recover jumptable at 0x006005ac. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*piVar1 + 0x5c))();
return;
}
}
return;
}
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.