]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
target_spawn: support target *activator to manipulate the activator
authorRudolf Polzer <divverent@alientrap.org>
Sun, 2 May 2010 18:57:49 +0000 (20:57 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 2 May 2010 18:57:49 +0000 (20:57 +0200)
qcsrc/server/target_spawn.qc

index 5e1c78262432f051d6572e2bdb39af804aa0c0a6..1253fe1c07abb9132279becd9becbeff6b00bbfa 100644 (file)
@@ -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