mirror of
https://github.com/ENSL/NS.git
synced 2025-01-31 13:10:55 +00:00
Mantis 0001090:
o Lerk backward flight removed git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@297 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
4f97ab24f4
commit
f10d17f627
1 changed files with 11 additions and 11 deletions
|
@ -5051,15 +5051,15 @@ void PM_Jump (void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// tankefugl: 0000522 reverse lerk flight
|
// tankefugl: 0000522 reverse lerk flight
|
||||||
theThrust = pmove->cmd.forwardmove * kWingThrustForwardScalar; //kWingThrustBackwardScalar;
|
// Uncomment to enable backwards flight
|
||||||
theLift = 200 * (pmove->forward[2] + 0.5) / 1.5;
|
//theThrust = pmove->cmd.forwardmove * kWingThrustForwardScalar; //kWingThrustBackwardScalar;
|
||||||
|
//theLift = 200 * (pmove->forward[2] + 0.5) / 1.5;
|
||||||
if (theLift < 0)
|
//if (theLift < 0)
|
||||||
{
|
//{
|
||||||
theLift = 0;
|
// theLift = 0;
|
||||||
}
|
//}
|
||||||
//theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar;
|
theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar;
|
||||||
//theLift = 200;
|
theLift = 200;
|
||||||
// :tankefugl
|
// :tankefugl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5191,8 +5191,8 @@ void PM_Jump (void)
|
||||||
float projectedSpeed = DotProduct(pmove->velocity, pmove->forward);
|
float projectedSpeed = DotProduct(pmove->velocity, pmove->forward);
|
||||||
|
|
||||||
// tankefugl: 0000522 reverse lerk flight
|
// tankefugl: 0000522 reverse lerk flight
|
||||||
if (projectedSpeed < 0)
|
//if (projectedSpeed < 0)
|
||||||
speed *= -1;
|
// speed *= -1;
|
||||||
// :tankefugl
|
// :tankefugl
|
||||||
vec3_t forwardVelocity;
|
vec3_t forwardVelocity;
|
||||||
VectorScale(pmove->forward, speed, forwardVelocity);
|
VectorScale(pmove->forward, speed, forwardVelocity);
|
||||||
|
|
Loading…
Reference in a new issue