diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-18 17:48:50 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-18 17:48:50 +0100 |
commit | d47ff5520373acb359590fb036b6a761af58cf75 (patch) | |
tree | 63f68f88d8bf8730da1dd32880ec526dc889bc6c /source/Protocol/Protocol14x.cpp | |
parent | Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols. (diff) | |
download | cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.gz cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.bz2 cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.lz cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.xz cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.zst cuberite-d47ff5520373acb359590fb036b6a761af58cf75.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol14x.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/Protocol/Protocol14x.cpp b/source/Protocol/Protocol14x.cpp index 912a1a266..b70d6e0aa 100644 --- a/source/Protocol/Protocol14x.cpp +++ b/source/Protocol/Protocol14x.cpp @@ -235,3 +235,25 @@ void cProtocol146::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, +void cProtocol146::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleType)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte(PACKET_SPAWN_OBJECT);
+ WriteInt (a_Vehicle.GetUniqueID());
+ WriteByte(a_VehicleType);
+ WriteInt ((int)(a_Vehicle.GetPosX() * 32));
+ WriteInt ((int)(a_Vehicle.GetPosY() * 32));
+ WriteInt ((int)(a_Vehicle.GetPosZ() * 32));
+ WriteInt (1);
+ WriteShort(0); // TODO: SpeedX
+ WriteShort(0); // TODO: SpeedY
+ WriteShort(0); // TODO: SpeedZ
+ WriteByte (0); // TODO: Yaw
+ WriteByte (0); // TODO: Pitch
+ Flush();
+}
+
+
+
+
+
|