From f51120d181d3d90fd5446d21175377ee64e619b8 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 11 Jun 2016 16:44:29 +1000 Subject: [PATCH] Network movedir (should fix jumppads that don't use targets) --- qcsrc/common/triggers/trigger/jumppads.qc | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.2