From f23bba58c602c436c313ede5701ee5787210d0ae Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 30 May 2009 23:19:32 +0200 Subject: [PATCH] Changed jump boost to only change velocity when multiplier is different from 1.0. Quick fix for jumping from boost platforms in maps. --- src/zr/jumpboost.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/jumpboost.inc b/src/zr/jumpboost.inc index 809d6c2..36c646c 100644 --- a/src/zr/jumpboost.inc +++ b/src/zr/jumpboost.inc @@ -26,6 +26,12 @@ JumpBoostOnClientJump(client) new Float:distance = ClassGetJumpDistance(client); new Float:height = ClassGetJumpHeight(client); + // Do not apply jump boost if class jump boost multiplier is 1.0. + if (height == 1.0) + { + return; + } + // Get client's current velocity. new Float:vecVelocity[3]; ToolsClientVelocity(client, vecVelocity, false);