From: Rudolf Polzer Date: Sun, 2 May 2010 18:57:49 +0000 (+0200) Subject: target_spawn: support target *activator to manipulate the activator X-Git-Tag: xonotic-v0.1.0preview~612^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=84cabf9a84c1f74d27508073711675ce8655b55e;p=xonotic%2Fxonotic-data.pk3dir.git target_spawn: support target *activator to manipulate the activator --- diff --git a/qcsrc/server/target_spawn.qc b/qcsrc/server/target_spawn.qc index 5e1c78262..1253fe1c0 100644 --- a/qcsrc/server/target_spawn.qc +++ b/qcsrc/server/target_spawn.qc @@ -269,6 +269,12 @@ void target_spawn_use() target_spawn_useon(e); e.target_spawn_id = self.target_spawn_id; } + else if(self.target == "*activator") + { + // edit entity + if(activator) + target_spawn_useon(activator); + } else { // edit entity