SmokerTongueVictim::OnStart
0x00aca760 · 542 bytes · __thiscall
_ZN18SmokerTongueVictim7OnStartEP6SmokerP6ActionIS0_E
Decompiled
undefined (3 params)
/* SmokerTongueVictim::OnStart(Smoker*, Action<Smoker>*) */
SmokerTongueVictim * __thiscall
SmokerTongueVictim::OnStart(SmokerTongueVictim *this,Smoker *param_1,Action *param_2)
{
int iVar1;
int *piVar2;
longdouble lVar3;
float fVar4;
iVar1 = GetDifficulty();
if (iVar1 == 1) {
fVar4 = *(float *)(SmokerTongueDelay._28_4_ + 0x2c);
lVar3 = (longdouble)CountdownTimer::Now();
if ((float)lVar3 + fVar4 != *(float *)(param_1 + 0x40)) {
(**(code **)(*(int *)(param_1 + 0x38) + 4))(param_1 + 0x38,param_1 + 0x40);
*(float *)(param_1 + 0x40) = (float)lVar3 + fVar4;
}
if (fVar4 != *(float *)(param_1 + 0x3c)) {
(**(code **)(*(int *)(param_1 + 0x38) + 4))(param_1 + 0x38,param_1 + 0x3c);
*(float *)(param_1 + 0x3c) = fVar4;
}
}
else {
if (iVar1 < 2) {
if (iVar1 != 0) goto LAB_00aca7e0;
fVar4 = *(float *)(SmokerTongueDelay._28_4_ + 0x2c) +
*(float *)(SmokerTongueDelay._28_4_ + 0x2c);
lVar3 = (longdouble)CountdownTimer::Now();
if ((float)lVar3 + fVar4 != *(float *)(param_1 + 0x40)) {
(**(code **)(*(int *)(param_1 + 0x38) + 4))(param_1 + 0x38,param_1 + 0x40);
*(float *)(param_1 + 0x40) = (float)lVar3 + fVar4;
}
}
else {
if (3 < iVar1) goto LAB_00aca7e0;
lVar3 = (longdouble)CountdownTimer::Now();
if ((float)lVar3 != *(float *)(param_1 + 0x40)) {
(**(code **)(*(int *)(param_1 + 0x38) + 4))(param_1 + 0x38,param_1 + 0x40);
*(float *)(param_1 + 0x40) = (float)lVar3;
}
fVar4 = 0.0;
}
if (fVar4 != *(float *)(param_1 + 0x3c)) {
(**(code **)(*(int *)(param_1 + 0x38) + 4))(param_1 + 0x38,param_1 + 0x3c);
*(float *)(param_1 + 0x3c) = fVar4;
}
}
LAB_00aca7e0:
param_1[0x44] = (Smoker)0x0;
CTerrorPlayer::Vocalize((CTerrorPlayer *)param_2,"SmokerZombie.Warn",0.0,0.0);
(**(code **)(*(int *)param_2 + 0x7fc))(param_2,0x57,0);
piVar2 = (int *)(**(code **)(*(int *)param_2 + 0x9b0))(param_2);
(**(code **)(*piVar2 + 0xe0))(piVar2);
*(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.