CMemberScriptBinding2<CRuleScriptBridge*,HSCRIPT__*(CRuleScriptBridge::*)(HSCRIPT__*,float),HSCRIPT__*,HSCRIPT__*,float>::Call
0x0080e0b0 · 158 bytes · __cdecl
_ZN21CMemberScriptBinding2IP17CRuleScriptBridgeMS0_FP9HSCRIPT__S3_fES3_S3_fE4CallEPvS7_P12CVariantBaseI24CVariantDefaultAllocatorEiSB_
Decompiled
undefined (5 params)
/* CMemberScriptBinding2<CRuleScriptBridge*, HSCRIPT__* (CRuleScriptBridge::*)(HSCRIPT__*, float),
HSCRIPT__*, HSCRIPT__*, float>::Call(void*, void*, CVariantBase<CVariantDefaultAllocator>*, int,
CVariantBase<CVariantDefaultAllocator>*) */
bool CMemberScriptBinding2<CRuleScriptBridge*,HSCRIPT__*(CRuleScriptBridge::*)(HSCRIPT__*,float),HSCRIPT__*,HSCRIPT__*,float>
::Call(void *param_1,void *param_2,CVariantBase *param_3,int param_4,CVariantBase *param_5)
{
bool bVar1;
undefined4 uVar2;
float fVar3;
bVar1 = param_5 == (CVariantBase *)0x0 || param_4 != 2;
if (param_5 == (CVariantBase *)0x0 || param_4 != 2) {
return false;
}
if (param_2 != (void *)0x0) {
if (((uint)param_1 & 1) != 0) {
param_1 = *(void **)(*(int *)param_2 + -1 + (int)param_1);
}
fVar3 = *(float *)(param_3 + 0xc);
if (*(short *)(param_3 + 0x14) != 1) {
fVar3 = (float)(int)fVar3;
}
uVar2 = (*param_1)(param_2,*(undefined4 *)param_3,fVar3);
if (((byte)param_5[10] & 1) != 0) {
free(*(void **)param_5);
*(ushort *)(param_5 + 10) = *(ushort *)(param_5 + 10) & 0xfffe;
}
*(undefined4 *)(param_5 + 4) = 0;
*(undefined2 *)(param_5 + 8) = 0x20;
bVar1 = true;
*(undefined4 *)param_5 = uVar2;
}
return bVar1;
}
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.