UTIL_TraceEntity
0x00580760 · 169 bytes · __cdecl
_Z16UTIL_TraceEntityP11CBaseEntityRK6VectorS3_jPK13IHandleEntityiP10CGameTrace
Decompiled
undefined (7 params)
/* UTIL_TraceEntity(CBaseEntity*, Vector const&, Vector const&, unsigned int, IHandleEntity const*,
int, CGameTrace*) */
void UTIL_TraceEntity(CBaseEntity *param_1,Vector *param_2,Vector *param_3,uint param_4,
IHandleEntity *param_5,int param_6,CGameTrace *param_7)
{
code *pcVar1;
int *piVar2;
undefined4 uVar3;
undefined **local_2c;
CBaseEntity *local_28;
int local_24;
undefined4 local_20;
undefined4 local_1c;
CBaseEntity *local_18;
undefined1 local_14;
IHandleEntity *local_10;
piVar2 = (int *)(**(code **)(*(int *)param_1 + 0x10))(param_1);
local_28 = param_1;
local_20 = 0;
local_2c = &PTR_ShouldHitEntity_00c54620;
local_24 = param_6;
local_1c = CBaseEntity::GetRootMoveParent(param_1);
local_18 = param_1;
local_14 = (**(code **)(*g_EntityCollisionHash + 0x18))(g_EntityCollisionHash,param_1);
local_2c = &PTR_ShouldHitEntity_00c54638;
local_10 = param_5;
pcVar1 = *(code **)(*enginetrace + 0x24);
uVar3 = (**(code **)(*piVar2 + 0x24))(piVar2);
(*pcVar1)(enginetrace,piVar2,param_2,param_3,uVar3,param_4,&local_2c,param_7);
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.