[nexuiz-commits] r6495 - trunk/data/scripts

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Apr 15 19:21:50 EDT 2009


Author: div0
Date: 2009-04-15 19:21:50 -0400 (Wed, 15 Apr 2009)
New Revision: 6495

Modified:
   trunk/data/scripts/entities.def
Log:
document bgmscript


Modified: trunk/data/scripts/entities.def
===================================================================
--- trunk/data/scripts/entities.def	2009-04-15 23:19:54 UTC (rev 6494)
+++ trunk/data/scripts/entities.def	2009-04-15 23:21:50 UTC (rev 6495)
@@ -1147,10 +1147,18 @@
 atten: distance attenuation of the sound (a value from 0.1 to 3.9), default is 0.5; set to -1 for no attenuation (global sound)
 volume: volume of the sound
 targetname: name to target this (then its state is toggled)
+bgmscript: emitter class from the BGM script
+bgmscriptdecay: how fast the effect strength decays while it is active (0 = not at all, 1 = immediately, values in between are supported)
 -------- SPAWNFLAGS --------
 START_ON: when targeted, the particle emitter will start switched on
 -------- NOTES --------
-Use trigger_monoflop if you want the particles to turn off for a while, then turn back on
+Use trigger_monoflop if you want the particles to turn off for a while, then turn back on.
+A BGM script is a .bgs file named like the map, in the maps directory. Its format is lines of the form
+  <emitter class> <time since start of background music> <0 if the emitters are to be switched off, 1 if they are to be switched on>
+e.g.
+  smokers 4.7 1
+  smokers 4.9 0
+The lines MUST be sorted by emitter class as primary key, and by the time since start of the BGM as secondary key.
 */
 
 /*QUAKED trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ON



More information about the nexuiz-commits mailing list