Make zipper faster + speed is more easily customizable
This commit is contained in:
parent
b8233a7dc6
commit
1cf9d28400
@ -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`)
|
||||
|
@ -52,6 +52,8 @@
|
||||
#include <ge_main.hpp>
|
||||
#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
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user