From 0a138548e994f0ec6857b078b3d86fa6980a5854 Mon Sep 17 00:00:00 2001 From: makindotcc <9150636+makindotcc@users.noreply.github.com> Date: Fri, 9 Feb 2024 06:28:43 +0100 Subject: [PATCH] Ignore entity PVS updates --- pkg/demoinfocs/sendtables2/entity.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/demoinfocs/sendtables2/entity.go b/pkg/demoinfocs/sendtables2/entity.go index 047062a3..e86d6424 100644 --- a/pkg/demoinfocs/sendtables2/entity.go +++ b/pkg/demoinfocs/sendtables2/entity.go @@ -477,6 +477,12 @@ func (p *Parser) OnPacketEntities(m *msgs2.CSVCMsg_PacketEntities) error { index = next cmd = r.readBits(2) + if cmd == 0 && m.GetHasPvsVisBits() > 0 { + cmd = r.readBits(2) << 3 + if cmd&0x08 == 8 { + continue + } + } if cmd&0x01 == 0 { if cmd&0x02 != 0 { classId = int32(r.readBits(p.classIdSize))