mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 20:40:39 +00:00
- Duke: fixed weapon spread with non-pistol hitscan weapons.
This commit is contained in:
parent
86711f666b
commit
5f3065d9f1
1 changed files with 2 additions and 2 deletions
|
@ -278,10 +278,10 @@ static void shootweapon(DDukeActor *actor, int p, DVector3 pos, DAngle ang, int
|
||||||
}
|
}
|
||||||
zvel += (zRange / 2) - krandf(zRange);
|
zvel += (zRange / 2) - krandf(zRange);
|
||||||
}
|
}
|
||||||
else if (aimed == nullptr)
|
else if (aimed == nullptr || atwith != DTILE_SHOTSPARK1)
|
||||||
{
|
{
|
||||||
ang += DAngle22_5 / 8 - randomAngle(22.5 / 4);
|
ang += DAngle22_5 / 8 - randomAngle(22.5 / 4);
|
||||||
setFreeAimVelocity(vel, zvel, ps[p].Angles.getPitchWithView(), 16.);
|
if (aimed == nullptr) setFreeAimVelocity(vel, zvel, ps[p].Angles.getPitchWithView(), 16.);
|
||||||
zvel += 0.5 - krandf(1);
|
zvel += 0.5 - krandf(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue