Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __stdcall NET_cl_Client::OnBroadcastMessage(NET_Message *msg) //yeti.exe
- {
- //...
- NET_cl_MessageCore::Read_1(&msg->sizeWithoutChecksum, &v29);
- switch ( v29 )
- {
- case 0:
- v7 = AI_cl_BroadcastMsgManager::roParam(AI_BroadcastMsgManager::Instance, msg, a2);
- NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v7);
- break;
- case 1:
- v8 = AI_cl_BroadcastMsgManager::poParam(AI_BroadcastMsgManager::Instance, msg, a2);
- sub_6BACF0(&msg->sizeWithoutChecksum, v8);
- break;
- case 2:
- *AI_cl_BroadcastMsgManager::poParam(AI_BroadcastMsgManager::Instance, msg, a2) = 0;
- break;
- case 3:
- v9 = AI_cl_BroadcastMsgManager::pvParam(&AI_BroadcastMsgManager::Instance->char0, msg, a2);
- NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9);
- NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9 + 1);
- NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9 + 2);
- break;
- case 4:
- msg = strlen((msg->pBuffer + msg->minimalSize));
- v10 = sub_4295F0(AI_StringManager::Instance, msg, 0);
- NET_cl_MessageCore::Read_0(&msg->sizeWithoutChecksum, v10, msg + 1);
- AI_cl_BroadcastMsgManager::SetParamString(AI_BroadcastMsgManager::Instance, msg, a2, v10);
- v11 = v27;
- msg->minimalSize += msg + 1;
- if ( v11 < 0xA )
- {
- v24[v11] = v10;
- v27 = v11 + 1;
- }
- else
- {
- RaiseAssertFail(
- "..\\NET_Manager.cpp",
- 431,
- "Too many strings in Broadcast messages sent over the network");
- WriteLog(3, 14, "ASSERT encountered, details below.");
- WriteLog(
- 3,
- 14,
- "At file %s:%d, function %s.",
- "..\\NET_Manager.cpp",
- 431,
- "NET_cl_Manager::OnBroadcastMessage");
- WriteLog(3, 14, "Too many strings in Broadcast messages sent over the network");
- FlushLog();
- sub_429670(AI_StringManager::Instance, v10);
- AI_cl_BroadcastMsgManager::SetParamString(
- AI_BroadcastMsgManager::Instance,
- msg,
- a2,
- "Too many strings sent over the network.");
- }
- break;
- case 5:
- HIBYTE(msg) = 0;
- NET_cl_MessageCore::Read_1(&msg->sizeWithoutChecksum, &msg + 3);
- v12 = msg->minimalSize;
- v13 = (msg->pBuffer + v12);
- v14 = HIBYTE(msg);
- v15 = a2;
- msg->minimalSize = HIBYTE(msg) + v12;
- AI_cl_BroadcastMsgManager::SetParamStruct(AI_BroadcastMsgManager::Instance, msg, v15, v13, v14);
- break;
Advertisement
Add Comment
Please, Sign In to add comment