From f10d17f6278d4d2bf1782eb28edad9b036994959 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Mon, 25 Jul 2005 20:57:13 +0000 Subject: [PATCH] Mantis 0001090: o Lerk backward flight removed git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@297 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.1/source/pm_shared/pm_shared.cpp | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/releases/3.1/source/pm_shared/pm_shared.cpp b/releases/3.1/source/pm_shared/pm_shared.cpp index 07b73230..1aa45dd1 100644 --- a/releases/3.1/source/pm_shared/pm_shared.cpp +++ b/releases/3.1/source/pm_shared/pm_shared.cpp @@ -5051,15 +5051,15 @@ void PM_Jump (void) else { // tankefugl: 0000522 reverse lerk flight - theThrust = pmove->cmd.forwardmove * kWingThrustForwardScalar; //kWingThrustBackwardScalar; - theLift = 200 * (pmove->forward[2] + 0.5) / 1.5; - - if (theLift < 0) - { - theLift = 0; - } - //theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar; - //theLift = 200; + // Uncomment to enable backwards flight + //theThrust = pmove->cmd.forwardmove * kWingThrustForwardScalar; //kWingThrustBackwardScalar; + //theLift = 200 * (pmove->forward[2] + 0.5) / 1.5; + //if (theLift < 0) + //{ + // theLift = 0; + //} + theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar; + theLift = 200; // :tankefugl } @@ -5191,8 +5191,8 @@ void PM_Jump (void) float projectedSpeed = DotProduct(pmove->velocity, pmove->forward); // tankefugl: 0000522 reverse lerk flight - if (projectedSpeed < 0) - speed *= -1; + //if (projectedSpeed < 0) + // speed *= -1; // :tankefugl vec3_t forwardVelocity; VectorScale(pmove->forward, speed, forwardVelocity);