JockeyAssault::Update
0x00aa4610 · 4941 bytes · __thiscall
_ZN13JockeyAssault6UpdateEP6Jockeyf
Decompiled
undefined (3 params)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* JockeyAssault::Update(Jockey*, float) */
JockeyAssault * __thiscall JockeyAssault::Update(JockeyAssault *this,Jockey *param_1,float param_2)
{
Path *this_00;
CNavArea CVar1;
uint uVar2;
code *pcVar3;
bool bVar4;
char cVar5;
int *piVar6;
uint *puVar7;
CNavArea *pCVar8;
INextBot *pIVar9;
Vector *pVVar10;
Vector *pVVar11;
CNavArea *pCVar12;
int iVar13;
int iVar14;
JockeyLeap *this_01;
undefined4 uVar15;
undefined *puVar16;
Jockey *pJVar17;
CTerrorPlayer *pCVar18;
int *piVar19;
CBaseEntity *pCVar20;
longdouble lVar21;
float fVar22;
float fVar23;
float fVar24;
CBaseEntity *local_70;
CNavArea *local_60;
undefined4 local_5c;
undefined4 local_58;
undefined4 local_50;
undefined4 local_4c;
int local_48;
float local_44;
float local_40;
float local_3c;
float local_38;
undefined4 local_34;
int local_30;
undefined **local_2c;
float local_28;
undefined4 local_24;
undefined1 local_20;
uVar2 = *(uint *)((int)param_2 + 0x3edc);
if ((((uVar2 == 0xffffffff) ||
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar16 + 8) != uVar2 >> 0xc)) ||
(pCVar20 = *(CBaseEntity **)(puVar16 + 4), pCVar20 == (CBaseEntity *)0x0)) {
uVar2 = *(uint *)(param_1 + 0x3c);
pCVar18 = (CTerrorPlayer *)0x0;
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
pCVar18 = *(CTerrorPlayer **)(puVar16 + 4);
}
piVar19 = (int *)0x0;
piVar6 = (int *)BossZombiePlayerBot::ChooseVictim
((BossZombiePlayerBot *)param_2,pCVar18,4,(CBaseCombatCharacter *)0x0)
;
uVar2 = *(uint *)(param_1 + 0x3c);
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
piVar19 = *(int **)(puVar16 + 4);
}
if (piVar6 != piVar19) {
*(undefined4 *)(param_1 + 0x34) = 0;
}
if (piVar6 == (int *)0x0) {
*(undefined4 *)(param_1 + 0x3c) = 0xffffffff;
}
else {
puVar7 = (uint *)(**(code **)(*piVar6 + 0xc))(piVar6);
puVar16 = g_pEntityList;
uVar2 = *puVar7;
*(uint *)(param_1 + 0x3c) = uVar2;
if ((((uVar2 != 0xffffffff) &&
(puVar16 = puVar16 + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) &&
((piVar19 = *(int **)(puVar16 + 4), piVar19 != (int *)0x0 &&
(cVar5 = (**(code **)(*piVar19 + 300))(piVar19), cVar5 != '\0')))) {
uVar2 = *(uint *)((int)param_2 + 0x30bc);
if (((uVar2 == 0xffffffff) ||
((puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 == (undefined *)0xfffffffc
|| (*(uint *)(puVar16 + 8) != uVar2 >> 0xc)))) ||
(piVar19 = *(int **)(puVar16 + 4), piVar19 == (int *)0x0)) {
*(undefined4 *)this = 3;
*(undefined4 *)(this + 4) = 0;
*(char **)(this + 8) = "No ability!";
return this;
}
if (0 < *(int *)(param_1 + 0x4444)) {
piVar6 = (int *)(**(code **)(*(int *)param_2 + 0x9b0))(param_2);
cVar5 = (**(code **)(*piVar6 + 0x114))(piVar6);
if (cVar5 != '\0') {
local_2c = &PTR_operator___00d33038;
local_28 = param_2;
pIVar9 = (INextBot *)((int)param_2 + 0x4028);
local_24 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0xc0))(pIVar9);
uVar2 = *(uint *)(param_1 + 0x3c);
local_20 = 0;
local_70 = (CBaseEntity *)0x0;
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10,
puVar16 != (undefined *)0xfffffffc)) && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
local_70 = *(CBaseEntity **)(puVar16 + 4);
}
local_44 = 0.0;
local_40 = 0.0;
if (_towlower == 0) {
local_30 = 0;
}
else {
(**(code **)(_towlower + 0x50))
(_towlower,&local_44,0,0,0,0,
"/data/src/game/server/nextbot/path/nextbotchasepath.h",0x68,
&ChasePath::Update(INextBot*,CBaseEntity*,IPathCost_const&,Vector*)::tm_fmt
,"(%s)%s","NextBot","ChasePath::Update");
local_30 = _towlower;
}
iVar13 = _DAT_0105db00;
local_38 = local_44;
local_34 = local_40;
/* try { // try from 00aa51e6 to 00aa5246 has its CatchHandler @ 00aa59c1 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
if ((char *)*_DAT_0105d15c != "ChasePath::Update") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode
((char *)_DAT_0105d15c,0xbfa1ef,(char *)0x0,0xca8906);
}
puVar7 = (uint *)(_DAT_0105d1e8 + 4 + _DAT_0105d15c[0x1c] * 8);
*puVar7 = *puVar7 | 4;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 00aa513b to 00aa514b has its CatchHandler @ 00aa5a0d */
ChasePath::RefreshPath
((ChasePath *)(param_1 + 0x40),pIVar9,local_70,(IPathCost *)&local_2c,
(Vector *)0x0);
PathFollower::Update((PathFollower *)(param_1 + 0x40),pIVar9);
iVar13 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
cVar5 = CVProfNode::ExitScope();
if (cVar5 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
if (local_30 != 0) {
(**(code **)(local_30 + 0x54))(local_30,local_38,local_34,0,0,0);
}
goto LAB_00aa4720;
}
}
cVar5 = (**(code **)(*piVar19 + 0x32c))(piVar19);
if (cVar5 != '\0') {
uVar15 = 0;
uVar2 = *(uint *)(param_1 + 0x3c);
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)
) && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
uVar15 = *(undefined4 *)(puVar16 + 4);
}
cVar5 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0x114))
((int)param_2 + 0x4028,uVar15,
*(undefined4 *)(JockeyLeapRange._28_4_ + 0x2c));
if ((cVar5 != '\0') &&
(cVar5 = IsTargetVisible((JockeyAssault *)param_1,(Jockey *)param_2), cVar5 != '\0')) {
uVar15 = 0;
piVar19 = (int *)(**(code **)(*(int *)param_2 + 0x9b4))(param_2);
uVar2 = *(uint *)(param_1 + 0x3c);
if ((uVar2 != 0xffffffff) &&
((puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10,
puVar16 != (undefined *)0xfffffffc && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)))) {
uVar15 = *(undefined4 *)(puVar16 + 4);
}
pCVar18 = (CTerrorPlayer *)0x0;
(**(code **)(*piVar19 + 0xc4))(piVar19,uVar15,2,0x3f800000,0,0,1,0x3e800000);
uVar2 = *(uint *)(param_1 + 0x3c);
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10,
puVar16 != (undefined *)0xfffffffc)) && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
pCVar18 = *(CTerrorPlayer **)(puVar16 + 4);
}
this_01 = ::operator_new(0x6c);
/* try { // try from 00aa53bc to 00aa53c0 has its CatchHandler @ 00aa5a1d */
JockeyLeap::JockeyLeap(this_01,pCVar18);
*(undefined4 *)(param_1 + 0x20) = 0;
*(undefined4 *)(param_1 + 0x24) = 0;
*(undefined4 *)(param_1 + 0x28) = 0;
*(undefined4 *)(param_1 + 0x2c) = 0;
*(undefined4 *)this = 2;
*(JockeyLeap **)(this + 4) = this_01;
*(char **)(this + 8) = "Leaping!";
return this;
}
}
pIVar9 = (INextBot *)((int)param_2 + 0x4028);
local_2c = &PTR_operator___00d33038;
local_28 = param_2;
local_24 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0xc0))(pIVar9);
local_20 = 0;
uVar2 = *(uint *)(param_1 + 0x3c);
local_70 = (CBaseEntity *)0x0;
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc))
&& (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
local_70 = *(CBaseEntity **)(puVar16 + 4);
}
local_44 = 0.0;
local_40 = 0.0;
if (_towlower == 0) {
local_30 = 0;
}
else {
(**(code **)(_towlower + 0x50))
(_towlower,&local_44,0,0,0,0,
"/data/src/game/server/nextbot/path/nextbotchasepath.h",0x68,
&ChasePath::Update(INextBot*,CBaseEntity*,IPathCost_const&,Vector*)::tm_fmt,
"(%s)%s","NextBot","ChasePath::Update");
local_30 = _towlower;
}
iVar13 = _DAT_0105db00;
local_38 = local_44;
local_34 = local_40;
/* try { // try from 00aa5680 to 00aa56e1 has its CatchHandler @ 00aa59d6 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
if ((char *)*_DAT_0105d15c != "ChasePath::Update") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xbfa1ef,(char *)0x0,0xca8906);
}
puVar7 = (uint *)(_DAT_0105d1e8 + 4 + _DAT_0105d15c[0x1c] * 8);
*puVar7 = *puVar7 | 4;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 00aa551e to 00aa552e has its CatchHandler @ 00aa59fd */
ChasePath::RefreshPath
((ChasePath *)(param_1 + 0x40),pIVar9,local_70,(IPathCost *)&local_2c,
(Vector *)0x0);
PathFollower::Update((PathFollower *)(param_1 + 0x40),pIVar9);
iVar13 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
cVar5 = CVProfNode::ExitScope();
if (cVar5 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
if (local_30 != 0) {
(**(code **)(local_30 + 0x54))(local_30,local_38,local_34,0,0,0);
}
if ((*(int *)(param_1 + 0x4444) < 1) &&
(cVar5 = IsTargetVisible((JockeyAssault *)param_1,(Jockey *)param_2), cVar5 != '\0')) {
piVar19 = (int *)(**(code **)(*(int *)param_2 + 0x9b4))(param_2);
uVar2 = *(uint *)(param_1 + 0x3c);
local_70 = (CBaseEntity *)0x0;
if ((uVar2 != 0xffffffff) &&
((puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc
&& (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)))) {
local_70 = *(CBaseEntity **)(puVar16 + 4);
}
(**(code **)(*piVar19 + 0xc4))(piVar19,local_70,2,0x3f800000,0,0,1,0x3e800000);
piVar19 = (int *)(**(code **)(*(int *)param_2 + 0x9b0))(param_2);
pcVar3 = *(code **)(*piVar19 + 0xb4);
uVar2 = *(uint *)(param_1 + 0x3c);
pCVar20 = (CBaseEntity *)0x0;
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)
) && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
pCVar20 = *(CBaseEntity **)(puVar16 + 4);
}
if (((byte)pCVar20[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition(pCVar20);
}
(*pcVar3)(piVar19,pCVar20 + 0x2e0,0x3f800000);
}
piVar19 = (int *)(**(code **)(*(int *)param_2 + 0x9b0))(param_2);
cVar5 = (**(code **)(*piVar19 + 0x114))(piVar19);
if (cVar5 == '\0') {
uVar2 = *(uint *)(param_1 + 0x3c);
uVar15 = 0;
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)
) && (*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
uVar15 = *(undefined4 *)(puVar16 + 4);
}
cVar5 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0x114))(pIVar9,uVar15,0x42480000);
if (cVar5 != '\0') {
(**(code **)(*(int *)param_2 + 0x940))(param_2,0xbf800000);
}
}
}
}
goto LAB_00aa4720;
}
iVar13 = *(int *)(param_1 + 0x902c);
if (iVar13 == 0) {
bVar4 = false;
}
else {
if (((byte)pCVar20[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition(pCVar20);
}
fVar24 = *(float *)(pCVar20 + 0x2e0) - *(float *)(iVar13 + 0x2c);
fVar22 = *(float *)(pCVar20 + 0x2e4) - *(float *)(iVar13 + 0x30);
fVar23 = *(float *)(pCVar20 + 0x2e8) - *(float *)(iVar13 + 0x34);
bVar4 = fVar22 * fVar22 + fVar24 * fVar24 + fVar23 * fVar23 < 1600.0;
}
if (((*(float *)(param_1 + 0x9038) <= 0.0) ||
(lVar21 = (longdouble)CountdownTimer::Now(), *(float *)(param_1 + 0x9038) <= (float)lVar21))
|| (bVar4)) {
pCVar8 = *(CNavArea **)(param_1 + 0x902c);
LAB_00aa4986:
JockeyScan::JockeyScan((JockeyScan *)&local_2c,(BossZombiePlayerBot *)param_2,pCVar8);
fVar22 = *(float *)(JockeyRideScanDistance._28_4_ + 0x2c);
if ((*(byte *)((int)param_2 + 0x14d) & 8) != 0) {
CBaseEntity::CalcAbsolutePosition((CBaseEntity *)param_2);
}
pCVar8 = (CNavArea *)(**(code **)(*(int *)param_2 + 0x52c))(param_2);
SearchSurroundingAreas<JockeyScan>
(pCVar8,(Vector *)((int)param_2 + 0x2e0),(JockeyScan *)&local_2c,fVar22,0,-1);
fVar22 = local_28;
if (local_28 != 0.0) {
local_2c = &PTR_operator___00d33038;
local_28 = param_2;
pIVar9 = (INextBot *)((int)param_2 + 0x4028);
local_24 = (**(code **)(*(int *)((int)param_2 + 0x4028) + 0xc0))(pIVar9);
local_20 = 1;
this_00 = (Path *)(param_1 + 0x484c);
local_5c = 0;
local_58 = 0;
if (_towlower == 0) {
local_48 = 0;
}
else {
(**(code **)(_towlower + 0x50))
(_towlower,&local_5c,0,0,0,0,"/data/src/game/server/nextbot/path/nextbotpath.h",
0x113,&Path::
Compute<JockeyRidePathCost>(INextBot*,Vector_const&,JockeyRidePathCost&,float)
::tm_fmt,"(%s)%s","NextBotSpiky","Path::Compute(goal)");
local_48 = _towlower;
}
iVar13 = _DAT_0105db00;
local_50 = local_5c;
local_4c = local_58;
/* try { // try from 00aa4e9e to 00aa4efe has its CatchHandler @ 00aa59d8 */
if (((_DAT_0105d154 != 0) || (DAT_0105d158 == '\0')) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
if ((char *)*_DAT_0105d15c != "Path::Compute(goal)") {
_DAT_0105d15c =
(int *)CVProfNode::GetSubNode((char *)_DAT_0105d15c,0xbfa1b7,(char *)0x0,0xbfa1cb);
}
puVar7 = (uint *)(_DAT_0105d1e8 + 4 + _DAT_0105d15c[0x1c] * 8);
*puVar7 = *puVar7 | 4;
CVProfNode::EnterScope();
DAT_0105d158 = '\0';
}
/* try { // try from 00aa4afb to 00aa4dc2 has its CatchHandler @ 00aa59ed */
(**(code **)(*(int *)(param_1 + 0x484c) + 0x48))(this_00);
pVVar10 = (Vector *)(**(code **)(*(int *)((int)param_2 + 0x4028) + 0xd4))(pIVar9);
piVar19 = (int *)(**(code **)(*(int *)((int)param_2 + 0x4028) + 0xb4))(pIVar9);
pCVar8 = (CNavArea *)(**(code **)(*piVar19 + 0x52c))(piVar19);
if (pCVar8 == (CNavArea *)0x0) {
/* try { // try from 00aa5943 to 00aa598b has its CatchHandler @ 00aa59ed */
(**(code **)(*(int *)(param_1 + 0x484c) + 100))(this_00,pIVar9,2);
}
else {
pVVar11 = (Vector *)((int)fVar22 + 0x2c);
pCVar12 = (CNavArea *)
CNavMesh::GetNearestNavArea(TheNavMesh,pVVar11,true,200.0,true,true,false);
if (pCVar8 == pCVar12) {
LAB_00aa594b:
Path::BuildTrivialPath(this_00,pIVar9,pVVar11);
}
else {
local_44 = *(float *)((int)fVar22 + 0x2c);
local_40 = *(float *)((int)fVar22 + 0x30);
local_3c = *(float *)((int)fVar22 + 0x34);
if (pCVar12 == (CNavArea *)0x0) {
CNavMesh::GetGroundHeight(TheNavMesh,(Vector *)&local_44,&local_3c,(Vector *)0x0);
}
else {
lVar21 = (longdouble)CNavArea::GetZ(pCVar12,local_44,local_40);
local_3c = (float)lVar21;
}
pCVar20 = (CBaseEntity *)(**(code **)(*(int *)((int)param_2 + 0x4028) + 0xb4))(pIVar9);
if (((byte)pCVar20[0x14d] & 8) != 0) {
/* try { // try from 00aa56f4 to 00aa56f8 has its CatchHandler @ 00aa59ed */
CBaseEntity::CalcAbsolutePosition(pCVar20);
}
local_60 = (CNavArea *)0x0;
local_38 = *(float *)(pCVar20 + 0x2e0);
local_34 = *(float *)(pCVar20 + 0x2e4);
local_30 = *(int *)(pCVar20 + 0x2e8);
pCVar20 = (CBaseEntity *)(**(code **)(*(int *)((int)param_2 + 0x4028) + 0xb4))(pIVar9);
iVar13 = CBaseEntity::GetTeamNumber(pCVar20);
bVar4 = NavAreaBuildPath<JockeyRidePathCost>
(pCVar8,pCVar12,(Vector *)&local_38,pVVar11,
(JockeyRidePathCost *)&local_2c,&local_60,0.0,iVar13,false);
if (local_60 != (CNavArea *)0x0) {
if (pCVar8 == local_60) goto LAB_00aa594b;
iVar13 = 1;
pCVar12 = local_60;
do {
pCVar12 = *(CNavArea **)(pCVar12 + 0x78);
if (pCVar12 == (CNavArea *)0x0) break;
iVar13 = iVar13 + 1;
} while (pCVar8 != pCVar12);
if (iVar13 < 0x100) {
if (iVar13 == 1) goto LAB_00aa594b;
*(int *)(param_1 + 0x8c50) = iVar13;
}
else {
*(undefined4 *)(param_1 + 0x8c50) = 0xff;
iVar13 = 0xff;
}
pCVar8 = local_60;
iVar14 = iVar13;
pJVar17 = param_1 + (iVar13 + -1) * 0x44 + 0x4850;
do {
*(CNavArea **)pJVar17 = pCVar8;
iVar14 = iVar14 + -1;
CVar1 = pCVar8[0x7c];
*(undefined4 *)(pJVar17 + 0x18) = 0;
*(uint *)(pJVar17 + 4) = (byte)CVar1 & 0xf;
pCVar8 = *(CNavArea **)(pCVar8 + 0x78);
if (pCVar8 == (CNavArea *)0x0) break;
pJVar17 = pJVar17 + -0x44;
} while (iVar14 != 0);
iVar13 = iVar13 * 0x44;
*(CNavArea **)(param_1 + iVar13 + 0x4850) = local_60;
*(float *)(this_00 + iVar13 + 0xc) = local_44;
*(float *)(this_00 + iVar13 + 0x10) = local_40;
*(float *)(this_00 + iVar13 + 0x14) = local_3c;
iVar13 = *(int *)(param_1 + 0x8c50);
*(undefined4 *)(param_1 + iVar13 * 0x44 + 0x4864) = 0;
*(undefined4 *)(param_1 + iVar13 * 0x44 + 0x4854) = 9;
*(undefined4 *)(param_1 + iVar13 * 0x44 + 0x4868) = 0;
*(int *)(param_1 + 0x8c50) = iVar13 + 1;
cVar5 = Path::ComputePathDetails(this_00,pIVar9,pVVar10);
if (cVar5 == '\0') {
(**(code **)(*(int *)(param_1 + 0x484c) + 0x48))(this_00);
(**(code **)(*(int *)(param_1 + 0x484c) + 100))(this_00,pIVar9,2);
}
else {
/* try { // try from 00aa57bd to 00aa57e7 has its CatchHandler @ 00aa59ed */
Path::Optimize((INextBot *)this_00);
Path::PostProcess(this_00);
(**(code **)(*(int *)(param_1 + 0x484c) + 100))(this_00,pIVar9,!bVar4);
}
}
}
}
iVar13 = _DAT_0105db00;
if (((DAT_0105d158 == '\0') || (_DAT_0105d154 != 0)) &&
(iVar14 = ThreadGetCurrentId(), iVar13 == iVar14)) {
cVar5 = CVProfNode::ExitScope();
if (cVar5 != '\0') {
_DAT_0105d15c = (int *)_DAT_0105d15c[0x19];
}
DAT_0105d158 = _DAT_0105d15c == (int *)0x105d160;
}
if (local_48 != 0) {
(**(code **)(local_48 + 0x54))(local_48,local_50,local_4c,0,0,0);
}
*(float *)(param_1 + 0x902c) = fVar22;
}
fVar22 = *(float *)(JockeyRideScanInterval._28_4_ + 0x2c);
lVar21 = (longdouble)CountdownTimer::Now();
if ((float)lVar21 + fVar22 != *(float *)(param_1 + 0x9038)) {
(**(code **)(*(int *)(param_1 + 0x9030) + 4))(param_1 + 0x9030,param_1 + 0x9038);
*(float *)(param_1 + 0x9038) = (float)lVar21 + fVar22;
}
if (fVar22 != *(float *)(param_1 + 0x9034)) {
(**(code **)(*(int *)(param_1 + 0x9030) + 4))(param_1 + 0x9030,param_1 + 0x9034);
*(float *)(param_1 + 0x9034) = fVar22;
}
iVar13 = *(int *)(param_1 + 0x902c);
if (iVar13 != 0) goto LAB_00aa4810;
}
else {
iVar13 = *(int *)(param_1 + 0x902c);
pCVar8 = (CNavArea *)0x0;
if (iVar13 == 0) goto LAB_00aa4986;
LAB_00aa4810:
if (*(int *)(z_jockey_debug._28_4_ + 0x30) != 0) {
pCVar20 = (CBaseEntity *)0x0;
uVar2 = *(uint *)((int)param_2 + 0x3edc);
if (((uVar2 != 0xffffffff) &&
(puVar16 = g_pEntityList + (uVar2 & 0xfff) * 0x10, puVar16 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar16 + 8) == uVar2 >> 0xc)) {
pCVar20 = *(CBaseEntity **)(puVar16 + 4);
}
if (((byte)pCVar20[0x14d] & 8) != 0) {
CBaseEntity::CalcAbsolutePosition(pCVar20);
}
NDebugOverlay::HorzArrow
((Vector *)(pCVar20 + 0x2e0),(Vector *)(iVar13 + 0x2c),1.0,0xff,0xff,0,0xff,true,0.2
);
}
PathFollower::Update((PathFollower *)(param_1 + 0x484c),(INextBot *)((int)param_2 + 0x4028));
}
if (*(float *)(param_1 + 0x9038) <= 0.0) {
fVar22 = *(float *)(JockeyRideScanInterval._28_4_ + 0x2c);
lVar21 = (longdouble)CountdownTimer::Now();
if ((float)lVar21 + fVar22 != *(float *)(param_1 + 0x9038)) {
(**(code **)(*(int *)(param_1 + 0x9030) + 4))(param_1 + 0x9030,param_1 + 0x9038);
*(float *)(param_1 + 0x9038) = (float)lVar21 + fVar22;
}
if (fVar22 != *(float *)(param_1 + 0x9034)) {
(**(code **)(*(int *)(param_1 + 0x9030) + 4))(param_1 + 0x9030,param_1 + 0x9034);
*(float *)(param_1 + 0x9034) = fVar22;
}
}
LAB_00aa4720:
*(undefined4 *)this = 0;
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)(this + 8) = 0;
return this;
}
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.