ChargerAssault::OnResume
0x00a7e3a0 · 544 bytes · __thiscall
_ZN14ChargerAssault8OnResumeEP7ChargerP6ActionIS0_E
Decompiled
undefined (3 params)
/* ChargerAssault::OnResume(Charger*, Action<Charger>*) */
ChargerAssault * __thiscall
ChargerAssault::OnResume(ChargerAssault *this,Charger *param_1,Action *param_2)
{
uint uVar1;
char cVar2;
undefined *puVar3;
longdouble lVar4;
if (param_2 != (Action *)0x0) {
cVar2 = (**(code **)(*(int *)param_2 + 0x16c))(param_2);
if (cVar2 != '\0') {
uVar1 = *(uint *)(param_2 + 0x3e4c);
if ((((uVar1 != 0xffffffff) &&
(puVar3 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar3 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar3 + 8) == uVar1 >> 0xc)) && (*(int *)(puVar3 + 4) != 0)) {
lVar4 = (longdouble)CountdownTimer::Now();
if ((float)lVar4 + 2.0 != *(float *)(param_1 + 0x485c)) {
(**(code **)(*(int *)(param_1 + 0x4854) + 4))(param_1 + 0x4854,param_1 + 0x485c);
*(float *)(param_1 + 0x485c) = (float)lVar4 + 2.0;
}
if (*(float *)(param_1 + 0x4858) != 2.0) {
(**(code **)(*(int *)(param_1 + 0x4854) + 4))(param_1 + 0x4854,param_1 + 0x4858);
*(undefined4 *)(param_1 + 0x4858) = 0x40000000;
}
}
}
}
if (*(float *)(param_1 + 0x482c) != -1.0) {
(**(code **)(*(int *)(param_1 + 0x4824) + 4))(param_1 + 0x4824,param_1 + 0x482c);
*(undefined4 *)(param_1 + 0x482c) = 0xbf800000;
}
if (*(float *)(param_1 + 0x4838) != -1.0) {
(**(code **)(*(int *)(param_1 + 0x4830) + 4))(param_1 + 0x4830,param_1 + 0x4838);
*(undefined4 *)(param_1 + 0x4838) = 0xbf800000;
}
PathFollower::Invalidate((PathFollower *)(param_1 + 0x38));
lVar4 = (longdouble)CountdownTimer::Now();
if ((float)lVar4 + 0.1 != *(float *)(param_1 + 0x4868)) {
(**(code **)(*(int *)(param_1 + 0x4860) + 4))(param_1 + 0x4860,param_1 + 0x4868);
*(float *)(param_1 + 0x4868) = (float)lVar4 + 0.1;
}
if (*(float *)(param_1 + 0x4864) != 0.1) {
(**(code **)(*(int *)(param_1 + 0x4860) + 4))(param_1 + 0x4860,param_1 + 0x4864);
*(undefined4 *)(param_1 + 0x4864) = 0x3dcccccd;
}
*(undefined4 *)this = 0;
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)(this + 8) = 0;
return this;
}
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.