git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2277
d7cf8633-e32d-0410-b094-
e92efae38249
{
int i;
if (cl_stainmaps.integer)
{
int i;
if (cl_stainmaps.integer)
- R_Stain(org, 96, 80, 80, 80, 128, 176, 176, 176, 128);
+ R_Stain(org, 96, 80, 80, 80, 64, 176, 176, 176, 64);
i = Mod_PointInLeaf(org, cl.worldmodel)->contents;
if ((i == CONTENTS_SLIME || i == CONTENTS_WATER) && cl_particles.integer && cl_particles_bubbles.integer)
i = Mod_PointInLeaf(org, cl.worldmodel)->contents;
if ((i == CONTENTS_SLIME || i == CONTENTS_WATER) && cl_particles.integer && cl_particles_bubbles.integer)
void CL_BlobExplosion (vec3_t org)
{
if (cl_stainmaps.integer)
void CL_BlobExplosion (vec3_t org)
{
if (cl_stainmaps.integer)
- R_Stain(org, 96, 80, 80, 80, 128, 176, 176, 176, 128);
+ R_Stain(org, 96, 80, 80, 80, 64, 176, 176, 176, 64);
if (cl_explosions.integer)
R_NewExplosion(org);
if (cl_explosions.integer)
R_NewExplosion(org);
if (!cl_particles.integer) return;
if (cl_stainmaps.integer)
if (!cl_particles.integer) return;
if (cl_stainmaps.integer)
- R_Stain(org, 32, 96, 96, 96, 32, 128, 128, 128, 32);
+ R_Stain(org, 32, 96, 96, 96, 2, 128, 128, 128, 2);
if (cl_particles_bulletimpacts.integer)
{
if (cl_particles_bulletimpacts.integer)
{
void CL_PlasmaBurn (vec3_t org)
{
if (cl_stainmaps.integer)
void CL_PlasmaBurn (vec3_t org)
{
if (cl_stainmaps.integer)
- R_Stain(org, 48, 96, 96, 96, 48, 128, 128, 128, 48);
+ R_Stain(org, 48, 96, 96, 96, 3, 128, 128, 128, 3);
}
static float bloodcount = 0;
}
static float bloodcount = 0;
{
// assume it's blood (lame, but...)
if (cl_stainmaps.integer)
{
// assume it's blood (lame, but...)
if (cl_stainmaps.integer)
- R_Stain(v, 64, 32, 16, 16, p->alpha * p->scalex * (1.0f / 100.0f), 192, 48, 48, p->alpha * p->scalex * (1.0f / 100.0f));
+ R_Stain(v, 32, 32, 16, 16, p->alpha * p->scalex * (1.0f / 400.0f), 192, 48, 48, p->alpha * p->scalex * (1.0f / 400.0f));
p->die = -1;
freeparticles[j++] = p;
continue;
p->die = -1;
freeparticles[j++] = p;
continue;
// for comparisons to minimum acceptable light
// for comparisons to minimum acceptable light
- // compensate for 4096 offset
- maxdist = radius * radius + 4096;
+ // compensate for 256 offset
+ maxdist = radius * radius + 256.0f;
// clamp radius to avoid exceeding 32768 entry division table
if (maxdist > 4194304)
// clamp radius to avoid exceeding 32768 entry division table
if (maxdist > 4194304)
- dist2 = ndist * ndist;
- dist2 += 4096.0f;
+ dist2 = ndist * ndist + 256.0f;
if (dist2 < maxdist)
{
maxdist3 = maxdist - dist2;
if (dist2 < maxdist)
{
maxdist3 = maxdist - dist2;