Skip to content

Commit 8907b4f

Browse files
authored
Merge pull request #505 from makindotcc/pvs-bits
Support PVS bits
2 parents e4ab22e + 0a13854 commit 8907b4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/demoinfocs/sendtables2/entity.go

+6
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,12 @@ func (p *Parser) OnPacketEntities(m *msgs2.CSVCMsg_PacketEntities) error {
477477
index = next
478478

479479
cmd = r.readBits(2)
480+
if cmd == 0 && m.GetHasPvsVisBits() > 0 {
481+
cmd = r.readBits(2) << 3
482+
if cmd&0x08 == 8 {
483+
continue
484+
}
485+
}
480486
if cmd&0x01 == 0 {
481487
if cmd&0x02 != 0 {
482488
classId = int32(r.readBits(p.classIdSize))

0 commit comments

Comments
 (0)