mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Duke: Pitch-adjusted velocity for operateTripbomb()
when free-aiming.
This commit is contained in:
parent
3908ec0c42
commit
3a1f1c7580
1 changed files with 3 additions and 1 deletions
|
@ -2008,8 +2008,10 @@ int operateTripbomb(int snum)
|
|||
{
|
||||
auto p = &ps[snum];
|
||||
HitInfo hit{};
|
||||
double vel = 1024, zvel = 0;
|
||||
setFreeAimVelocity(vel, zvel, p->horizon.sum(), 16.);
|
||||
|
||||
hitscan(p->pos, p->cursector, DVector3(p->angle.ang.ToVector() * 1024, p->horizon.sum().Tan() * 16.), hit, CLIPMASK1);
|
||||
hitscan(p->pos, p->cursector, DVector3(p->angle.ang.ToVector() * vel, zvel), hit, CLIPMASK1);
|
||||
|
||||
if (hit.hitSector == nullptr || hit.actor())
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue