Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.2 kB
3
Indexable
Never
 case (GameUpdatePacket)0x1b:
    if (\*(int \*)(param_1 + 4) == -1) {
      return;
    }
    pNVar8 = (NetObjectManager *)GetNetObjMgr();
    pNVar9 = (NetAvatar *)NetObjectManager::GetObjectByNetID(pNVar8,*(int *)(param_1 + 4));
    if (pNVar9 == (NetAvatar *)0x0) {
      return;
    }
    pNVar9[0x1a4] = SUB41(*(undefined4 *)(param_1 + 0x2c),0);
    NetAvatar::SetBattleScore(pNVar9,0);
    pNVar9[0x1a5] = (NetAvatar)0xff;
    local_380 = &DAT_00458988;
    if (*(int *)(param_1 + 0x2c) < 4) {
      pNVar7 = (NetAvatar *)GetLocalPlayer(this);
      if (pNVar9 == pNVar7) {
        BattleTeamName((int)auStack_37c,SUB41(*(undefined4 *)(param_1 + 0x2c),0));
        FUN_000b7800(auStack_378,"You joined the ",auStack_37c);
        FUN_001b3038(auStack_374,auStack_378,&DAT_00343954);
        FUN_002e3b0c(&local_380,auStack_374);
        FUN_002e2914(auStack_374);
        FUN_002e2914(auStack_378);
        FUN_002e2914(auStack_37c);
      }
      else {
        FUN_002e3a8c(auStack_370,pNVar9 + 0x24);
        FUN_002e3a8c(auStack_36c,auStack_370);
        FUN_002e3700(auStack_36c," joined the ",0xc);
        BattleTeamName((int)auStack_368,SUB41(*(undefined4 *)(param_1 + 0x2c),0));
        FUN_001b3008(auStack_364,auStack_36c,auStack_368);
        FUN_002e3a8c(auStack_360,auStack_364);
        FUN_002e3700(auStack_360,&DAT_00343954,1);
        FUN_002e3b0c(&local_380,auStack_360);
        FUN_002e2914(auStack_360);
        FUN_002e2914(auStack_364);
        FUN_002e2914(auStack_368);
        FUN_002e2914(auStack_36c);
        FUN_002e2914(auStack_370);
      }
    }
    else {
      pNVar7 = (NetAvatar *)GetLocalPlayer(this);
      if (pNVar9 == pNVar7) {
        FUN_002e2c30(&local_380,"You joined the game!");
      }
      else {
        FUN_002e3a8c(auStack_35c,pNVar9 + 0x24);
        FUN_002e3a8c(auStack_358,auStack_35c);
        FUN_002e3700(auStack_358," joined the game!",0x11);
        FUN_002e3b0c(&local_380,auStack_358);
        FUN_002e2914(auStack_358);
        FUN_002e2914(auStack_35c);
      }
    }
    FUN_002e3fc4(auStack_354,local_380,auStack_3e0);
    LogToConsoleSafe((basic_string)auStack_354);
    FUN_002e2914(auStack_354);
LAB_001c1230:
    FUN_002e2914(&local_380);
    break;