Guest User

Untitled

a guest
Jul 12th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.93 KB | None | 0 0
  1. void __stdcall NET_cl_Client::OnBroadcastMessage(NET_Message *msg) //yeti.exe
  2. {
  3. //...
  4.         NET_cl_MessageCore::Read_1(&msg->sizeWithoutChecksum, &v29);
  5.         switch ( v29 )
  6.         {
  7.           case 0:
  8.             v7 = AI_cl_BroadcastMsgManager::roParam(AI_BroadcastMsgManager::Instance, msg, a2);
  9.             NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v7);
  10.             break;
  11.           case 1:
  12.             v8 = AI_cl_BroadcastMsgManager::poParam(AI_BroadcastMsgManager::Instance, msg, a2);
  13.             sub_6BACF0(&msg->sizeWithoutChecksum, v8);
  14.             break;
  15.           case 2:
  16.             *AI_cl_BroadcastMsgManager::poParam(AI_BroadcastMsgManager::Instance, msg, a2) = 0;
  17.             break;
  18.           case 3:
  19.             v9 = AI_cl_BroadcastMsgManager::pvParam(&AI_BroadcastMsgManager::Instance->char0, msg, a2);
  20.             NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9);
  21.             NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9 + 1);
  22.             NET_cl_MessageCore::Read_4(&msg->sizeWithoutChecksum, v9 + 2);
  23.             break;
  24.           case 4:
  25.             msg = strlen((msg->pBuffer + msg->minimalSize));
  26.             v10 = sub_4295F0(AI_StringManager::Instance, msg, 0);
  27.             NET_cl_MessageCore::Read_0(&msg->sizeWithoutChecksum, v10, msg + 1);
  28.             AI_cl_BroadcastMsgManager::SetParamString(AI_BroadcastMsgManager::Instance, msg, a2, v10);
  29.             v11 = v27;
  30.             msg->minimalSize += msg + 1;
  31.             if ( v11 < 0xA )
  32.             {
  33.               v24[v11] = v10;
  34.               v27 = v11 + 1;
  35.             }
  36.             else
  37.             {
  38.               RaiseAssertFail(
  39.                 "..\\NET_Manager.cpp",
  40.                 431,
  41.                 "Too many strings in Broadcast messages sent over the network");
  42.               WriteLog(3, 14, "ASSERT encountered, details below.");
  43.               WriteLog(
  44.                 3,
  45.                 14,
  46.                 "At file %s:%d, function %s.",
  47.                 "..\\NET_Manager.cpp",
  48.                 431,
  49.                 "NET_cl_Manager::OnBroadcastMessage");
  50.               WriteLog(3, 14, "Too many strings in Broadcast messages sent over the network");
  51.               FlushLog();
  52.               sub_429670(AI_StringManager::Instance, v10);
  53.               AI_cl_BroadcastMsgManager::SetParamString(
  54.                 AI_BroadcastMsgManager::Instance,
  55.                 msg,
  56.                 a2,
  57.                 "Too many strings sent over the network.");
  58.             }
  59.             break;
  60.           case 5:
  61.             HIBYTE(msg) = 0;
  62.             NET_cl_MessageCore::Read_1(&msg->sizeWithoutChecksum, &msg + 3);
  63.             v12 = msg->minimalSize;
  64.             v13 = (msg->pBuffer + v12);
  65.             v14 = HIBYTE(msg);
  66.             v15 = a2;
  67.             msg->minimalSize = HIBYTE(msg) + v12;
  68.             AI_cl_BroadcastMsgManager::SetParamStruct(AI_BroadcastMsgManager::Instance, msg, v15, v13, v14);
  69.             break;
Advertisement
Add Comment
Please, Sign In to add comment