CHitAndRunAwardTemplate::OnConditionsMet
0x00855300 · 156 bytes · __thiscall
_ZN23CHitAndRunAwardTemplate15OnConditionsMetE9AwardTypeP11CBaseEntity
Decompiled
undefined (3 params)
/* CHitAndRunAwardTemplate::OnConditionsMet(AwardType, CBaseEntity*) */
void __thiscall
CHitAndRunAwardTemplate::OnConditionsMet
(CHitAndRunAwardTemplate *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 == 0x8f) {
iVar2 = *piVar1;
}
else if (param_2 < 0x90) {
if (param_2 != 0x8e) {
return;
}
iVar2 = *piVar1;
}
else if (param_2 == 0x90) {
iVar2 = *piVar1;
}
else {
if (param_2 != 0x91) {
return;
}
iVar2 = *piVar1;
}
/* WARNING: Could not recover jumptable at 0x00855381. 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.