X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Fmisc%2Fteleport_dest.qc;h=40c7d46c42803ce65dc2411a5da2847d190791b0;hp=ab15a689192c50ac21e2c639b54c3d26f951d8ac;hb=59845bcb06720efc1f30ffbf550f7e04a4c51fcd;hpb=10c0e93c75ef6f408e3357bd5fb46c721e7e0576 diff --git a/qcsrc/common/triggers/misc/teleport_dest.qc b/qcsrc/common/triggers/misc/teleport_dest.qc index ab15a6891..40c7d46c4 100644 --- a/qcsrc/common/triggers/misc/teleport_dest.qc +++ b/qcsrc/common/triggers/misc/teleport_dest.qc @@ -1,3 +1,4 @@ +#include "teleport_dest.qh" REGISTER_NET_LINKED(ENT_CLIENT_TELEPORT_DEST) #ifdef SVQC @@ -12,9 +13,7 @@ bool teleport_dest_send(entity this, entity to, int sf) WriteByte(MSG_ENTITY, this.cnt); WriteCoord(MSG_ENTITY, this.speed); WriteString(MSG_ENTITY, this.targetname); - WriteCoord(MSG_ENTITY, this.origin_x); - WriteCoord(MSG_ENTITY, this.origin_y); - WriteCoord(MSG_ENTITY, this.origin_z); + WriteVector(MSG_ENTITY, this.origin); WriteAngle(MSG_ENTITY, this.mangle_x); WriteAngle(MSG_ENTITY, this.mangle_y); @@ -54,11 +53,6 @@ spawnfunc(misc_teleporter_dest) spawnfunc_info_teleport_destination(this); } -spawnfunc(target_teleporter) -{ - spawnfunc_info_teleport_destination(this); -} - #elif defined(CSQC) void teleport_dest_remove(entity this) @@ -82,9 +76,7 @@ NET_HANDLE(ENT_CLIENT_TELEPORT_DEST, bool isnew) this.cnt = ReadByte(); this.speed = ReadCoord(); this.targetname = strzone(ReadString()); - this.origin_x = ReadCoord(); - this.origin_y = ReadCoord(); - this.origin_z = ReadCoord(); + this.origin = ReadVector(); this.mangle_x = ReadAngle(); this.mangle_y = ReadAngle();