CColaBottles::GetTargetEntity
0x00535fe0 · 66 bytes · __cdecl
_ZN12CColaBottles15GetTargetEntityEP13CTerrorPlayerN17CBaseBackpackItem22BackpackItemActionTypeE
Decompiled
undefined (2 params)
/* CColaBottles::GetTargetEntity(CTerrorPlayer*, CBaseBackpackItem::BackpackItemActionType) */
void CColaBottles::GetTargetEntity(CCarriedProp *param_1,CTerrorPlayer *param_2)
{
CCarriedProp::FindPropUseTarget
(param_1,param_2,*(float *)(cola_bottles_use_range._28_4_ + 0x2c),
*(float *)(cola_bottles_use_tolerance._28_4_ + 0x2c),0x2000000);
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.