From: Mario Date: Sat, 11 Jun 2016 06:44:29 +0000 (+1000) Subject: Network movedir (should fix jumppads that don't use targets) X-Git-Tag: xonotic-v0.8.2~828 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f51120d181d3d90fd5446d21175377ee64e619b8;p=xonotic%2Fxonotic-data.pk3dir.git Network movedir (should fix jumppads that don't use targets) --- diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index 9e16c4ef0..8b84a651d 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -346,6 +346,10 @@ float trigger_push_send(entity this, entity to, float sf) WriteByte(MSG_ENTITY, this.active); WriteCoord(MSG_ENTITY, this.height); + WriteCoord(MSG_ENTITY, this.movedir_x); + WriteCoord(MSG_ENTITY, this.movedir_y); + WriteCoord(MSG_ENTITY, this.movedir_z); + trigger_common_write(this, true); return true; @@ -442,6 +446,10 @@ NET_HANDLE(ENT_CLIENT_TRIGGER_PUSH, bool isnew) this.active = ReadByte(); this.height = ReadCoord(); + this.movedir_x = ReadCoord(); + this.movedir_y = ReadCoord(); + this.movedir_z = ReadCoord(); + trigger_common_read(this, true); this.entremove = trigger_remove_generic;