]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix rain maths so it isn't multiplied too much
authorMario <mario@smbclan.net>
Sat, 26 May 2018 08:06:33 +0000 (18:06 +1000)
committerMario <mario@smbclan.net>
Sat, 26 May 2018 08:06:33 +0000 (18:06 +1000)
qcsrc/common/triggers/func/rainsnow.qc

index ff49eca2c0176c899cdaf1ccd02d9669e0fd851b..c765a4293b9e79c34fc5d922b6846058ebb3b440 100644 (file)
@@ -44,7 +44,7 @@ spawnfunc(func_rain)
        if (!this.count)
                this.count = 2000;
        // relative to absolute particle count
-       this.count = this.count * (this.size_x / 1024) * (this.size_y / 1024);
+       this.count = 0.1 * this.count * (this.size_x / 1024) * (this.size_y / 1024);
        if (this.count < 1)
                this.count = 1;
        if(this.count > 65535)
@@ -84,7 +84,7 @@ spawnfunc(func_snow)
        if (!this.count)
                this.count = 2000;
        // relative to absolute particle count
-       this.count = this.count * (this.size_x / 1024) * (this.size_y / 1024);
+       this.count = 0.1 * this.count * (this.size_x / 1024) * (this.size_y / 1024);
        if (this.count < 1)
                this.count = 1;
        if(this.count > 65535)