From 18d77b9da190cf0d68d8890a891cb1b033438b44 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Sun, 9 Sep 2012 22:41:49 +0000 Subject: [PATCH] Improved handling of zippers: zippers will now be selected earlier (previously a kart needed 2.0 nitro in order to use a zipper), but won't be used if items to avoid are close by (since zipper make it harder to avoid them). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11571 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 3 ++ src/karts/controller/ai_properties.cpp | 27 +++++++++-------- src/karts/controller/ai_properties.hpp | 3 ++ src/karts/controller/skidding_ai.cpp | 42 +++++++++++++++++++++----- src/karts/controller/skidding_ai.hpp | 4 +++ 5 files changed, 59 insertions(+), 20 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index eeaa30798..15f1cd221 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -216,10 +216,13 @@ to avoid hitting a bad item. If the distance is larger, it is assumed that there will be enough time to change steering direction. + straight-length-for-zipper is the minimum length a straight + section of the track should have in order to activate a zipper. -->