From 1cf9d28400398804012c3b54cdc6cb60770cdd89 Mon Sep 17 00:00:00 2001 From: ilikecats Date: Sun, 18 Aug 2024 14:47:14 -0700 Subject: [PATCH] Make zipper faster + speed is more easily customizable --- README.cat | 4 +++- src/karts/kart_properties.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.cat b/README.cat index 0b63c98ce..0c4b73e7f 100644 --- a/README.cat +++ b/README.cat @@ -21,4 +21,6 @@ What I've changed in the mod: - The speed limit is practically removed (set to the highest float possible) -- The zipper powerup is VERY fast now, test it in the story mode level select level first. +- The zipper powerup is VERY fast now, (x4) test it in the story mode level select level first. + +- You can customize the zipper speed (karts/kart_properties.cpp, look for the `#define ZIPPER_SPEED`) diff --git a/src/karts/kart_properties.cpp b/src/karts/kart_properties.cpp index 57190db4b..bafda1e88 100644 --- a/src/karts/kart_properties.cpp +++ b/src/karts/kart_properties.cpp @@ -52,6 +52,8 @@ #include #endif +#define ZIPPER_SPEED 4.0f + float KartProperties::UNDEFINED = -99.9f; std::string KartProperties::getHandicapAsString(HandicapLevel h) @@ -1013,13 +1015,13 @@ float KartProperties::getZipperDuration() const // ---------------------------------------------------------------------------- float KartProperties::getZipperForce() const { - return m_cached_characteristic->getZipperForce() * 2.0f; + return m_cached_characteristic->getZipperForce() * ZIPPER_SPEED; } // getZipperForce // ---------------------------------------------------------------------------- float KartProperties::getZipperSpeedGain() const { - return m_cached_characteristic->getZipperSpeedGain() * 2.0f; + return m_cached_characteristic->getZipperSpeedGain() * ZIPPER_SPEED; } // getZipperSpeedGain // ----------------------------------------------------------------------------