TerrorNavArea::InheritAttributes
0x00985060 · 182 bytes · __thiscall
_ZN13TerrorNavArea17InheritAttributesEP8CNavAreaS1_
Decompiled
undefined (3 params)
/* TerrorNavArea::InheritAttributes(CNavArea*, CNavArea*) */
void __thiscall
TerrorNavArea::InheritAttributes(TerrorNavArea *this,CNavArea *param_1,CNavArea *param_2)
{
int iVar1;
int iVar2;
CNavArea::InheritAttributes((CNavArea *)this,param_1,param_2);
if (param_1 == (CNavArea *)0x0) {
return;
}
if (param_2 == (CNavArea *)0x0) {
*(uint *)(this + 300) = *(uint *)(this + 300) | *(uint *)(param_1 + 300);
if (*(int *)(this + 0x160) != 0) {
return;
}
}
else {
*(uint *)(this + 300) = *(uint *)(param_2 + 300) | *(uint *)(param_1 + 300);
iVar2 = *(int *)(param_1 + 0x160);
iVar1 = *(int *)(param_2 + 0x160);
if (iVar2 == iVar1) goto LAB_009850b4;
if (iVar2 == 0) {
*(int *)(this + 0x160) = iVar1;
return;
}
if (iVar1 == 0) goto LAB_009850b4;
iVar2 = RandomInt(0,100);
if (0x31 < iVar2) {
*(undefined4 *)(this + 0x160) = *(undefined4 *)(param_2 + 0x160);
return;
}
}
iVar2 = *(int *)(param_1 + 0x160);
LAB_009850b4:
*(int *)(this + 0x160) = iVar2;
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.