Commit 6b9c893
committed
fix: (rotation) unwrap the silent yaw at the packet choke point so AimModulo360 sees no seam jump
The mixin-level continuous-offset attempt is undone by onPacket, which rewrites every outgoing rotating packet as packet.rotation = currentRotation (the engine may hold a wrapped [-180,180] yaw). Grim then sees a ~360 seam jump and flags AimModulo360. Apply the unwrap here, the single send choke point for both the Modern and Legacy engines: send the yaw as the shortest continuous offset from the last yaw the server received (serverRotation + angleDifference), so the packet delta is always <= 180 and never a seam jump.1 parent 7831a32 commit 6b9c893
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
971 | 976 | | |
972 | 977 | | |
973 | 978 | | |
| |||
0 commit comments