- Fix CMap::GetChunkFacets: impassable test uses the chunk MapObjFlag (MAPOBJ_FLAG_IMPASSABLE at +0xC) like 12340, not MCNK header flag 0x40 (vertex colours). Most chunks got 32000-high wall facets, so the player could jump but not walk. - Ship paths: GetPosition, path time, accel/decel distance, roll/pitch. - Transports: Transport::UpdateMovement, CollideWithTransport, owner matrix. - Map objects: IsAllLoaded, footprints, TriData query chain (QueryTris, GetTrisTerrain/Chunk, GetTriSubchunk, QueryTrisMapObjDefs), QueryIntersectingModels. - Water ripples, projected-texture shadow drawing (shadow.cpp). - World states, LFG best random dungeon, quest POI, ComSat session lookup, blood record, virtual items, guild roster query. - Logout path: tradeskill close, LCD, DBCache_ClearPending, chat/macro/ saved-variable/account-data saving, tracked quests/achievements/ tutorials, UnloadAddOns, SaveAddOnEnableState, ~CGWorldFrame, SmartScreenRectShutdown. - Fixes: TriData batch heights stored as float* (was truncating uint32 on x64), TimeInRange is a ShipPath member, ComSat lookup takes the session type, roll/pitch names swapped in MapObjTransport::UpdateMovement, removed windows.h from Object/Passenger.h. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
39 lines
1006 B
C++
39 lines
1006 B
C++
#include <intrin.h>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Os/OsLibrary.h"
|
|
#include "Engine/Source/Os/System.h"
|
|
#include "WoW/Source/Client.h"
|
|
#include "WoW/Source/Net/Types.h"
|
|
|
|
// OFFSET: 0x004046C0
|
|
void AdditionalCheck1() {
|
|
if (!s_botCheckEnabled || s_botCheckDelay <= 0 || s_botCheckDelay > 420) {
|
|
return;
|
|
}
|
|
|
|
if (_InterlockedCompareExchange(&s_additionalCheckArmed, 0, 1) != 1) {
|
|
return;
|
|
}
|
|
|
|
AdditionalCheckInterface iface;
|
|
iface.m_memAlloc = Client_MemAlloc;
|
|
iface.m_memFree = Client_MemFree;
|
|
iface.m_loadLibrary = OsLoadLibrary;
|
|
iface.m_getLibraryEntryPoint = OsGetLibraryEntryPoint;
|
|
iface.m_freeLibrary = OsFreeLibrary;
|
|
uint8_t detected = 0;
|
|
|
|
__try {
|
|
if (*reinterpret_cast<const uint8_t*>(&OsValidateFunctionPointer) == 0xE9) {
|
|
return;
|
|
}
|
|
|
|
detected = AdditionalCheck1Scan(&iface, 0);
|
|
} __except (1) {
|
|
}
|
|
|
|
if (detected) {
|
|
SendBotDetected2(CMSG_BOT_DETECTED2, 0x60231D69);
|
|
}
|
|
}
|