CResponseSystem::ParseResponse_Fire
0x005ba0d0 · 394 bytes · __cdecl
_ZN15CResponseSystem18ParseResponse_FireER8ResponseR13ResponseGroupP17AI_ResponseParams
Decompiled
undefined (3 params)
/* CResponseSystem::ParseResponse_Fire(Response&, ResponseGroup&, AI_ResponseParams*) */
void CResponseSystem::ParseResponse_Fire
(Response *param_1,ResponseGroup *param_2,AI_ResponseParams *param_3)
{
int iVar1;
undefined4 uVar2;
Response *__nptr;
double dVar3;
if (param_1[0x3d7c] == (Response)0x0) {
if (*(int *)(param_1 + 0x3d8c) < 1) goto LAB_005ba220;
iVar1 = *(int *)(param_1 + 0x3d80);
uVar2 = RR_Parse(*(char **)(iVar1 + 8),(char *)(param_1 + 0x38c8));
*(undefined4 *)(iVar1 + 8) = uVar2;
*(int *)(*(int *)(param_1 + 0x3d80) + 0xc) = *(int *)(*(int *)(param_1 + 0x3d80) + 0xc) + 1;
if (*(int *)(*(int *)(param_1 + 0x3d80) + 8) == 0) goto LAB_005ba220;
}
else {
param_1[0x3d7c] = (Response)0x0;
}
__nptr = param_1 + 0x38c8;
uVar2 = ResponseCopyString((char *)__nptr);
*(undefined4 *)(param_2 + 0x40) = uVar2;
if (param_1[0x3d7c] == (Response)0x0) {
if (*(int *)(param_1 + 0x3d8c) < 1) goto LAB_005ba220;
iVar1 = *(int *)(param_1 + 0x3d80);
uVar2 = RR_Parse(*(char **)(iVar1 + 8),(char *)__nptr);
*(undefined4 *)(iVar1 + 8) = uVar2;
*(int *)(*(int *)(param_1 + 0x3d80) + 0xc) = *(int *)(*(int *)(param_1 + 0x3d80) + 0xc) + 1;
if (*(int *)(*(int *)(param_1 + 0x3d80) + 8) == 0) goto LAB_005ba220;
}
else {
param_1[0x3d7c] = (Response)0x0;
}
uVar2 = ResponseCopyString((char *)__nptr);
*(undefined4 *)(param_2 + 0x44) = uVar2;
if (param_1[0x3d7c] == (Response)0x0) {
if (0 < *(int *)(param_1 + 0x3d8c)) {
iVar1 = *(int *)(param_1 + 0x3d80);
uVar2 = RR_Parse(*(char **)(iVar1 + 8),(char *)__nptr);
*(undefined4 *)(iVar1 + 8) = uVar2;
*(int *)(*(int *)(param_1 + 0x3d80) + 0xc) = *(int *)(*(int *)(param_1 + 0x3d80) + 0xc) + 1;
if (*(int *)(*(int *)(param_1 + 0x3d80) + 8) != 0) goto LAB_005ba1ed;
}
LAB_005ba220:
ResponseWarning((CResponseSystem *)param_1,
"FIRE token in response needs exactly three parameters.");
return;
}
param_1[0x3d7c] = (Response)0x0;
LAB_005ba1ed:
dVar3 = strtod((char *)__nptr,(char **)0x0);
*(float *)(param_2 + 0x48) = (float)dVar3;
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.