]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Trigger targeted entities when key is picked up, mimics original Quake 1 behaviour
authorMario <mario@smbclan.net>
Mon, 12 Oct 2015 20:30:34 +0000 (06:30 +1000)
committerMario <mario@smbclan.net>
Mon, 12 Oct 2015 20:30:34 +0000 (06:30 +1000)
qcsrc/server/item_key.qc

index 8df6e3b46e18c58e472dbe3aed21ecddd0dd4061..4b83a6bdb2545b42fea64d0882e85245ab7005ba 100644 (file)
@@ -81,6 +81,9 @@ void item_key_touch()
        play2(other, self.noise);
 
        centerprint(other, self.message);
+
+       activator = other;
+       SUB_UseTargets();
 };
 
 /**