首页
社区
课程
招聘
未解决 [求助] UE4问题 10雪币
发表于: 23小时前 77

未解决 [求助] UE4问题 10雪币

23小时前
77

有熟悉UE4的大佬吗, pBuf 这里传过来已经是解密好的了。但是现在出现问题,走不到 X Y Z的地方,条件不满足了,可能是数据发生了一些变化,我也不知道该怎么去定位这个数据 修改这个条件,
有偿找个熟悉UE4的大佬帮忙分析一下看看 。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
void CPubgRadar::SendPacketFilter(LPBYTE pBuf, int nBufLen)
{
     
 
    CBitReader reader;
    CReceiveDataParsing parser;
    ACTOR actor;
    BYTE byteFilterHeader = 0;
    int i = 0;
    int j = 0;
    float fTimes = 0;
    BYTE bReadNext = 0;
    FVECTOR Fv, fvVel;
    FROTATOR FR;
    UINT32 nTemp;
    UINT32 nPosTemp = 0;
    BOOL bLocationValid = FALSE;
    UINT32 nBunchLen = 0;
    UINT32 nPosTemp2 = 0;
    UINT32 nIncorrectID = 0;
    HexShowByte(pBuf, nBufLen);
    memcpy(reader.Buffer, pBuf, nBufLen);
 
    reader.nNum = 8 * nBufLen;
    for (j = 6 * 8; j < (nBufLen) * 8; j++)
    {
        reader.nPos = j;
        Fv.X = 0;
        Fv.Y = 0;
        Fv.Z = 0;
 
        reader.ReadByteData(&byteFilterHeader, 1);
 
        if (byteFilterHeader == 0x80)
        {
            reader.SerializeIntPacked(nBunchLen);
            nPosTemp = reader.nPos;
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
                fTimes = reader.ReadFloat();
                if ((fTimes < 0) || (fTimes > 10000))
                {
                    goto LABEL1;
                }
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
                fTimes = reader.ReadFloat();
                if ((fTimes < 0) || (fTimes > 10000))
                {
                    goto LABEL1;
                }
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
                parser.ReadPackedVector<100, 30>(Fv, reader);
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
                fTimes = reader.ReadFloat();
                if ((fTimes < 0) || (fTimes > 800000))
                {
                    goto LABEL1;
                }
            }
            if ((reader.nPos - nPosTemp) == nBunchLen)
            {
                if ((Fv.X > 10000) && (Fv.X < 800000) && (Fv.Y > 10000) && (Fv.Y < 800000) && (Fv.Z > -1000) && (Fv.Z < 150001))
                {
 
                    if (m_myActor.dwReceiveDataTime != 0x00)
                    {
                        memcpy(&m_myActorTemp, &(m_myActor), sizeof(m_myActorTemp));
                    }
                    if (m_myActor.bDraw == false)
                    {
                        m_myActor.bDraw = true;
                    }
                    if (ChangeMyActorPlace(m_myActor.fXPos, m_myActor.fYPos, m_myActor.fZPos, Fv.X, Fv.Y, Fv.Z))
                    {
                        m_myActor.fXPos = Fv.X;
                        m_myActor.fYPos = Fv.Y;
                        m_myActor.fZPos = Fv.Z;
                    }
                    if (m_nChangeCnt > 3)
                    {
                        m_myActor.fXPos = Fv.X;
                        m_myActor.fYPos = Fv.Y;
                        m_myActor.fZPos = Fv.Z;
                    }
                    m_myActor.dwReceiveDataTime = GetTickCount();
                    continue;
                }
            }
        }
    LABEL1:
        reader.nPos = j;
        reader.ReadByteData(&byteFilterHeader, 1);
        if ((byteFilterHeader == 0x80) || (byteFilterHeader == 0xa0))
        {
 
            reader.SerializeIntPacked(nBunchLen);
            nPosTemp = reader.nPos;
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                reader.ReadByteData((BYTE*)&nIncorrectID, 4);
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                fTimes = reader.ReadFloat();
                if ((fTimes < 0) || (fTimes > 10000))
                {
 
                    goto LABEL2;
 
                }
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                parser.ReadPackedVector<100, 30>(Fv, reader);
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                parser.ReadPackedVector<1, 24>(fvVel, reader);
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                reader.ReadByteData((BYTE*)&nTemp, 2);
 
                reader.ReadByteData((BYTE*)&nTemp, 4);
 
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                parser.ReadPackedVector<1, 24>(fvVel, reader);
            }
            if (((reader.nPos - nPosTemp + 1) == nBunchLen) || ((reader.nPos - nPosTemp) == nBunchLen))
            {
 
                if ((Fv.X > 10000) && (Fv.X < 800000) && (Fv.Y > 10000) && (Fv.Y < 800000) && (Fv.Z > -1000) && (Fv.Z < 150001))
                {
 
                    if (m_myActor.bDraw == false)
                    {
                        m_myActor.bDraw = true;
                    }
                    if (ChangeMyActorPlace(m_myActor.fXPos, m_myActor.fYPos, m_myActor.fZPos, Fv.X, Fv.Y, Fv.Z))
                    {
                        m_myActor.fXPos = Fv.X;
                        m_myActor.fYPos = Fv.Y;
                        m_myActor.fZPos = Fv.Z;
                    }
                    if (m_nChangeCnt > 3)
                    {
                        m_myActor.fXPos = Fv.X;
                        m_myActor.fYPos = Fv.Y;
                        m_myActor.fZPos = Fv.Z;
                    }
                    m_myActor.nType = 0;
                    continue;
                }
            }
        }
    LABEL2:
        reader.nPos = j;
        reader.ReadByteData(&byteFilterHeader, 1);
        if ((byteFilterHeader == 0x4C))
        {
 
            reader.SerializeIntPacked(nBunchLen);
            if (nBunchLen == 102)
            {
                nBunchLen = nBunchLen;
            }
            nPosTemp = reader.nPos;
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                parser.ReadPackedVector<1, 27>(Fv, reader);
            }
            bReadNext = reader.ReadBit();
            if (bReadNext)
            {
 
                reader.ReadByteData((BYTE*)&nTemp, 2);
                nTemp = nTemp & 0xFFFF;
 
                reader.ReadByteData((BYTE*)&nTemp, 2);
 
                nTemp = nTemp & 0xFFFF;
            }
            if (((reader.nPos - nPosTemp) == nBunchLen))
            {
 
                if ((Fv.X > 10000) && (Fv.X < 800000) && (Fv.Y > 10000) && (Fv.Y < 800000) && (Fv.Z > -10000) && (Fv.Z < 150001))
                {
 
                    m_fMyDirYaw = (float)(nTemp) / (65535.0) * 360;
                }
            }
        }
    }
}

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回
//