mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-30 20:41:00 +00:00
- applied Xaser's A_RailAttack duration fix.
SVN r3557 (trunk)
This commit is contained in:
parent
1529c91b80
commit
37f4ee53b9
2 changed files with 6 additions and 4 deletions
|
@ -685,9 +685,11 @@ void P_DrawRailTrail (AActor *source, const FVector3 &start, const FVector3 &end
|
||||||
if (!p)
|
if (!p)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
int spiralduration = (duration == 0) ? 35 : duration;
|
||||||
|
|
||||||
p->trans = 255;
|
p->trans = 255;
|
||||||
p->ttl = duration;
|
p->ttl = duration;
|
||||||
p->fade = FADEFROMTTL(duration);
|
p->fade = FADEFROMTTL(spiralduration);
|
||||||
p->size = 3;
|
p->size = 3;
|
||||||
p->bright = fullbright;
|
p->bright = fullbright;
|
||||||
|
|
||||||
|
@ -734,7 +736,9 @@ void P_DrawRailTrail (AActor *source, const FVector3 &start, const FVector3 &end
|
||||||
pos = start;
|
pos = start;
|
||||||
for (i = trail_steps; i; i--)
|
for (i = trail_steps; i; i--)
|
||||||
{
|
{
|
||||||
particle_t *p = JitterParticle (33);
|
// [XA] inner trail uses a different default duration (33).
|
||||||
|
int innerduration = (duration == 0) ? 33 : duration;
|
||||||
|
particle_t *p = JitterParticle (innerduration, drift);
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1401,7 +1401,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RailAttack)
|
||||||
ACTION_PARAM_CLASS(SpawnClass, 14);
|
ACTION_PARAM_CLASS(SpawnClass, 14);
|
||||||
|
|
||||||
if(Range==0) Range=8192*FRACUNIT;
|
if(Range==0) Range=8192*FRACUNIT;
|
||||||
if(Duration==0) Duration=35;
|
|
||||||
if(Sparsity==0) Sparsity=1.0;
|
if(Sparsity==0) Sparsity=1.0;
|
||||||
|
|
||||||
if (!self->player) return;
|
if (!self->player) return;
|
||||||
|
@ -1464,7 +1463,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomRailgun)
|
||||||
ACTION_PARAM_CLASS(SpawnClass, 14);
|
ACTION_PARAM_CLASS(SpawnClass, 14);
|
||||||
|
|
||||||
if(Range==0) Range=8192*FRACUNIT;
|
if(Range==0) Range=8192*FRACUNIT;
|
||||||
if(Duration==0) Duration=35;
|
|
||||||
if(Sparsity==0) Sparsity=1.0;
|
if(Sparsity==0) Sparsity=1.0;
|
||||||
|
|
||||||
AActor *linetarget;
|
AActor *linetarget;
|
||||||
|
|
Loading…
Reference in a new issue