| 2334 | |
| 2335 | |
| 2336 | bool cConnection::HandleServerSpawnPickup(void) |
| 2337 | { |
| 2338 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, EntityID); |
| 2339 | AString ItemDesc; |
| 2340 | if (!ParseSlot(m_ServerBuffer, ItemDesc)) |
| 2341 | { |
| 2342 | return false; |
| 2343 | } |
| 2344 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX); |
| 2345 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY); |
| 2346 | HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosZ); |
| 2347 | HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Rotation); |
| 2348 | HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Pitch); |
| 2349 | HANDLE_SERVER_PACKET_READ(ReadByte, Byte, Roll); |
| 2350 | Log("Received a PACKET_SPAWN_PICKUP from the server:"); |
| 2351 | Log(" EntityID = %d", EntityID); |
| 2352 | Log(" Item = %s", ItemDesc.c_str()); |
| 2353 | Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ).c_str()); |
| 2354 | Log(" Angles = [%d, %d, %d]", Rotation, Pitch, Roll); |
| 2355 | COPY_TO_CLIENT(); |
| 2356 | return true; |
| 2357 | } |
| 2358 | |
| 2359 | |
| 2360 |
nothing calls this directly
no test coverage detected