r4794 - in trunk/data: qcsrc/server scripts
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Oct 21 09:48:59 EDT 2008
Author: div0
Date: 2008-10-21 09:48:58 -0400 (Tue, 21 Oct 2008)
New Revision: 4794
Modified:
trunk/data/qcsrc/server/target_spawn.qc
trunk/data/scripts/entities.def
Log:
allow $target in target_spawn too, to do counters or similar stuff
Modified: trunk/data/qcsrc/server/target_spawn.qc
===================================================================
--- trunk/data/qcsrc/server/target_spawn.qc 2008-10-21 10:07:35 UTC (rev 4793)
+++ trunk/data/qcsrc/server/target_spawn.qc 2008-10-21 13:48:58 UTC (rev 4794)
@@ -93,6 +93,11 @@
valueent = world;
value = "";
}
+ else if(value == "target")
+ {
+ valueent = e;
+ value = "";
+ }
else if(value == "time")
{
valueent = world;
Modified: trunk/data/scripts/entities.def
===================================================================
--- trunk/data/scripts/entities.def 2008-10-21 10:07:35 UTC (rev 4793)
+++ trunk/data/scripts/entities.def 2008-10-21 13:48:58 UTC (rev 4794)
@@ -1082,7 +1082,7 @@
*/
/*QUAKED target_spawn (1 0 1) (-8 -8 -8) (8 8 8) - ONLOAD
-Spawns an entity when triggered.
+Spawns or modifies an entity when triggered.
The entity field list is a single string of the form:
'field' 'value' 'field' 'value' ... 'classname' 'item_bullets' ... 'field' 'value'
The special "field" name $ calls a void(void) function, for example a spawn function.
@@ -1091,7 +1091,7 @@
$E.field
$E.field+offset
$E.field+offset+randomoffset
-where "E" can be self, activator and pusher.
+where "E" can be self, activator, target (the entity being created/modified) and pusher.
Example is a Mario-style question mark block which could throw a new weapon_nex when activated like this:
{
"classname" "func_button"
More information about the nexuiz-commits
mailing list