CScriptEntityOutputs::GetOutputTable
0x00b5a910 · 422 bytes · __thiscall
_ZN20CScriptEntityOutputs14GetOutputTableEP9HSCRIPT__PKcS1_i
Decompiled
undefined (5 params)
/* CScriptEntityOutputs::GetOutputTable(HSCRIPT__*, char const*, HSCRIPT__*, int) */
void __thiscall
CScriptEntityOutputs::GetOutputTable
(CScriptEntityOutputs *this,HSCRIPT__ *param_1,char *param_2,HSCRIPT__ *param_3,
int param_4)
{
code *pcVar1;
ScriptClassDesc_t *pSVar2;
CBaseEntity *this_00;
int iVar3;
undefined1 *puVar4;
undefined4 *puVar5;
void *local_28 [2];
undefined2 local_20;
ushort local_1e;
if (param_1 != (HSCRIPT__ *)0x0) {
pcVar1 = *(code **)(*g_pScriptVM + 0x68);
pSVar2 = GetScriptDesc<CBaseEntity>((CBaseEntity *)0x0);
this_00 = (CBaseEntity *)(*pcVar1)(g_pScriptVM,param_1,pSVar2);
if ((((this_00 != (CBaseEntity *)0x0) && (param_3 != (HSCRIPT__ *)0x0)) && (-1 < param_4)) &&
((iVar3 = CBaseEntity::FindNamedOutput(this_00,param_2), iVar3 != 0 &&
(puVar5 = *(undefined4 **)(iVar3 + 0x14), puVar5 != (undefined4 *)0x0)))) {
iVar3 = 0;
if (param_4 != 0) {
do {
puVar5 = (undefined4 *)puVar5[6];
iVar3 = iVar3 + 1;
if (puVar5 == (undefined4 *)0x0) {
return;
}
} while (param_4 != iVar3);
}
puVar4 = (undefined1 *)*puVar5;
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
(**(code **)(*g_pScriptVM + 0x74))(g_pScriptVM,param_3,"target",puVar4);
puVar4 = (undefined1 *)puVar5[1];
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
(**(code **)(*g_pScriptVM + 0x74))(g_pScriptVM,param_3,"input",puVar4);
puVar4 = (undefined1 *)puVar5[2];
if (puVar4 == (undefined1 *)0x0) {
puVar4 = &DAT_00d539c2;
}
(**(code **)(*g_pScriptVM + 0x74))(g_pScriptVM,param_3,"parameter",puVar4);
local_28[0] = (void *)puVar5[3];
local_20 = 1;
local_1e = 0;
/* try { // try from 00b5aa5e to 00b5aa5f has its CatchHandler @ 00b5aac2 */
(**(code **)(*g_pScriptVM + 0x78))(g_pScriptVM,param_3,"delay",local_28);
if ((local_1e & 1) != 0) {
free(local_28[0]);
}
local_28[0] = (void *)puVar5[4];
local_20 = 5;
local_1e = 0;
/* try { // try from 00b5aaa6 to 00b5aaa7 has its CatchHandler @ 00b5aad4 */
(**(code **)(*g_pScriptVM + 0x78))(g_pScriptVM,param_3,"times_to_fire",local_28);
if ((local_1e & 1) != 0) {
free(local_28[0]);
}
}
}
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.