File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,13 @@ var teCreators = map[msg.ETEProtobufIds]NetMessageCreator{
269
269
msg .ETEProtobufIds_TE_SmokeId : func () proto.Message { return & msg.CMsgTESmoke {} },
270
270
}
271
271
272
+ var bidirectionalMessageCreators = map [msg.Bidirectional_Messages ]NetMessageCreator {
273
+ msg .Bidirectional_Messages_bi_RebroadcastGameEvent : func () proto.Message { return & msg.CBidirMsg_RebroadcastGameEvent {} },
274
+ msg .Bidirectional_Messages_bi_RebroadcastSource : func () proto.Message { return & msg.CBidirMsg_RebroadcastSource {} },
275
+ msg .Bidirectional_Messages_bi_GameEvent : func () proto.Message { return & msg.CBidirMsg_RebroadcastGameEvent {} },
276
+ msg .Bidirectional_Messages_bi_PredictionEvent : func () proto.Message { return & msg.CBidirMsg_PredictionEvent {} },
277
+ }
278
+
272
279
type pendingMessage struct {
273
280
t int32
274
281
buf []byte
@@ -324,6 +331,10 @@ func (p *parser) handleDemoPacket(pack *msg.CDemoPacket) {
324
331
325
332
if m .t < int32 (msg .SVC_Messages_svc_ServerInfo ) {
326
333
msgCreator = netMsgCreators [msg .NET_Messages (m .t )]
334
+
335
+ if msgCreator == nil {
336
+ msgCreator = bidirectionalMessageCreators [msg .Bidirectional_Messages (m .t )]
337
+ }
327
338
} else if m .t < int32 (msg .EBaseUserMessages_UM_AchievementEvent ) {
328
339
msgCreator = svcMsgCreators [msg .SVC_Messages (m .t )]
329
340
} else if m .t < int32 (msg .EBaseGameEvents_GE_VDebugGameSessionIDEvent ) {
You can’t perform that action at this time.
0 commit comments