Snapshot for release 2026.10.12.1 (internal ef4d41d)
This commit is contained in:
parent
08b80eed86
commit
b0f9d74b21
54 changed files with 5062 additions and 935 deletions
|
|
@ -131,6 +131,8 @@ internal static class SmartBoxHooks
|
|||
|
||||
try
|
||||
{
|
||||
if (info.Opcode == PositionUpdateOpcode && info.RawObjectId != 0)
|
||||
NotePlayerMotionEcho(blob, info);
|
||||
TryQueueHealthUpdate(blob, info);
|
||||
TryQueueDamageEvent(blob, info);
|
||||
|
||||
|
|
@ -671,6 +673,24 @@ internal static class SmartBoxHooks
|
|||
}
|
||||
}
|
||||
|
||||
// UpdateMotion (0xF74C) for the player with the autonomous flag set: the server's answer to a
|
||||
// MoveToState from this client (layout: opcode, guid, u16 instance, u16 movement seq, u16
|
||||
// server-control seq, u8 autonomous at +14). Counted for the pre-cast stop (PreCastStopRules).
|
||||
private static void NotePlayerMotionEcho(IntPtr blob, SmartBoxEventInfo info)
|
||||
{
|
||||
if (info.BlobSize < 16) return;
|
||||
uint player = ClientHelperHooks.CachedPlayerId;
|
||||
if (player == 0 || info.RawObjectId != player) return;
|
||||
try
|
||||
{
|
||||
IntPtr payloadPtr = Marshal.ReadIntPtr(IntPtr.Add(blob, NetBlobBufPtrOffset));
|
||||
if (payloadPtr == IntPtr.Zero) return;
|
||||
if (Marshal.ReadByte(IntPtr.Add(payloadPtr, 14)) != 0)
|
||||
AcMainThreadQueue.NotePlayerMotionEcho();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
private static void TryQueueHealthUpdate(IntPtr blob, SmartBoxEventInfo info)
|
||||
{
|
||||
if (info.Opcode != 0x01C0 || info.BlobSize < 12 || blob == IntPtr.Zero)
|
||||
|
|
|
|||
Loading…
Reference in a new issue