CNavArea::UpdateBlockedFromNavBlockers
0x007026f0 · 538 bytes · __thiscall
_ZN8CNavArea28UpdateBlockedFromNavBlockersEv
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CNavArea::UpdateBlockedFromNavBlockers() */
void __thiscall CNavArea::UpdateBlockedFromNavBlockers(CNavArea *this)
{
char cVar1;
int iVar2;
int iVar3;
bool local_3e;
char local_3d;
undefined4 local_3c;
undefined4 local_38;
undefined4 local_30;
undefined4 local_2c;
int local_28;
Extent local_24 [12];
Vector local_18 [12];
local_3c = 0;
local_38 = 0;
if (___atan2f_finite == 0) {
local_28 = 0;
}
else {
(**(code **)(___atan2f_finite + 0x50))
(___atan2f_finite,&local_3c,0,0,0,0,"/data/src/game/server/nav_area.cpp",0x12bd,
&UpdateBlockedFromNavBlockers()::tm_fmt,"(%s)%s","Unaccounted",
"CNavArea::UpdateBlockedFromNavBlockers");
local_28 = ___atan2f_finite;
}
iVar2 = _DAT_0105db00;
local_30 = local_3c;
local_2c = local_38;
if ((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) {
/* try { // try from 00702896 to 007028e4 has its CatchHandler @ 0070294c */
iVar3 = ThreadGetCurrentId();
if (iVar2 == iVar3) {
if ((char *)*_DAT_0105d15c != "CNavArea::UpdateBlockedFromNavBlockers") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xca1760,(char *)0x1,0xbfafa1);
}
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
}
GetExtent(this,local_24);
this[0x7f] = (CNavArea)0x0;
*(uint *)(this + 0x54) = *(uint *)(this + 0x54) & 0x77ffffff;
/* try { // try from 007027ce to 007027d2 has its CatchHandler @ 0070292b */
iVar2 = CFuncNavBlocker::CalculateBlocked(&local_3e,(Vector *)local_24,local_18);
if (local_3e != false) {
this[0x7f] = (CNavArea)((byte)this[0x7f] | 1);
}
if (local_3d != '\0') {
this[0x7f] = (CNavArea)((byte)this[0x7f] | 2);
}
if (0 < iVar2) {
if (iVar2 == 2) {
*(uint *)(this + 0x54) = *(uint *)(this + 0x54) | 0x88000000;
}
else {
*(uint *)(this + 0x54) = *(uint *)(this + 0x54) | 0x80000000;
}
}
iVar2 = _DAT_0105db00;
if ((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) {
iVar3 = ThreadGetCurrentId();
if (iVar2 == iVar3) {
cVar1 = CVProfNode::ExitScope();
if (cVar1 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
}
if (local_28 != 0) {
(**(code **)(local_28 + 0x54))(local_28,local_30,local_2c,0,0,0);
}
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.