TankBehavior::Update
0x00aeea00 · 358 bytes · __thiscall
_ZN12TankBehavior6UpdateEP4Tankf
Decompiled
undefined (3 params)
/* TankBehavior::Update(Tank*, float) */
TankBehavior * __thiscall TankBehavior::Update(TankBehavior *this,Tank *param_1,float param_2)
{
char cVar1;
int *piVar2;
int *piVar3;
int *piVar4;
int *piVar5;
float fVar6;
cVar1 = (**(code **)(*(int *)param_2 + 0xa0))(param_2);
if (cVar1 == '\0') {
piVar2 = (int *)(**(code **)(*(int *)param_2 + 0x9bc))(param_2);
piVar3 = (int *)(**(code **)(*(int *)param_2 + 0x9b0))(param_2);
piVar4 = (int *)(**(code **)(*(int *)param_2 + 0x9b4))(param_2);
piVar5 = (int *)(**(code **)(*piVar2 + 0xb4))(piVar2);
cVar1 = (**(code **)(*piVar3 + 0x114))(piVar3);
if ((cVar1 == '\0') && (piVar5 != (int *)0x0)) {
cVar1 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0x114))
((int)param_2 + 0x4028,piVar5,0x42480000);
if (cVar1 != '\0') {
cVar1 = (**(code **)(*piVar2 + 0xf8))(piVar2,piVar5,0);
if (cVar1 != '\0') {
cVar1 = (**(code **)(*piVar5 + 0x7e8))(piVar5);
if (cVar1 == '\0') {
fVar6 = *(float *)(HulkSwingDuration._28_4_ + 0x2c) +
*(float *)(HulkWindupTime._28_4_ + 0x2c);
}
else {
fVar6 = *(float *)(TankGroundPoundDuration._28_4_ + 0x2c);
}
(**(code **)(*piVar4 + 0xc4))(piVar4,piVar5,2,fVar6,0,0,1,0x3e800000);
(**(code **)(*(int *)param_2 + 0x938))(param_2,0xbf800000);
}
}
}
}
*(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.