+void CL_Stardust (vec3_t mins, vec3_t maxs, int count)
+{
+ int k;
+ float t;
+ vec3_t o, v, center;
+ //Con_Printf("CL_Stardust ('%f %f %f', '%f %f %f', %d);\n", mins[0], mins[1], mins[2], maxs[0], maxs[1], maxs[2], count);
+ if (!cl_particles.integer) return;
+
+ if (maxs[0] <= mins[0]) {t = mins[0];mins[0] = maxs[0];maxs[0] = t;}
+ if (maxs[1] <= mins[1]) {t = mins[1];mins[1] = maxs[1];maxs[1] = t;}
+ if (maxs[2] <= mins[2]) {t = mins[2];mins[2] = maxs[2];maxs[2] = t;}
+
+ center[0] = (mins[0] + maxs[0]) * 0.5f;
+ center[1] = (mins[1] + maxs[1]) * 0.5f;
+ center[2] = (mins[2] + maxs[2]) * 0.5f;
+
+ while (count--)
+ {
+ k = particlepalette[224 + (rand()&15)];
+ o[0] = lhrandom(mins[0], maxs[0]);
+ o[1] = lhrandom(mins[1], maxs[1]);
+ o[2] = lhrandom(mins[2], maxs[2]);
+ VectorSubtract(o, center, v);
+ VectorNormalizeFast(v);
+ VectorScale(v, 100, v);
+ v[2] += sv_gravity.value * 0.15f;
+ particle(pt_stardust, PARTICLE_BILLBOARD, 0x903010, 0xFFD030, tex_particle, false, true, 1.5, 1.5, lhrandom(64, 128), 9999, 0, o[0], o[1], o[2], v[0], v[1], v[2], 0, 0, 0, 0, 0, 0);
+ }
+}
+