CBaseEntity::RemoveRecipientsIfNotCloseCaptioning
0x0060ddd0 · 218 bytes · __cdecl
_ZN11CBaseEntity36RemoveRecipientsIfNotCloseCaptioningER16CRecipientFilter
Decompiled
undefined (1 param)
/* CBaseEntity::RemoveRecipientsIfNotCloseCaptioning(CRecipientFilter&) */
void CBaseEntity::RemoveRecipientsIfNotCloseCaptioning(CRecipientFilter *param_1)
{
int *piVar1;
byte *pbVar2;
int iVar3;
CBasePlayer *pCVar4;
char *__nptr;
uint uVar5;
long lVar6;
byte *pbVar7;
iVar3 = (**(code **)(*(int *)param_1 + 0x10))(param_1);
iVar3 = iVar3 + -1;
if (-1 < iVar3) {
do {
while( true ) {
uVar5 = (**(code **)(*(int *)param_1 + 0x14))(param_1,iVar3);
pbVar2 = *(byte **)(gpGlobals + 0x58);
if (0x7ff < uVar5) break;
if (pbVar2 != (byte *)0x0) {
pbVar7 = pbVar2 + uVar5 * 0x10;
if ((*pbVar7 & 2) != 0) goto LAB_0060de66;
LAB_0060de00:
piVar1 = *(int **)(pbVar7 + 0xc);
if ((((piVar1 != (int *)0x0) &&
(pCVar4 = (CBasePlayer *)(**(code **)(*piVar1 + 0x18))(piVar1),
pCVar4 != (CBasePlayer *)0x0)) &&
(__nptr = (char *)(**(code **)(*engine + 0xe0))(engine,uVar5,"closecaption"),
*__nptr != '\0')) && (lVar6 = strtol(__nptr,(char **)0x0,10), lVar6 == 0)) {
CRecipientFilter::RemoveRecipient(param_1,pCVar4);
}
}
LAB_0060de3c:
iVar3 = iVar3 + -1;
if (iVar3 == -1) {
return;
}
}
if (pbVar2 == (byte *)0x0) goto LAB_0060de3c;
LAB_0060de66:
pbVar7 = pbVar2;
if ((*pbVar2 & 2) == 0) goto LAB_0060de00;
iVar3 = iVar3 + -1;
} while (iVar3 != -1);
}
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.