CTongueChokeAwardTemplate::OnConditionsMet
0x008600e0 · 144 bytes · __thiscall
_ZN25CTongueChokeAwardTemplate15OnConditionsMetE9AwardTypeP11CBaseEntity
Decompiled
undefined (3 params)
/* CTongueChokeAwardTemplate::OnConditionsMet(AwardType, CBaseEntity*) */
void __thiscall
CTongueChokeAwardTemplate::OnConditionsMet
(CTongueChokeAwardTemplate *this,int param_2,undefined4 param_3)
{
int *piVar1;
int iVar2;
piVar1 = (int *)CAwardTemplate::GetOwner((CAwardTemplate *)this);
if (piVar1 == (int *)0x0) {
return;
}
CAwardTemplate::OnConditionsMet(this,param_2,param_3);
if (param_2 == 0x6f) {
iVar2 = *piVar1;
}
else if (param_2 < 0x70) {
if (param_2 != 0x6e) {
return;
}
iVar2 = *piVar1;
}
else if (param_2 == 0x70) {
iVar2 = *piVar1;
}
else {
if (param_2 != 0x71) {
return;
}
iVar2 = *piVar1;
}
/* WARNING: Could not recover jumptable at 0x00860156. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(iVar2 + 0x92c))();
return;
}
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.