Skip to content

Commit

Permalink
Merge pull request #505 from makindotcc/pvs-bits
Browse files Browse the repository at this point in the history
Support PVS bits
  • Loading branch information
akiver committed Feb 9, 2024
2 parents e4ab22e + 0a13854 commit 8907b4f
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 8907b4f

Please sign in to comment.