Skip to content

Commit

Permalink
Ignore entity PVS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
makindotcc committed Feb 9, 2024
1 parent e4ab22e commit 0a13854
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/demoinfocs/sendtables2/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0a13854

Please sign in to comment.