mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
use a more sane default value with beam textures which fixes the look of the spikeset railtrail for TF nails/Q2 railgun
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2127 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
6551885f92
commit
d2c2021680
1 changed files with 5 additions and 0 deletions
|
@ -416,6 +416,7 @@ void P_ParticleEffect_f(void)
|
|||
skytris_t *st;
|
||||
qboolean settype = false;
|
||||
qboolean setalphadelta = false;
|
||||
qboolean setbeamlen = false;
|
||||
|
||||
part_type_t *ptype;
|
||||
int pnum, assoc;
|
||||
|
@ -527,6 +528,7 @@ void P_ParticleEffect_f(void)
|
|||
else if (!strcmp(var, "beamtexstep"))
|
||||
{
|
||||
ptype->rotationstartmin = 1/atof(value);
|
||||
setbeamlen = true;
|
||||
}
|
||||
else if (!strcmp(var, "beamtexspeed"))
|
||||
{
|
||||
|
@ -974,6 +976,9 @@ void P_ParticleEffect_f(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (ptype->type == PT_BEAM && !setbeamlen)
|
||||
ptype->rotationstartmin = 1/128.0;
|
||||
|
||||
// use old behavior if not using alphadelta
|
||||
if (!setalphadelta)
|
||||
ptype->alphachange = (-ptype->alphachange / ptype->die) * ptype->alpha;
|
||||
|
|
Loading…
Reference in a new issue