From cde4300a5ed7b64790f25993a805aee88bc4d5f0 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 21 Mar 2016 17:43:57 +1000 Subject: [PATCH] Link some positional entities (fixes prediction of jumppads in some odd old maps) --- qcsrc/common/triggers/misc/teleport_dest.qc | 4 ++-- qcsrc/common/triggers/target/location.qc | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/triggers/misc/teleport_dest.qc b/qcsrc/common/triggers/misc/teleport_dest.qc index f6919006d..33401930d 100644 --- a/qcsrc/common/triggers/misc/teleport_dest.qc +++ b/qcsrc/common/triggers/misc/teleport_dest.qc @@ -26,8 +26,8 @@ bool teleport_dest_send(entity this, entity to, int sf) void teleport_dest_link() {SELFPARAM(); - //Net_LinkEntity(self, false, 0, teleport_dest_send); - //self.SendFlags |= 1; // update + Net_LinkEntity(self, false, 0, teleport_dest_send); + self.SendFlags |= 1; // update } spawnfunc(info_teleport_destination) diff --git a/qcsrc/common/triggers/target/location.qc b/qcsrc/common/triggers/target/location.qc index 14512c794..642c72cdb 100644 --- a/qcsrc/common/triggers/target/location.qc +++ b/qcsrc/common/triggers/target/location.qc @@ -1,14 +1,20 @@ #ifdef SVQC +void target_push_init(entity this); + spawnfunc(target_location) { self.classname = "target_location"; // location name in netname // eventually support: count, teamgame selectors, line of sight? + + target_push_init(this); } spawnfunc(info_location) { - self.classname = "target_location"; - self.message = self.netname; + this.classname = "target_location"; + this.message = this.netname; + + target_push_init(this); } #endif -- 2.39.2