UTIL_PlayerDecalTrace
0x00b2ce90 · 155 bytes · __cdecl
_Z21UTIL_PlayerDecalTraceP10CGameTracei
Decompiled
undefined (2 params)
/* UTIL_PlayerDecalTrace(CGameTrace*, int) */
void UTIL_PlayerDecalTrace(CGameTrace *param_1,int param_2)
{
int iVar1;
undefined **local_3c [11];
if (*(float *)(param_1 + 0x2c) == 1.0) {
return;
}
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
/* try { // try from 00b2cecd to 00b2ced1 has its CatchHandler @ 00b2cf4d */
CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_3c);
if (*(int *)(*(int *)(param_1 + 0x4c) + 0x30) == 0) {
iVar1 = 0;
}
else {
iVar1 = *(int *)(*(int *)(param_1 + 0x4c) + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
}
/* try { // try from 00b2cf14 to 00b2cf15 has its CatchHandler @ 00b2cf34 */
(**(code **)(*(int *)te + 0x78))(te,(CRecipientFilter *)local_3c,0,param_1 + 0xc,param_2,iVar1);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
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.