CMurderAwardTemplate::CMurderAwardTemplate
0x00859c20 · 146 bytes · __thiscall
_ZN20CMurderAwardTemplateC2Ei
Decompiled
undefined (2 params)
/* CMurderAwardTemplate::CMurderAwardTemplate(int) */
void __thiscall CMurderAwardTemplate::CMurderAwardTemplate(CMurderAwardTemplate *this,int param_1)
{
CMurderAwardTemplate *pCVar1;
CMurderAwardTemplate *pCVar2;
CMurderAwardTemplate *pCVar3;
int iVar4;
pCVar3 = this + 0x10;
CAwardTemplate::CAwardTemplate((CAwardTemplate *)this,param_1);
*(undefined ***)this = &PTR__CMurderAwardTemplate_00cd9468;
pCVar1 = pCVar3;
do {
*(undefined ***)pCVar1 = &PTR_NetworkStateChanged_00c23e10;
pCVar2 = pCVar1 + 8;
*(undefined4 *)(this + (int)(pCVar1 + (0x14 - (int)pCVar3))) = 0xbf800000;
pCVar1 = pCVar2;
} while (pCVar2 != this + 0x110);
iVar4 = 0;
while( true ) {
if (*(float *)(pCVar3 + 4) != -1.0) {
/* try { // try from 00859c9a to 00859c9c has its CatchHandler @ 00859cb6 */
(**(code **)(*(int *)pCVar3 + 4))(pCVar3,pCVar3 + 4);
*(int *)(pCVar3 + 4) = -0x40800000;
}
if (iVar4 == 0xf8) break;
pCVar3 = this + iVar4 + 0x18;
iVar4 = iVar4 + 8;
}
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.