CTongue::GetAbilityActivationDelay
0x004e27b0 · 477 bytes · __thiscall
_ZN7CTongue25GetAbilityActivationDelayEv
Decompiled
undefined (1 param)
/* CTongue::GetAbilityActivationDelay() */
longdouble __thiscall CTongue::GetAbilityActivationDelay(CTongue *this)
{
uint uVar1;
char cVar2;
uint uVar3;
undefined *puVar4;
int iVar5;
int iVar6;
longdouble lVar7;
float fVar8;
uVar3 = *(uint *)(this + 0x44c);
if ((((((uVar3 != 0xffffffff) &&
(puVar4 = g_pEntityList + (uVar3 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar4 + 8) == uVar3 >> 0xc)) &&
((iVar6 = *(int *)(puVar4 + 4), iVar6 != 0 &&
(uVar3 = *(uint *)(iVar6 + 0x33c0), uVar3 != 0xffffffff)))) &&
((puVar4 = g_pEntityList + (uVar3 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc &&
((*(uint *)(puVar4 + 8) == uVar3 >> 0xc && (*(int *)(puVar4 + 4) != 0)))))) &&
(cVar2 = CTerrorGameRules::HasPlayerControlledZombies(), cVar2 != '\0')) {
iVar5 = 0;
uVar3 = *(uint *)(iVar6 + 0x33c0);
if (uVar3 != 0xffffffff) {
puVar4 = g_pEntityList + (uVar3 & 0xfff) * 0x10;
if ((puVar4 == (undefined *)0xfffffffc) || (*(uint *)(puVar4 + 8) != uVar3 >> 0xc)) {
iVar5 = 0;
}
else {
iVar5 = *(int *)(puVar4 + 4);
}
}
uVar1 = *(uint *)(iVar5 + 0x33c4);
if ((((uVar1 != 0xffffffff) &&
(puVar4 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar4 + 8) == uVar1 >> 0xc)) &&
((*(int *)(puVar4 + 4) != 0 && ((&DAT_000033dc)[iVar5] == '\0')))) {
lVar7 = (longdouble)IntervalTimer::Now();
if (1.0 < (float)lVar7 - *(float *)(iVar5 + 0x33cc)) goto LAB_004e27e9;
uVar3 = *(uint *)(iVar6 + 0x33c0);
}
if ((uVar3 == 0xffffffff) ||
(puVar4 = g_pEntityList + (uVar3 & 0xfff) * 0x10, puVar4 == (undefined *)0xfffffffc)) {
if (DAT_000033dc == '\0') {
LAB_004e28f7:
iVar6 = 0;
goto LAB_004e28f9;
}
}
else {
if (*(uint *)(puVar4 + 8) == uVar3 >> 0xc) {
iVar6 = *(int *)(puVar4 + 4);
}
else {
iVar6 = 0;
}
if ((&DAT_000033dc)[iVar6] == '\0') {
if (*(uint *)(puVar4 + 8) != uVar3 >> 0xc) goto LAB_004e28f7;
iVar6 = *(int *)(puVar4 + 4);
LAB_004e28f9:
if ((&DAT_000039f1)[iVar6] == '\0') {
fVar8 = *(float *)(TongueMissDelay._28_4_ + 0x2c);
goto LAB_004e27f3;
}
}
}
}
LAB_004e27e9:
fVar8 = *(float *)(TongueHitDelay._28_4_ + 0x2c);
LAB_004e27f3:
return (longdouble)fVar8;
}
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.