Ports verified against 12340 that take the x64 client from character login to a playable world: - Camera: SetView/ResetView, motion, free-look facing, tracking, bobs, liquid bump, world collision; camera Lua scripts - Input: world frame key/mouse layers, default action, mouselook, turn/pitch player, TurnOrAction/CameraOrSelectOrMove scripts - Movement: legal facing range, turn/pitch/raw facing events, transport status, move spline copy, unit update info, smooth facing, anim end - Units: component and extended display init, model fade/scale, entity sort table, RenderEntitys, split-body culling - Interiors: WMO group bounds, BSP segment link query, face linking, interior lighting - Collision: CMap::QueryFacets closure with frustum queries and NDCClip - UI: game UI mouse filters, client control state, faction standing packet, many *_Scripts.cpp Lua tables; name generator dictionary fix Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
23 lines
710 B
C++
23 lines
710 B
C++
#include "DynamicObject.h"
|
|
#include "WoW/Source/Object/Object.h"
|
|
|
|
// VERIFY: 1c11978c auto
|
|
// OFFSET: 0x004D4340
|
|
uint32_t CGDynamicObject::DescriptorToMirrorOffset(uint32_t offset, uint32_t size, int32_t local, uint32_t base) {
|
|
int32_t total = CGObject::TotalFieldsSaved();
|
|
|
|
return (offset & 3) + 4 * (total + CGDynamicObject::GetSavedIndexFromDataIndex((offset - base) >> 2, (size + 3) >> 2, local));
|
|
}
|
|
|
|
// VERIFY: dfd94fc0 auto
|
|
// OFFSET: 0x007F3B60
|
|
uint32_t CGDynamicObject::GetSavedIndexFromDataIndex(uint32_t index, uint32_t count, int32_t local) {
|
|
return 6;
|
|
}
|
|
|
|
// VERIFY: 5b8b167d auto
|
|
// OFFSET: 0x004F5670
|
|
int32_t CGDynamicObject::TotalFields() {
|
|
return CGObject::TotalFieldsSaved();
|
|
}
|