From 09e8cfc6f5afa6be930bda5bc76a17448423b41f Mon Sep 17 00:00:00 2001 From: tankefugl Date: Mon, 4 Apr 2005 00:27:18 +0000 Subject: [PATCH] Mantis 0000522: O Lerk can now fly backwards. Press backwards and tap jump to flap back from the way you are looking. Hold down to glide as before. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@28 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/pm_shared/pm_shared.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main/source/pm_shared/pm_shared.cpp b/main/source/pm_shared/pm_shared.cpp index a62c0ec..4e2abf9 100644 --- a/main/source/pm_shared/pm_shared.cpp +++ b/main/source/pm_shared/pm_shared.cpp @@ -4964,8 +4964,17 @@ void PM_Jump (void) } else { - theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar; - theLift = 200; + // tankefugl: 0000522 reverse lerk flight + theThrust = pmove->cmd.forwardmove * kWingThrustBackwardScalar; + theLift = 200 * (pmove->forward[2] + 0.5) / 1.5; + + if (theLift < 0) + { + theLift = 0; + } + //theThrust = -pmove->cmd.forwardmove * kWingThrustBackwardScalar; + //theLift = 200; + // :tankefugl } }