SpawnGib
0x00a33220 · 290 bytes · __cdecl
_Z8SpawnGibP14CBaseAnimatingPKcS2_RK6Vector
Decompiled
undefined (4 params)
/* SpawnGib(CBaseAnimating*, char const*, char const*, Vector const&) */
void SpawnGib(CBaseAnimating *param_1,char *param_2,char *param_3,Vector *param_4)
{
int *piVar1;
int iVar2;
int iVar3;
Vector *pVVar4;
Vector local_54 [12];
QAngle local_48 [12];
undefined **local_3c [11];
piVar1 = mdlcache;
(**(code **)(*mdlcache + 0x68))(mdlcache);
/* try { // try from 00a3324e to 00a332a4 has its CatchHandler @ 00a33342 */
iVar2 = (**(code **)(*modelinfo + 0xc))(modelinfo,param_3);
iVar3 = CBaseAnimating::LookupAttachment(param_1,param_2);
if ((0 < iVar3) && (0 < iVar2)) {
CBaseAnimating::GetAttachment(param_1,iVar3,local_54,local_48);
pVVar4 = (Vector *)(**(code **)(*(int *)param_1 + 0x288))(param_1);
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
/* try { // try from 00a332b6 to 00a332ba has its CatchHandler @ 00a33369 */
CRecipientFilter::AddRecipientsByPAS((CRecipientFilter *)local_3c,pVVar4);
/* try { // try from 00a3331a to 00a3331f has its CatchHandler @ 00a33354 */
(**(code **)(*(int *)te + 0xa0))
(te,(CRecipientFilter *)local_3c,0xbf800000,iVar2,0,local_54,local_48,param_4,0,0x10,
0xff,0xff,0xff);
local_3c[0] = &PTR__CPASFilter_00bfaf28;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
}
(**(code **)(*piVar1 + 0x6c))(piVar1);
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.