Field manualСправочник / MechanicsМеханика
SnapshotCodec
src/DustConvoy.Sim/Net/SnapshotCodec.cs
ConstantsКонстанты
| NameИмя | ValueЗначение | NoteЗаметка |
|---|---|---|
PosStep | 1f / 32f; // 32 px = 1 m: one pixel of position precision /// <summary>Trucks farther than this from the peer are left out of the pose packet. Convoy trucks and driven trucks always go.</summary> public const float MotionRadius = 96f | |
LocationSendDistance | 260f | Locations this far from every player are sent as empty placeholders (indices must line up with the host's list). |
ChatResendSeconds | 1.0 | Chat lines ride along for this long after they are said (~30 snapshots), so a dropped packet loses nothing. |
ChatBytesPerSnapshot | 320 | Text budget per snapshot: the full snapshot must stay inside one packet. Recent lines rotate through it. |
PropsPerSnapshot | 12 | Prop entries per full snapshot; the full snapshot must stay inside one packet. |
FxSounds | 8 | |
FxTracers | 12 | |
FxHits | 8 | |
FxGore | 4 | |
OwnedPoseTag | 0xA5 |