@@ -89,7 +89,7 @@ CConVar<bool> g_cvarBlockMolotovSelfDmg("cs2f_block_molotov_self_dmg", FCVAR_NON
8989CConVar<bool > g_cvarBlockAllDamage (" cs2f_block_all_dmg" , FCVAR_NONE , " Whether to block all damage to players" , false );
9090CConVar<bool > g_cvarFixBlockDamage (" cs2f_fix_block_dmg" , FCVAR_NONE , " Whether to fix block-damage on players" , false );
9191
92- int64 FASTCALL Detour_CBaseEntity_TakeDamageOld (CBaseEntity* pThis, CTakeDamageInfo* inputInfo)
92+ int64 FASTCALL Detour_CBaseEntity_TakeDamageOld (CBaseEntity* pThis, CTakeDamageInfo* inputInfo, uint64_t unk3 )
9393{
9494#ifdef _DEBUG
9595 Message (" \n --------------------------------\n "
@@ -138,7 +138,7 @@ int64 FASTCALL Detour_CBaseEntity_TakeDamageOld(CBaseEntity* pThis, CTakeDamageI
138138 if (g_cvarBlockMolotovSelfDmg.Get () && inputInfo->m_hAttacker == pThis && !V_strncmp (pszInflictorClass, " inferno" , 7 ))
139139 return 0 ;
140140
141- const auto damage = CBaseEntity_TakeDamageOld (pThis, inputInfo);
141+ const auto damage = CBaseEntity_TakeDamageOld (pThis, inputInfo, unk3 );
142142
143143 if (damage > 0 && g_cvarEnableZR.Get () && pThis->IsPawn ())
144144 ZR_OnPlayerTakeDamage (reinterpret_cast <CCSPlayerPawn*>(pThis), inputInfo, static_cast <int32>(damage));
@@ -486,12 +486,12 @@ bool FASTCALL Detour_CEntityIdentity_AcceptInput(CEntityIdentity* pThis, CUtlSym
486486
487487CConVar<bool > g_cvarBlockNavLookup (" cs2f_block_nav_lookup" , FCVAR_NONE , " Whether to block navigation mesh lookup, improves server performance but breaks bot navigation" , false );
488488
489- void * FASTCALL Detour_CNavMesh_GetNearestNavArea (int64_t unk1, float * unk2, unsigned int * unk3, unsigned int unk4, int64_t unk5, int64_t unk6, float unk7, int64_t unk8 )
489+ void * FASTCALL Detour_CNavMesh_GetNearestNavArea (int64_t unk1, float * unk2, unsigned int * unk3, unsigned int unk4, int64_t unk5, int64_t unk6, float unk7)
490490{
491491 if (g_cvarBlockNavLookup.Get ())
492492 return nullptr ;
493493
494- return CNavMesh_GetNearestNavArea (unk1, unk2, unk3, unk4, unk5, unk6, unk7, unk8 );
494+ return CNavMesh_GetNearestNavArea (unk1, unk2, unk3, unk4, unk5, unk6, unk7);
495495}
496496
497497void FASTCALL Detour_ProcessMovement (CCSPlayer_MovementServices* pThis, void * pMove)
0 commit comments