]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/pointparticles.qc
Simplify func_sparks spawnfunc
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / pointparticles.qc
index 1aaa05e8dda227fa786c8964505c8350062641db..18d3c30e8d774478102c28344bd894bc4681cb6c 100644 (file)
@@ -128,24 +128,18 @@ spawnfunc(func_pointparticles)
 
 spawnfunc(func_sparks)
 {
-       // this.cnt is the amount of sparks that one burst will spawn
-       if(this.cnt < 1) {
-               this.cnt = 25.0; // nice default value
+       if(this.count < 1) {
+               this.count = 25.0; // nice default value
        }
 
-       // this.wait is the probability that a sparkthink will spawn a spark shower
-       // range: 0 - 1, but 0 makes little sense, so...
-       if(this.wait < 0.05) {
-               this.wait = 0.25; // nice default value
+       if(this.impulse < 0.5) {
+               this.impulse = 2.5; // nice default value
        }
 
-       this.count = this.cnt;
        this.mins = '0 0 0';
        this.maxs = '0 0 0';
        this.velocity = '0 0 -1';
        this.mdl = "TE_SPARK";
-       this.impulse = 10 * this.wait; // by default 2.5/sec
-       this.wait = 0;
        this.cnt = 0; // use mdl
 
        spawnfunc_func_pointparticles(this);