[nexuiz-commits] r6227 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Mar 20 05:39:51 EDT 2009
Author: div0
Date: 2009-03-20 05:39:51 -0400 (Fri, 20 Mar 2009)
New Revision: 6227
Modified:
trunk/data/qcsrc/server/target_spawn.qc
Log:
target_spawn: allow cloning from other ents
Modified: trunk/data/qcsrc/server/target_spawn.qc
===================================================================
--- trunk/data/qcsrc/server/target_spawn.qc 2009-03-19 14:30:01 UTC (rev 6226)
+++ trunk/data/qcsrc/server/target_spawn.qc 2009-03-20 09:39:51 UTC (rev 6227)
@@ -30,10 +30,16 @@
vector data, data2;
entity oldself;
entity oldactivator;
+ entity kt, t2, t3, t4;
n = tokenize_sane(self.message);
self.target_spawn_activator = activator;
+ kt = find(world, targetname, self.killtarget);
+ t2 = find(world, targetname, self.target2);
+ t3 = find(world, targetname, self.target3);
+ t4 = find(world, targetname, self.target4);
+
for(i = 0; i < n-1; i += 2)
{
key = argv(i);
@@ -111,6 +117,26 @@
valueent = e;
value = "";
}
+ else if(value == "killtarget")
+ {
+ valueent = kt;
+ value = "";
+ }
+ else if(value == "target2")
+ {
+ valueent = t2;
+ value = "";
+ }
+ else if(value == "target3")
+ {
+ valueent = t3;
+ value = "";
+ }
+ else if(value == "target4")
+ {
+ valueent = t4;
+ value = "";
+ }
else if(value == "time")
{
valueent = world;
More information about the nexuiz-commits
mailing list