From 0a2078a26ce5dcf03c71344265d3c7374df3fab6 Mon Sep 17 00:00:00 2001 From: avirox Date: Mon, 21 Jan 2008 00:17:20 +0000 Subject: [PATCH] - Node links now activate their "target"s on capture git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3205 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/mode_onslaught.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/qcsrc/server/mode_onslaught.qc b/data/qcsrc/server/mode_onslaught.qc index 922d2c5a1..54c5b67d7 100644 --- a/data/qcsrc/server/mode_onslaught.qc +++ b/data/qcsrc/server/mode_onslaught.qc @@ -365,6 +365,9 @@ void() onslaught_controlpoint_icon_think = void() onslaught_controlpoint_icon_buildthink = { + local entity oself; + oself = self; + self.nextthink = time + 0.1; self.health = self.health + self.count; if (self.health >= self.max_health) @@ -376,6 +379,12 @@ void() onslaught_controlpoint_icon_buildthink = bprint(ColoredTeamName(self.team), " captured ", self.owner.message, " control point\n"); self.owner.iscaptured = TRUE; onslaught_updatelinks(); + + // Use targets now (somebody make sure this is in the right place..) + self = self.owner; + activator = self; + SUB_UseTargets (); + self = oself; } self.alpha = self.health / self.max_health; // colormod flash when shot -- 2.39.2