Files
SatyandClaude Opus 5.5 18c46cb87e Client bring-up: in-world camera, input, movement, unit rendering
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]>
2026-09-29 23:04:53 +02:00

48 lines
1.0 KiB
C++

#include "WGUID.h"
#include "Engine/Source/Base/CDataStore.h"
// VERIFY: df1d6b6b auto
// OFFSET: 0x0076DC20
CDataStore& operator>>(CDataStore& msg, SmartGUID& guid) {
guid.m_guid = 0;
uint8_t mask;
msg.Get(mask);
for (uint32_t i = 0, bit = 0; i < 64; i += 8, bit++) {
if (mask & (1 << bit)) {
uint8_t byte;
msg.Get(byte);
guid.m_guid |= static_cast<uint64_t>(byte) << i;
}
}
return msg;
}
// VERIFY: 1f3fd382 auto
// OFFSET: 0x0076DC80
CDataStore& SmartGUID::Put(CDataStore& msg) const {
uint8_t mask = 0;
uint32_t maskPos = msg.m_size;
msg.Put(static_cast<uint8_t>(0));
for (uint32_t i = 0, bit = 0; i < 64; i += 8, bit++) {
uint8_t byte = static_cast<uint8_t>(this->m_guid >> i);
if (byte) {
mask |= 1 << bit;
msg.Put(byte);
}
}
return msg.Set(maskPos, mask);
}
// VERIFY: e2576b60 auto
// OFFSET: 0x0076DD00
CDataStore& operator<<(CDataStore& msg, const SmartGUID& guid) {
guid.Put(msg);
return msg;
}