From ca90ebdfa8789654766c5d7969baa7afacd9ebd2 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 16 Feb 2026 16:31:54 -0500 Subject: initial commit --- protocol/mvd/mvd.go | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 protocol/mvd/mvd.go (limited to 'protocol/mvd') diff --git a/protocol/mvd/mvd.go b/protocol/mvd/mvd.go new file mode 100644 index 0000000..7165bfd --- /dev/null +++ b/protocol/mvd/mvd.go @@ -0,0 +1,47 @@ +package mvd + +const ProtocolVersion = ('M' << 0) + ('V' << 8) + ('D' << 16) + ('1' << 24) + +const ( + ExtensionFloatCoords = 1 << 0 + ExtensionHighLagTeleport = 1 << 1 + ExtensionServerSideWeapon = 1 << 2 + ExtensionDebugWeapon = 1 << 3 + ExtensionDebugAntilag = 1 << 4 + ExtensionHiddenMessages = 1 << 5 + ExtensionServerSideWeapon2 = 1 << 6 + ExtensionIncludeInMVD = ExtensionHiddenMessages +) + +const ( + DemoMultiple = 3 + DemoSingle = 4 + DemoStats = 5 + DemoAll = 6 +) + +const ( + CLCWeapon = 200 + CLCWeaponModePresel = 1 << 0 + CLCWeaponModeIffiring = 1 << 1 + CLCWeaponForgetRanking = 1 << 2 + CLCWeaponHideAxe = 1 << 3 + CLCWeaponHideSg = 1 << 4 + CLCWeaponResetOnDeath = 1 << 5 + CLCWeaponSwitching = 1 << 6 + CLCWeaponFullImpulse = 1 << 7 +) + +const ( + HiddenAntilagPosition = 0 + HiddenUserCommand = 1 + HiddenUserCommandWeapon = 2 + HiddenDemoInfo = 3 + HiddenCommentaryTrack = 4 + HiddenCommentaryData = 5 + HiddenCommentaryTextSegment = 6 + HiddenDamangeDone = 7 + HiddenUserCommandWeaponServerSide = 8 + HiddenUserCommandWeaponInstruction = 9 + HiddenPausedDuration = 10 +) -- cgit v1.2.3-59-g8ed1b