CTerrorUsePushFilter::ShouldHitEntity
0x009e4370 · 101 bytes · __cdecl
_ZN20CTerrorUsePushFilter15ShouldHitEntityEP13IHandleEntityi
Decompiled
undefined (2 params)
/* CTerrorUsePushFilter::ShouldHitEntity(IHandleEntity*, int) */
uint CTerrorUsePushFilter::ShouldHitEntity(IHandleEntity *param_1,int param_2)
{
uint uVar1;
uVar1 = (**(code **)(*staticpropmgr + 8))(staticpropmgr,param_2);
if ((char)uVar1 != '\0') {
return 0;
}
if (((param_2 != 0) && (*(int *)(param_2 + 0x238) != 0)) && (*(char *)(param_2 + 0x186) == '\x06')
) {
uVar1 = CBasePlayer::CanPickupObject((CBaseEntity *)param_2,35.0,128.0);
return uVar1 ^ 1;
}
return uVar1;
}
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.